From 03579aba13853560059cec3c881e284b4f7a307a Mon Sep 17 00:00:00 2001
From: "F. Levi" <55688616+flevi29@users.noreply.github.com>
Date: Fri, 4 Oct 2024 11:38:47 +0300
Subject: [PATCH] Adjust test
---
milli/src/search/new/matches/mod.rs | 15 ++-------------
1 file changed, 2 insertions(+), 13 deletions(-)
diff --git a/milli/src/search/new/matches/mod.rs b/milli/src/search/new/matches/mod.rs
index 9ca560529..ac0fb7e7b 100644
--- a/milli/src/search/new/matches/mod.rs
+++ b/milli/src/search/new/matches/mod.rs
@@ -798,12 +798,12 @@ mod tests {
@"…the power to split the world between those who embraced…"
);
- let builder = MatcherBuilder::new_test(&rtxn, &temp_index, "\"power to\" \"and those\"");
+ let builder = MatcherBuilder::new_test(&rtxn, &temp_index, "those \"and those\"");
let mut matcher = builder.build(text, None);
// should highlight "those" and the phrase "and those".
insta::assert_snapshot!(
matcher.format(format_options),
- @"…groundbreaking invention had the power to split the world between…"
+ @"…world between those who embraced progress and those who resisted…"
);
let builder = MatcherBuilder::new_test(
@@ -841,17 +841,6 @@ mod tests {
@"…between those who embraced progress and those who resisted change…"
);
- let builder = MatcherBuilder::new_test(
- &rtxn,
- &temp_index,
- "\"The groundbreaking invention\" \"split the world between those\"",
- );
- let mut matcher = builder.build(text, None);
- insta::assert_snapshot!(
- matcher.format(format_options),
- @"…the power to split the world between those who embraced…"
- );
-
let builder = MatcherBuilder::new_test(
&rtxn,
&temp_index,