From fb2f22e17f498c1540cd3961d0cd5966c534c74a Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Tue, 24 Jan 2023 21:33:43 -0800 Subject: [PATCH] Test passing dot as argument between justfiles (#1530) --- tests/search_arguments.rs | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/tests/search_arguments.rs b/tests/search_arguments.rs index c122404..b663d50 100644 --- a/tests/search_arguments.rs +++ b/tests/search_arguments.rs @@ -7,3 +7,23 @@ fn argument_with_different_path_prefix_is_allowed() { .args(["./foo", "../bar"]) .run(); } + +#[test] +fn passing_dot_as_argument_is_allowed() { + Test::new() + .justfile( + " + say ARG: + echo {{ARG}} + ", + ) + .write( + "child/justfile", + "say ARG:\n '{{just_executable()}}' ../say {{ARG}}", + ) + .current_dir("child") + .args(["say", "."]) + .stdout(".\n") + .stderr_regex("'.*' ../say .\necho .\n") + .run(); +}