Skip to content

Commit

Permalink
add status badges
Browse files Browse the repository at this point in the history
  • Loading branch information
Johanna committed Sep 16, 2024
1 parent 1116e7e commit 40d4f86
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/distance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ mod tests {
let rounded_expected = (expected * 1000.0).round() / 1000.0;

let abs_tolerance = 0.05;
let diff = (actual - expected).abs();
let diff = (rounded_actual - rounded_expected).abs();

assert!(

Check warning on line 29 in tests/distance.rs

View check run for this annotation

Codecov / codecov/patch

tests/distance.rs#L29

Added line #L29 was not covered by tests
diff <= abs_tolerance,
"Absolute difference exceeds tolerance of {}. Actual: {}, Expected: {}",
abs_tolerance,
actual,
expected
rounded_actual,
rounded_expected
);
}

Expand Down

0 comments on commit 40d4f86

Please sign in to comment.