We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 614d93d commit c60267aCopy full SHA for c60267a
gix-diff/tests/diff/blob/slider.rs
@@ -95,11 +95,13 @@ fn baseline() -> gix_testtools::Result {
95
.filter(|(_, _, actual_matches_baseline, _)| *actual_matches_baseline)
96
.count();
97
98
- assert!(
99
- matching_diffs == total_diffs,
100
- "assertion failed: total diffs {} == matching diffs {}\n\n{}",
+ assert_eq!(
+ matching_diffs,
101
total_diffs,
+ "matching diffs {} == total diffs {} [{:.2} %]\n\n{}",
102
matching_diffs,
103
+ total_diffs,
104
+ ((matching_diffs as f32) / (total_diffs as f32) * 100.0),
105
{
106
let first_non_matching_diff = diffs
107
.iter()
0 commit comments