just/tests/evaluate.rs

30 lines
392 B
Rust
Raw Normal View History

test! {
name: evaluate,
justfile: r#"
foo := "a\t"
hello := "c"
bar := "b\t"
ab := foo + bar + hello
wut:
touch /this/is/not/a/file
"#,
args: ("--evaluate"),
stdout: r#"ab := "a b c"
bar := "b "
foo := "a "
hello := "c"
"#,
}
test! {
name: evaluate_empty,
justfile: "
a := 'foo'
",
args: ("--evaluate"),
stdout: r#"
a := "foo"
"#,
}