Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
maxbachmann committed Dec 27, 2023
1 parent cb48a05 commit 0761406
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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]
Expand Down

0 comments on commit 0761406

Please sign in to comment.