mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 00:54:56 +02:00
a few more tests (#4488)
This commit is contained in:
@ -1,21 +1,15 @@
|
||||
use nu_test_support::{nu, pipeline};
|
||||
|
||||
// FIXME: jt: needs more work
|
||||
#[ignore]
|
||||
#[test]
|
||||
fn columns() {
|
||||
let actual = nu!(
|
||||
cwd: ".", pipeline(r#"
|
||||
echo [
|
||||
[arepas, color];
|
||||
|
||||
[3, white]
|
||||
[8, yellow]
|
||||
[4, white]
|
||||
]
|
||||
| drop column
|
||||
| get
|
||||
| length
|
||||
] | drop column | columns | length
|
||||
"#)
|
||||
);
|
||||
|
||||
@ -30,14 +24,10 @@ fn more_columns_than_table_has() {
|
||||
cwd: ".", pipeline(r#"
|
||||
echo [
|
||||
[arepas, color];
|
||||
|
||||
[3, white]
|
||||
[8, yellow]
|
||||
[4, white]
|
||||
]
|
||||
| drop column 3
|
||||
| get
|
||||
| empty?
|
||||
] | drop column 3 | columns | empty?
|
||||
"#)
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user