just/tests/evaluate.rs
2021-04-05 21:17:53 -07:00

30 lines
392 B
Rust

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"
"#,
}