cargo fmt and clippy across the panorama work, and one lint master carried
The dr-face comparison is master's: a negated partial-order test on the eye box's width, rewritten as the two conditions it meant.
This commit is contained in:
@@ -2243,8 +2243,14 @@ mod tests {
|
||||
merge = panorama cylindrical 49.7mm 2 frames\n\n[version u1]\nname = Default\n\
|
||||
revision = 1\nmodified = 0\n";
|
||||
let sidecar = Sidecar::parse(text).expect("parses");
|
||||
assert_eq!(sidecar.derived_from, vec!["2025/_MG_8320.CR2", "2025/_MG_8321.CR2"]);
|
||||
assert_eq!(sidecar.merge.as_deref(), Some("panorama cylindrical 49.7mm 2 frames"));
|
||||
assert_eq!(
|
||||
sidecar.derived_from,
|
||||
vec!["2025/_MG_8320.CR2", "2025/_MG_8321.CR2"]
|
||||
);
|
||||
assert_eq!(
|
||||
sidecar.merge.as_deref(),
|
||||
Some("panorama cylindrical 49.7mm 2 frames")
|
||||
);
|
||||
let out = sidecar.to_text();
|
||||
assert!(out.starts_with("drsc 1\nderived_from = 2025/_MG_8320.CR2\n"));
|
||||
assert_eq!(Sidecar::parse(&out).expect("re-parses"), sidecar);
|
||||
|
||||
Reference in New Issue
Block a user