Fix snapshots to use new phrase type

This commit is contained in:
Samyak S Sarnayak 2022-10-13 23:30:58 +05:30
parent c8c666c6a6
commit d187b32a28
No known key found for this signature in database
GPG Key ID: 365873F2F0C6153B

View File

@ -1081,7 +1081,7 @@ mod test {
OR OR
AND AND
OR OR
PHRASE ["word", "split"] PHRASE [Some("word"), Some("split")]
Tolerant { word: "wordsplit", max typo: 2 } Tolerant { word: "wordsplit", max typo: 2 }
Exact { word: "fish" } Exact { word: "fish" }
Tolerant { word: "wordsplitfish", max typo: 1 } Tolerant { word: "wordsplitfish", max typo: 1 }
@ -1100,7 +1100,7 @@ mod test {
insta::assert_debug_snapshot!(query_tree, @r###" insta::assert_debug_snapshot!(query_tree, @r###"
OR OR
PHRASE ["quickbrown", "fox"] PHRASE [Some("quickbrown"), Some("fox")]
PrefixTolerant { word: "quickbrownfox", max typo: 2 } PrefixTolerant { word: "quickbrownfox", max typo: 2 }
"###); "###);
} }
@ -1117,7 +1117,7 @@ mod test {
insta::assert_debug_snapshot!(query_tree, @r###" insta::assert_debug_snapshot!(query_tree, @r###"
AND AND
PHRASE ["hey", "friends"] PHRASE [Some("hey"), Some("friends")]
Exact { word: "wooop" } Exact { word: "wooop" }
"###); "###);
} }
@ -1154,8 +1154,8 @@ mod test {
insta::assert_debug_snapshot!(query_tree, @r###" insta::assert_debug_snapshot!(query_tree, @r###"
AND AND
PHRASE ["hey", "friends"] PHRASE [Some("hey"), Some("friends")]
PHRASE ["wooop", "wooop"] PHRASE [Some("wooop"), Some("wooop")]
"###); "###);
} }
@ -1203,7 +1203,7 @@ mod test {
.unwrap(); .unwrap();
insta::assert_debug_snapshot!(query_tree, @r###" 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###" insta::assert_debug_snapshot!(query_tree, @r###"
AND AND
PHRASE ["hey", "my"] PHRASE [Some("hey"), Some("my")]
Exact { word: "good" } Exact { word: "good" }
"###); "###);
} }