chore(parse_query): delete println and move test inside tests module

This commit is contained in:
arthurgousset 2025-05-29 23:33:32 +01:00
parent ef9fc6c854
commit ab3d92d163
No known key found for this signature in database

View File

@ -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(())
}
}