mirror of
https://github.com/nushell/nushell.git
synced 2024-12-25 16:39:08 +01:00
e566a073dc
# Description This PR tries to fix #10184 and #10182.
19 lines
336 B
Rust
19 lines
336 B
Rust
use nu_test_support::nu;
|
|
|
|
#[test]
|
|
fn source_file_relative_to_file() {
|
|
let actual = nu!("{x: 1, x: 2}");
|
|
|
|
assert!(actual.err.contains("redefined"));
|
|
}
|
|
|
|
#[test]
|
|
fn run_file_parse_error() {
|
|
let actual = nu!(
|
|
cwd: "tests/fixtures/eval",
|
|
"nu script.nu"
|
|
);
|
|
|
|
assert!(actual.err.contains("unknown type"));
|
|
}
|