Skip to content

Commit

Permalink
modified test_tiff_properties test to verify tile-width and tile-he…
Browse files Browse the repository at this point in the history
…ight using boxes.tiff
  • Loading branch information
Omar Mohamed Samir committed Jan 5, 2025
1 parent 2459f7a commit a437988
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions tests/properties.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,42 @@ fn test_tiff_properties(#[case] filename: &Path) {
);
assert_eq!(properties.openslide_properties.levels[3].height, Some(31));
assert_eq!(properties.openslide_properties.levels[3].width, Some(37));

assert_eq!(
properties.openslide_properties.levels[0].tile_height,
Some(64)
);
assert_eq!(
properties.openslide_properties.levels[0].tile_height,
Some(64)
);

assert_eq!(
properties.openslide_properties.levels[1].tile_height,
Some(64)
);
assert_eq!(
properties.openslide_properties.levels[1].tile_height,
Some(64)
);

assert_eq!(
properties.openslide_properties.levels[2].tile_height,
Some(64)
);
assert_eq!(
properties.openslide_properties.levels[2].tile_height,
Some(64)
);

assert_eq!(
properties.openslide_properties.levels[3].tile_height,
Some(64)
);
assert_eq!(
properties.openslide_properties.levels[3].tile_height,
Some(64)
);
}

#[rstest]
Expand Down

0 comments on commit a437988

Please sign in to comment.