Fix a multibyte test

This commit is contained in:
Danny Guo 2016-06-05 03:48:26 -04:00
parent 1063ca9236
commit 181a23cc21

View File

@ -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]