From 2a464df744e3d10a67898ec23e7536315f1b73b5 Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Mon, 16 Nov 2026 06:10:21 -0800 Subject: [PATCH] Magic Wand: test that magicWand.set refuses a reset that is not true, false or null The rejection test now gives `reset` a string and checks that the call returns an error and leaves the settings unchanged. --- crates/engine/src/cmd/wand.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/engine/src/cmd/wand.rs b/crates/engine/src/cmd/wand.rs index 145ffd8dd1..00f3e0551d 100644 --- a/crates/engine/src/cmd/wand.rs +++ b/crates/engine/src/cmd/wand.rs @@ -382,6 +382,7 @@ mod tests { json!({"fillColor": "yes"}), json!({"fillTolerance": null}), json!({"strokeColor": null}), + json!({"reset": "yes", "fillColor": false}), json!({"reset": true, "fillTolerance": 101}), json!({"fillColor": false, "strokeTolerance": 101}), ] {