Modify a test to check that criteria additions change the fields ids map

This commit is contained in:
Kerollmops 2021-06-08 17:55:08 +02:00
parent 82df524e09
commit 0bf4f3f48a
No known key found for this signature in database
GPG Key ID: 92ADA4E935E71FA4

View File

@ -697,7 +697,7 @@ mod tests {
let mut wtxn = index.write_txn().unwrap(); let mut wtxn = index.write_txn().unwrap();
let mut builder = Settings::new(&mut wtxn, &index, 0); let mut builder = Settings::new(&mut wtxn, &index, 0);
// Don't display the generated `id` field. // Don't display the generated `id` field.
builder.set_displayed_fields(vec![S("name"), S("age")]); builder.set_displayed_fields(vec![S("name")]);
builder.set_criteria(vec![S("asc(age)")]); builder.set_criteria(vec![S("asc(age)")]);
builder.execute(|_, _| ()).unwrap(); builder.execute(|_, _| ()).unwrap();