mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-16 23:42:27 +00:00
test(raw): cover missing-tag CR2 gradient decode
This commit is contained in:
1 parent
dd692d907e
commit
b5778c4f20
1 file changed
+4
@@ -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]
|
||||
|
||||
Reference in new issue
Block a user