add in a new command called columns (#519)

This commit is contained in:
Michael Angerman
2021-12-18 10:14:28 -08:00
committed by GitHub
parent 8933dde324
commit 00bb203756
4 changed files with 124 additions and 0 deletions

View File

@ -1287,3 +1287,16 @@ fn flatten_table_column_get_last() -> TestResult {
"0.22",
)
}
#[test]
fn get_table_columns_1() -> TestResult {
run_test(
"[[name, age, grade]; [paul,21,a]] | columns | first",
"name",
)
}
#[test]
fn get_table_columns_2() -> TestResult {
run_test("[[name, age, grade]; [paul,21,a]] | columns | nth 1", "age")
}