Skip to content

Commit

Permalink
test: windows quote arg
Browse files Browse the repository at this point in the history
  • Loading branch information
PedroWitzel authored and sharkdp committed Oct 5, 2023
1 parent b38d550 commit 25331f8
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/integration_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -423,3 +423,21 @@ fn speed_comparison_sort_order() {
"2.00 ± 0.00 sleep 2\n 1.00 sleep 1",
));
}

#[cfg(windows)]
#[test]
fn windows_quote_args() {
hyperfine()
.arg("more \"example_input_file.txt\"")
.assert()
.success();
}

#[cfg(windows)]
#[test]
fn windows_quote_before_quote_args() {
hyperfine()
.arg("dir \"..\\src\\\" \"..\\tests\\\"")
.assert()
.success();
}

0 comments on commit 25331f8

Please sign in to comment.