Fix tests
This commit is contained in:
parent
9d832e42b3
commit
8dafc756cd
3 changed files with 3 additions and 4 deletions
Binary file not shown.
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 2.7 KiB |
|
|
@ -11,7 +11,6 @@ use std::ops::Deref;
|
||||||
use std::path::Path;
|
use std::path::Path;
|
||||||
use std::path::PathBuf;
|
use std::path::PathBuf;
|
||||||
|
|
||||||
const GRAYSCALE: u8 = 0;
|
|
||||||
const RGB: u8 = 2;
|
const RGB: u8 = 2;
|
||||||
const INDEXED: u8 = 3;
|
const INDEXED: u8 = 3;
|
||||||
const RGBA: u8 = 6;
|
const RGBA: u8 = 6;
|
||||||
|
|
@ -597,7 +596,7 @@ fn fix_errors() {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
assert_eq!(png.raw.ihdr.color_type.png_header_code(), GRAYSCALE);
|
assert_eq!(png.raw.ihdr.color_type.png_header_code(), INDEXED);
|
||||||
assert_eq!(png.raw.ihdr.bit_depth, BitDepth::Eight);
|
assert_eq!(png.raw.ihdr.bit_depth, BitDepth::Eight);
|
||||||
|
|
||||||
// Cannot check if pixels are equal because image crate cannot read corrupt (input) PNGs
|
// Cannot check if pixels are equal because image crate cannot read corrupt (input) PNGs
|
||||||
|
|
|
||||||
|
|
@ -177,8 +177,8 @@ fn issue_52_05() {
|
||||||
None,
|
None,
|
||||||
RGBA,
|
RGBA,
|
||||||
BitDepth::Eight,
|
BitDepth::Eight,
|
||||||
INDEXED,
|
RGB,
|
||||||
BitDepth::One,
|
BitDepth::Eight,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue