mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 04:17:10 +02:00
Fix forgotten typo tests
This commit is contained in:
parent
e77291a6f3
commit
71740805a7
3 changed files with 16 additions and 5 deletions
|
@ -328,6 +328,7 @@ mod test {
|
|||
let parent = Initial::new(query_tree, facet_candidates);
|
||||
let mut criteria = Typo::new(&context, Box::new(parent));
|
||||
|
||||
assert!(criteria.next(&mut wdcache).unwrap().unwrap().candidates.is_none());
|
||||
assert!(criteria.next(&mut wdcache).unwrap().is_none());
|
||||
}
|
||||
|
||||
|
@ -440,7 +441,7 @@ mod test {
|
|||
]),
|
||||
])),
|
||||
candidates: Some(&candidates_1 & &facet_candidates),
|
||||
bucket_candidates: candidates_1 & &facet_candidates,
|
||||
bucket_candidates: facet_candidates.clone(),
|
||||
};
|
||||
|
||||
assert_eq!(criteria.next(&mut wdcache).unwrap(), Some(expected_1));
|
||||
|
@ -462,7 +463,7 @@ mod test {
|
|||
]),
|
||||
])),
|
||||
candidates: Some(&candidates_2 & &facet_candidates),
|
||||
bucket_candidates: candidates_2 & &facet_candidates,
|
||||
bucket_candidates: RoaringBitmap::new(),
|
||||
};
|
||||
|
||||
assert_eq!(criteria.next(&mut wdcache).unwrap(), Some(expected_2));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue