Fix formatting
This commit is contained in:
1 file changed
+8
-3
@@ -721,7 +721,6 @@ fn extra_bits_rgb() {
|
|||||||
test_image_sum_u8("extra_bits_rgb_8b.tiff", ColorType::RGB(8), 0);
|
test_image_sum_u8("extra_bits_rgb_8b.tiff", ColorType::RGB(8), 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg(feature = "fax")]
|
#[cfg(feature = "fax")]
|
||||||
fn test_decode_huge_g4() {
|
fn test_decode_huge_g4() {
|
||||||
@@ -731,9 +730,15 @@ fn test_decode_huge_g4() {
|
|||||||
|
|
||||||
let (width, height) = decoder.dimensions().expect("failed to get dimensions");
|
let (width, height) = decoder.dimensions().expect("failed to get dimensions");
|
||||||
|
|
||||||
assert!(height > u16::MAX as u32, "Test image height {} is not large enough to test u16 overflow", height);
|
assert!(
|
||||||
|
height > u16::MAX as u32,
|
||||||
|
"Test image height {} is not large enough to test u16 overflow",
|
||||||
|
height
|
||||||
|
);
|
||||||
|
|
||||||
let result = decoder.read_image().expect("failed to decode huge G4 image");
|
let result = decoder
|
||||||
|
.read_image()
|
||||||
|
.expect("failed to decode huge G4 image");
|
||||||
|
|
||||||
if let tiff::decoder::DecodingResult::U8(data) = result {
|
if let tiff::decoder::DecodingResult::U8(data) = result {
|
||||||
assert_eq!(data.len(), (width as usize * height as usize));
|
assert_eq!(data.len(), (width as usize * height as usize));
|
||||||
|
|||||||
Reference in new issue
Block a user