test(codecs): assert decoded PNG pixels in EXIF regression (#4601)

* test(codecs): cover PNG EXIF bytes and checksum

* Credits: add Terra854 to About
This commit is contained in:
Terra854
2026-11-21 13:00:34 -05:00
committed by GitHub
parent 8a04ebe5d1
commit 35527de6a3
2 changed files with 5 additions and 0 deletions
+3
View File
@@ -86,3 +86,6 @@ sync_github_name = true
[people.Peaperfish]
real_name = "Yule Wang"
display_name = "Brian Wang"
[people.Terra854]
display_name = "Terra854"
+2
View File
@@ -490,9 +490,11 @@ mod hlg_tests {
let header = crate::read_header(&png).unwrap();
assert_eq!((header.format, header.width, header.height, header.orientation), (crate::Format::Png, 2, 1, 6));
let decoded = crate::decode(&png, crate::DecodeOptions::default()).unwrap();
assert_eq!((decoded.width, decoded.height), (2, 1));
assert_eq!(decoded.orientation, 6);
assert_eq!(decoded.exif.as_deref(), Some(exif.as_slice()));
assert_eq!(decoded.xmp.as_deref(), Some(xmp));
assert_eq!(decoded.to_srgb8().data, [[10, 120, 230, 255], [80, 40, 20, 255]]);
}
#[test]