From f8f190cd403b496cd1906d895db71e47de19ad44 Mon Sep 17 00:00:00 2001 From: Louis Dureuil Date: Wed, 3 May 2023 14:45:09 +0200 Subject: [PATCH] Update exactness tests following charabia camelCase tokenization --- milli/src/search/new/tests/exactness.rs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/milli/src/search/new/tests/exactness.rs b/milli/src/search/new/tests/exactness.rs index b45c0529c..c5c963ede 100644 --- a/milli/src/search/new/tests/exactness.rs +++ b/milli/src/search/new/tests/exactness.rs @@ -412,7 +412,7 @@ fn create_index_with_typo_and_prefix() -> TempIndex { .add_documents(documents!([ { "id": 0, - "text": "exPraordinarily quick brown fox", + "text": "expraordinarily quick brown fox", }, { "id": 1, @@ -424,11 +424,11 @@ fn create_index_with_typo_and_prefix() -> TempIndex { }, { "id": 3, - "text": "exPraordinarily quack brown fox", + "text": "expraordinarily quack brown fox", }, { "id": 4, - "text": "exPraordinaPily quick brown fox", + "text": "expraordinapily quick brown fox", } ])) .unwrap(); @@ -812,9 +812,9 @@ fn test_exactness_followed_by_typo_prefer_no_typo_prefix() { [ "\"extra quick brown fox\"", "\"extraordinarily quick brown fox\"", - "\"exPraordinarily quick brown fox\"", - "\"exPraordinaPily quick brown fox\"", - "\"exPraordinarily quack brown fox\"", + "\"expraordinarily quick brown fox\"", + "\"expraordinapily quick brown fox\"", + "\"expraordinarily quack brown fox\"", ] "###); } @@ -841,9 +841,9 @@ fn test_typo_followed_by_exactness() { insta::assert_debug_snapshot!(texts, @r###" [ "\"extraordinarily quick brown fox\"", - "\"exPraordinarily quick brown fox\"", - "\"exPraordinaPily quick brown fox\"", - "\"exPraordinarily quack brown fox\"", + "\"expraordinarily quick brown fox\"", + "\"expraordinapily quick brown fox\"", + "\"expraordinarily quack brown fox\"", ] "###); }