Fix bad operator (#3479)

This commit is contained in:
JT
2021-05-24 17:27:10 +12:00
committed by GitHub
parent 3bcc2aad80
commit 5fcc7f2328
4 changed files with 23 additions and 4 deletions

View File

@ -433,6 +433,18 @@ fn can_process_one_row_from_internal_and_pipes_it_to_stdin_of_external() {
assert_eq!(actual.out, "nushell");
}
#[test]
fn bad_operator() {
let actual = nu!(
cwd: ".",
r#"
2 $ 2
"#
);
assert!(actual.err.contains("operator"));
}
#[test]
fn index_out_of_bounds() {
let actual = nu!(