port over from nushell drop column (#495)

* port over from nushell drop column

* fix clippy
This commit is contained in:
Michael Angerman
2021-12-14 11:54:27 -08:00
committed by GitHub
parent a41ae72bc1
commit 1cbb785969
4 changed files with 178 additions and 0 deletions

View File

@ -1233,6 +1233,18 @@ fn command_filter_reject_3() -> TestResult {
)
}
#[test]
fn command_drop_column_1() -> TestResult {
run_test(
"[[lang, gems, grade]; [nu, 100, a]] | drop column 2 | to json",
r#"[
{
"lang": "nu"
}
]"#,
)
}
#[test]
fn chained_operator_typecheck() -> TestResult {
run_test("1 != 2 && 3 != 4 && 5 != 6", "true")