test: windows quote arg

This commit is contained in:
Pedro Witzel authored and David Peter committed 2023-10-05 09:25:07 +02:00
1 parent b38d550b89
commit 25331f89f9
1 file changed
+18
+18
View File
@@ -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();
}