Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Micah Chambers (eos) committed Jan 28, 2025
1 parent cc30016 commit 166282b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/decode_fp16_images.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,12 @@ fn test_horizontal_differencing_ieee_fp16() {
#[test]
fn test_predictor_ieee_fp16() {
let filenames = ["white-fp16-pred3.tiff"];
for filename in filenames.iter() {
let path = PathBuf::from(TEST_IMAGE_DIR).join(filename);
let img_file = File::open(path).expect("Cannot find test image!");
let mut decoder = Decoder::new(img_file).expect("Cannot create decoder");
assert_eq!(
decoder.dimensions().expect("Cannot get dimensions"),
(256, 256)
);
assert_eq!(
Expand Down

0 comments on commit 166282b

Please sign in to comment.