Skip to content

Commit

Permalink
Fix ordering of 'actual' and 'expected' arguments to assert_pixels_eq (
Browse files Browse the repository at this point in the history
  • Loading branch information
theotherphil authored May 19, 2024
1 parent 9d688dc commit 9da7406
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/contrast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ mod tests {
let image = GrayImage::from_pixel(3, 3, Luma([100u8]));
let binary = adaptive_threshold(&image, 1);
let expected = GrayImage::from_pixel(3, 3, Luma::white());
assert_pixels_eq!(expected, binary);
assert_pixels_eq!(binary, expected);
}

#[test]
Expand Down Expand Up @@ -586,7 +586,7 @@ mod tests {
let expected = GrayImage::from_raw(26, 1, expected_contents).unwrap();

let actual = threshold(&original, 125u8, ThresholdType::Binary);
assert_pixels_eq!(expected, actual);
assert_pixels_eq!(actual, expected);
}

#[test]
Expand Down
2 changes: 1 addition & 1 deletion src/filter/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ mod tests {
5, 5, 6;
6, 7, 8);
let actual = bilateral_filter(&image, 3, 10., 3.);
assert_pixels_eq!(expect, actual);
assert_pixels_eq!(actual, expect);
}

#[test]
Expand Down

0 comments on commit 9da7406

Please sign in to comment.