mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 07:55:59 +02:00
Fix default duplicates column (#4452)
* Add test to ensure default not adding dup. columns * Fix for default adding duplicate columns
This commit is contained in:
@ -232,6 +232,14 @@ fn length_for_rows() -> TestResult {
|
||||
run_test(r#"[[name,age,grade]; [bill,20,a] [a b c]] | length"#, "2")
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn length_defaulted_columns() -> TestResult {
|
||||
run_test(
|
||||
r#"echo [[name, age]; [test, 10]] | default age 11 | get 0 | columns | length"#,
|
||||
"2",
|
||||
)
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn get_fuzzy() -> TestResult {
|
||||
run_test("(ls | get -i foo) == $nothing", "true")
|
||||
|
Reference in New Issue
Block a user