1
1
mirror of https://github.com/casey/just.git synced 2024-11-28 22:00:18 +03:00
just/tests/allow_duplicate_variables.rs

22 lines
283 B
Rust

use super::*;
#[test]
fn allow_duplicate_variables() {
Test::new()
.justfile(
"
a := 'foo'
a := 'bar'
set allow-duplicate-variables
b:
echo {{a}}
",
)
.arg("b")
.stdout("bar\n")
.stderr("echo bar\n")
.run();
}