mirror of
https://gitee.com/openharmony/third_party_rust_strsim-rs
synced 2024-11-23 07:39:51 +00:00
Fix a multibyte test
This commit is contained in:
parent
1063ca9236
commit
181a23cc21
@ -426,8 +426,10 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn jaro_winkler_multibyte() {
|
||||
assert!((0.818 - jaro_winkler("testabctest", "testöঙ香test").abs() < 0.001));
|
||||
assert!((0.818 - jaro_winkler("testöঙ香test", "testabctest").abs() < 0.001));
|
||||
assert!((0.89 - jaro_winkler("testabctest", "testöঙ香test")).abs() <
|
||||
0.001);
|
||||
assert!((0.89 - jaro_winkler("testöঙ香test", "testabctest")).abs() <
|
||||
0.001);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
Loading…
Reference in New Issue
Block a user