Skip to content

Commit

Permalink
test(sub): Ensure works on all platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Apr 20, 2024
1 parent 1b69763 commit 4b45a74
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/snapbox/src/substitutions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 4b45a74

Please sign in to comment.