test(raw): cover missing-tag CR2 gradient decode

This commit is contained in:
Dylan M. Taylor committed 2026-11-14 22:52:35 +00:00
1 parent dd692d907e
commit b5778c4f20
1 file changed
+4
+4
View File
@@ -486,6 +486,10 @@ pub(crate) mod tests {
let (cfa, assumed) = fallback_cfa(&gradient, 192, Rect::new(0, 0, 192, 96), 0.0, 4000.0, None);
assert_eq!(cfa.name(), "RGGB");
assert!(assumed);
let bytes = synthetic_cr2_of(&gradient, 192, 96, None, None);
let decoded = crate::decode(&bytes).unwrap();
assert_eq!(decoded.cfa.as_ref().unwrap().name(), "RGGB");
assert!(decoded.notices.assumed_cfa);
}
#[test]