From 99b23f70079ebfe42c021d9eddcef06a9753db5f Mon Sep 17 00:00:00 2001 From: abc2cb <271337822+abc2cb@users.noreply.github.com> Date: Tue, 13 Oct 2026 22:15:35 +0300 Subject: [PATCH] PSD smart filters test: compare Wave's settings, not Photoshop's descriptor name Co-Authored-By: Claude Opus 5.5 --- crates/io/src/smart_map.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/io/src/smart_map.rs b/crates/io/src/smart_map.rs index cb100ca559..6e0f0f8483 100644 --- a/crates/io/src/smart_map.rs +++ b/crates/io/src/smart_map.rs @@ -1059,7 +1059,10 @@ mod tests { "undefinedAreas": "wrap", "seed": 1270346}) ) ); - assert_eq!(item_for_filter(&f).unwrap().get("Fltr"), Some(&Value::Descriptor(unscaled))); + match item_for_filter(&f).unwrap().get("Fltr") { + Some(Value::Descriptor(ours)) => assert_eq!((&ours.class_id, &ours.items), (&unscaled.class_id, &unscaled.items)), + other => panic!("wave: no Fltr ({other:?})"), + } } /// Invert on a smart object: Photoshop stores no `Fltr`, but `hasoptions` and its filter id.