22 lines
283 B
Rust
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();
|
||
|
}
|