2023-01-11 23:06:17 -08:00
|
|
|
use super::*;
|
|
|
|
|
|
|
|
#[test]
|
2023-01-24 20:25:17 -08:00
|
|
|
fn argument_with_different_path_prefix_is_allowed() {
|
|
|
|
Test::new()
|
|
|
|
.justfile("foo bar:")
|
|
|
|
.args(["./foo", "../bar"])
|
|
|
|
.run();
|
2023-01-11 23:06:17 -08:00
|
|
|
}
|
2023-01-24 21:33:43 -08:00
|
|
|
|
|
|
|
#[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();
|
|
|
|
}
|