mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-11-03 09:23:00 +00:00
test: windows quote arg
This commit is contained in:
1 parent
b38d550b89
commit
25331f89f9
1 file changed
+18
@@ -423,3 +423,21 @@ fn speed_comparison_sort_order() {
|
|||||||
"2.00 ± 0.00 sleep 2\n 1.00 sleep 1",
|
"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();
|
||||||
|
}
|
||||||
Reference in new issue
Block a user