mirror of
https://github.com/nushell/nushell.git
synced 2024-11-26 02:13:47 +01:00
11 lines
198 B
Rust
11 lines
198 B
Rust
|
use nu_test_support::nu;
|
||
|
|
||
|
#[test]
|
||
|
fn source_file_relative_to_file() {
|
||
|
let actual = nu!(cwd: "tests/eval", r#"
|
||
|
{x: 1, x: 2}
|
||
|
"#);
|
||
|
|
||
|
assert!(actual.err.contains("redefined"));
|
||
|
}
|