mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-06-16 12:58:46 +02:00
chore(parse_query): delete println and move test inside tests module
This commit is contained in:
parent
ef9fc6c854
commit
ab3d92d163
@ -380,7 +380,6 @@ mod tests {
|
||||
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_unicode_typo_tolerance_fixed() -> Result<()> {
|
||||
@ -398,11 +397,6 @@ mod tests {
|
||||
let cyrillic_word = "собак";
|
||||
let cyrillic_typos = nbr_typos(cyrillic_word);
|
||||
|
||||
eprintln!("ASCII '{}': char_count={}, typos={}",
|
||||
ascii_word, ascii_word.chars().count(), ascii_typos);
|
||||
eprintln!("Cyrillic '{}': char_count={}, typos={}",
|
||||
cyrillic_word, cyrillic_word.chars().count(), cyrillic_typos);
|
||||
|
||||
// Both words have 5 characters, so they should have the same typo tolerance
|
||||
assert_eq!(ascii_typos, cyrillic_typos,
|
||||
"Words with same character count should get same typo tolerance");
|
||||
@ -433,11 +427,10 @@ mod tests {
|
||||
|
||||
for (word, script) in five_char_words {
|
||||
let typos = nbr_typos(word);
|
||||
eprintln!("{} '{}': chars={}, bytes={}, typos={}",
|
||||
script, word, word.chars().count(), word.chars().count(), typos);
|
||||
assert_eq!(typos, expected_typos,
|
||||
"{} word '{}' should get {} typo(s)", script, word, expected_typos);
|
||||
}
|
||||
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user