From 0761406c23e5bdff1e1e82c0b243321ca987aaa3 Mon Sep 17 00:00:00 2001 From: Max Bachmann Date: Wed, 27 Dec 2023 12:48:02 +0100 Subject: [PATCH] fix tests --- src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 2811e4e..b013578 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -610,7 +610,7 @@ mod tests { #[test] fn jaro_diff_with_transposition() { assert!((0.944 - jaro("martha", "marhta")).abs() < 0.001); - assert!((0. - jaro("a jke", "jane a k")).abs() < 0.001); + assert!((0.6 - jaro("a jke", "jane a k")).abs() < 0.001); } #[test] @@ -668,6 +668,7 @@ mod tests { #[test] fn jaro_winkler_diff_with_transposition() { assert!((0.961 - jaro_winkler("martha", "marhta")).abs() < 0.001); + assert!((0.6 - jaro_winkler("a jke", "jane a k")).abs() < 0.001); } #[test]