mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 02:55:07 +02:00
port over from nushell drop column (#495)
* port over from nushell drop column * fix clippy
This commit is contained in:
12
src/tests.rs
12
src/tests.rs
@ -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")
|
||||
|
Reference in New Issue
Block a user