mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-27 04:25:06 +08:00
Fix #1714 test
This commit is contained in:
parent
96d4242b93
commit
7f88c4ff2f
@ -1575,11 +1575,11 @@ mod tests {
|
|||||||
let rtxn = index.read_txn().unwrap();
|
let rtxn = index.read_txn().unwrap();
|
||||||
|
|
||||||
// Only the first document should match.
|
// Only the first document should match.
|
||||||
let count = index.word_docids.get(&rtxn, "化妆包").unwrap().unwrap().len();
|
let count = index.word_docids.get(&rtxn, "huàzhuāngbāo").unwrap().unwrap().len();
|
||||||
assert_eq!(count, 1);
|
assert_eq!(count, 1);
|
||||||
|
|
||||||
// Only the second document should match.
|
// Only the second document should match.
|
||||||
let count = index.word_docids.get(&rtxn, "包").unwrap().unwrap().len();
|
let count = index.word_docids.get(&rtxn, "bāo").unwrap().unwrap().len();
|
||||||
assert_eq!(count, 1);
|
assert_eq!(count, 1);
|
||||||
|
|
||||||
let mut search = crate::Search::new(&rtxn, &index);
|
let mut search = crate::Search::new(&rtxn, &index);
|
||||||
|
Loading…
Reference in New Issue
Block a user