Skip to content

Commit 40d4f86

Browse files
author
Johanna
committed
add status badges
1 parent 1116e7e commit 40d4f86

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/distance.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ mod tests {
2424
let rounded_expected = (expected * 1000.0).round() / 1000.0;
2525

2626
let abs_tolerance = 0.05;
27-
let diff = (actual - expected).abs();
27+
let diff = (rounded_actual - rounded_expected).abs();
2828

2929
assert!(
3030
diff <= abs_tolerance,
3131
"Absolute difference exceeds tolerance of {}. Actual: {}, Expected: {}",
3232
abs_tolerance,
33-
actual,
34-
expected
33+
rounded_actual,
34+
rounded_expected
3535
);
3636
}
3737

0 commit comments

Comments
 (0)