Skip to content

Commit

Permalink
fix test_mask_from_image_outside
Browse files Browse the repository at this point in the history
  • Loading branch information
morgane.baizeau committed Apr 29, 2024
1 parent d3bb0c3 commit 735a681
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/morphology.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1492,14 +1492,16 @@ mod tests {
assert!(Mask::from_image(&mask_base, 1, 1).elements.is_empty())
}

/// this tests that it doesn't panic
#[test]
fn test_mask_from_image_outside() {
let _mask_base = gray_image!(
let mask_base = gray_image!(
100, 75, 255, 222;
84, 0, 0, 1;
99, 0, 0, 22;
255, 7, 255, 20
);
let _ = Mask::from_image(&mask_base, 20, 20);
}

#[test]
Expand Down

0 comments on commit 735a681

Please sign in to comment.