mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 12:55:47 +02:00
nu-command/filters: drop column check positive value (#6412)
This commit is contained in:
@ -16,6 +16,17 @@ fn columns() {
|
||||
assert_eq!(actual.out, "1");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn drop_columns_positive_value() {
|
||||
let actual = nu!(
|
||||
cwd: ".", pipeline(r#"
|
||||
echo [[a, b];[1,2]] | drop column -1
|
||||
"#)
|
||||
);
|
||||
|
||||
assert!(actual.err.contains("use a positive value"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn more_columns_than_table_has() {
|
||||
let actual = nu!(
|
||||
|
Reference in New Issue
Block a user