forked from extern/nushell
Fix bad operator (#3479)
This commit is contained in:
@ -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!(
|
||||
|
Reference in New Issue
Block a user