From d187b32a2847f9a5887ffe7806b19def927ad7c3 Mon Sep 17 00:00:00 2001 From: Samyak S Sarnayak Date: Thu, 13 Oct 2022 23:30:58 +0530 Subject: [PATCH] Fix snapshots to use new phrase type --- milli/src/search/query_tree.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/milli/src/search/query_tree.rs b/milli/src/search/query_tree.rs index 4da4b3317..25366461c 100755 --- a/milli/src/search/query_tree.rs +++ b/milli/src/search/query_tree.rs @@ -1081,7 +1081,7 @@ mod test { OR AND OR - PHRASE ["word", "split"] + PHRASE [Some("word"), Some("split")] Tolerant { word: "wordsplit", max typo: 2 } Exact { word: "fish" } Tolerant { word: "wordsplitfish", max typo: 1 } @@ -1100,7 +1100,7 @@ mod test { insta::assert_debug_snapshot!(query_tree, @r###" OR - PHRASE ["quickbrown", "fox"] + PHRASE [Some("quickbrown"), Some("fox")] PrefixTolerant { word: "quickbrownfox", max typo: 2 } "###); } @@ -1117,7 +1117,7 @@ mod test { insta::assert_debug_snapshot!(query_tree, @r###" AND - PHRASE ["hey", "friends"] + PHRASE [Some("hey"), Some("friends")] Exact { word: "wooop" } "###); } @@ -1154,8 +1154,8 @@ mod test { insta::assert_debug_snapshot!(query_tree, @r###" AND - PHRASE ["hey", "friends"] - PHRASE ["wooop", "wooop"] + PHRASE [Some("hey"), Some("friends")] + PHRASE [Some("wooop"), Some("wooop")] "###); } @@ -1203,7 +1203,7 @@ mod test { .unwrap(); insta::assert_debug_snapshot!(query_tree, @r###" - PHRASE ["hey", "my"] + PHRASE [Some("hey"), Some("my")] "###); } @@ -1268,7 +1268,7 @@ mod test { insta::assert_debug_snapshot!(query_tree, @r###" AND - PHRASE ["hey", "my"] + PHRASE [Some("hey"), Some("my")] Exact { word: "good" } "###); }