2
0
Fork 0
mirror of https://github.com/nushell/nushell synced 2025-02-13 04:33:38 +00:00
nushell/tests/eval/mod.rs
nibon7 e566a073dc
Exit early when encountering parsing errors ()
# Description
This PR tries to fix  and .
2023-09-05 14:36:37 +02:00

18 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"));
}