From 4b45a74dee09091255dfc2ecbcb778b282700c90 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Sat, 20 Apr 2024 12:34:20 -0500 Subject: [PATCH] test(sub): Ensure works on all platforms --- crates/snapbox/src/substitutions.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/snapbox/src/substitutions.rs b/crates/snapbox/src/substitutions.rs index 71bd89bc..e691dd0d 100644 --- a/crates/snapbox/src/substitutions.rs +++ b/crates/snapbox/src/substitutions.rs @@ -536,7 +536,8 @@ mod test { fn substitute_disabled() { let input = "cargo"; let pattern = "cargo[EXE]"; - let sub = Substitutions::with_exe(); + let mut sub = Substitutions::new(); + sub.insert("[EXE]", "").unwrap(); let actual = normalize(input, pattern, &sub); assert_eq!(actual, pattern); }