From 4571b80a4945f13b812956ebdb7cd5b7719da7cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Renault?= Date: Mon, 4 Nov 2019 16:10:31 +0100 Subject: [PATCH] Update the tests --- meilidb-core/src/raw_indexer.rs | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/meilidb-core/src/raw_indexer.rs b/meilidb-core/src/raw_indexer.rs index 13c87f5c3..988a5182e 100644 --- a/meilidb-core/src/raw_indexer.rs +++ b/meilidb-core/src/raw_indexer.rs @@ -199,10 +199,8 @@ mod tests { assert!(words_doc_indexes.get(&b"aspirateur"[..]).is_some()); assert!(words_doc_indexes.get(&b"ai"[..]).is_some()); assert!(words_doc_indexes.get(&b"eteindre"[..]).is_some()); - - // with the ugly apostrophe... assert!(words_doc_indexes - .get(&"l’éteindre".to_owned().into_bytes()) + .get(&"éteindre".to_owned().into_bytes()) .is_some()); } @@ -223,10 +221,8 @@ mod tests { assert!(words_doc_indexes.get(&b"aspirateur"[..]).is_some()); assert!(words_doc_indexes.get(&b"ai"[..]).is_some()); assert!(words_doc_indexes.get(&b"eteindre"[..]).is_some()); - - // with the ugly apostrophe... assert!(words_doc_indexes - .get(&"l’éteindre".to_owned().into_bytes()) + .get(&"éteindre".to_owned().into_bytes()) .is_some()); } @@ -252,10 +248,8 @@ mod tests { assert!(words_doc_indexes.get(&b"ai"[..]).is_none()); assert!(words_doc_indexes.get(&b"de"[..]).is_none()); assert!(words_doc_indexes.get(&b"eteindre"[..]).is_some()); - - // with the ugly apostrophe... assert!(words_doc_indexes - .get(&"l’éteindre".to_owned().into_bytes()) + .get(&"éteindre".to_owned().into_bytes()) .is_some()); } }