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 b5220cd commit 77787d8
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 @@ -540,7 +540,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 77787d8

Please sign in to comment.