From 93002e734cebabfb63c9f66b16e4dac1a3ea6a3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9mentine=20Urquizar?= Date: Thu, 6 May 2021 18:41:04 +0200 Subject: [PATCH] Fix tests --- meilisearch-http/src/index/search.rs | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/meilisearch-http/src/index/search.rs b/meilisearch-http/src/index/search.rs index f9b1508f9..df553d6ef 100644 --- a/meilisearch-http/src/index/search.rs +++ b/meilisearch-http/src/index/search.rs @@ -423,6 +423,7 @@ mod test { let all_formatted = Vec::new(); let to_highlight_ids = HashSet::new(); + let to_crop_ids = HashSet::new(); let matching_words = MatchingWords::default(); @@ -433,8 +434,8 @@ mod test { &matching_words, &all_formatted, &to_highlight_ids, - ) - .unwrap(); + &to_crop_ids, + ).unwrap(); assert!(value.is_empty()); } @@ -458,6 +459,7 @@ mod test { let all_formatted = vec![id]; let to_highlight_ids = HashSet::new(); + let to_crop_ids = HashSet::new(); let matching_words = MatchingWords::default(); @@ -468,8 +470,8 @@ mod test { &matching_words, &all_formatted, &to_highlight_ids, - ) - .unwrap(); + &to_crop_ids, + ).unwrap(); assert_eq!(value["test"], "hello"); } @@ -493,6 +495,7 @@ mod test { let all_formatted = vec![id]; let to_highlight_ids = HashSet::from_iter(Some(id)); + let to_crop_ids = HashSet::new(); let matching_words = HashSet::from_iter(Some(String::from("hello"))); @@ -503,8 +506,8 @@ mod test { &matching_words, &all_formatted, &to_highlight_ids, - ) - .unwrap(); + &to_crop_ids, + ).unwrap(); assert_eq!(value["test"], "hello"); }