From 25331f89f957e69bb541f1f4a3330356df06969a Mon Sep 17 00:00:00 2001 From: Pedro Witzel Date: Mon, 28 Aug 2023 22:39:04 +0200 Subject: [PATCH] test: windows quote arg --- tests/integration_tests.rs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/tests/integration_tests.rs b/tests/integration_tests.rs index 5cbdfa0e9..22ef5a8c0 100644 --- a/tests/integration_tests.rs +++ b/tests/integration_tests.rs @@ -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(); +} \ No newline at end of file