mirror of
https://github.com/nushell/nushell
synced 2024-12-30 15:03:25 +00:00
1345f97202
* throw `let nu/env/nothing/in` error in parsing * add tests and fmt * fix clippy * suggestions * fmt * `lvalue.span` instead of `spans[1]` * clippy * fmt
15 lines
274 B
Rust
15 lines
274 B
Rust
use nu_test_support::{nu, pipeline};
|
|
|
|
#[test]
|
|
fn let_parse_error() {
|
|
let actual = nu!(
|
|
cwd: ".", pipeline(
|
|
r#"
|
|
let in = 3
|
|
"#
|
|
));
|
|
|
|
assert!(actual
|
|
.err
|
|
.contains("'in' is the name of a builtin Nushell variable"));
|
|
}
|