forked from extern/nushell
make first
behave same way as last
: always return list when with number argument (#6616)
* make `first` behave same way as `last` * better behaviour * fix tests * add tests
This commit is contained in:
@ -154,7 +154,7 @@ fn parses_tsv() {
|
||||
cwd: "tests/fixtures/formats", pipeline(
|
||||
r#"
|
||||
open caco3_plastics.tsv
|
||||
| first 1
|
||||
| first
|
||||
| get origin
|
||||
"#
|
||||
));
|
||||
@ -216,7 +216,7 @@ fn parses_arrow_ipc() {
|
||||
r#"
|
||||
open-df caco3_plastics.arrow
|
||||
| into nu
|
||||
| first 1
|
||||
| first
|
||||
| get origin
|
||||
"#
|
||||
));
|
||||
|
Reference in New Issue
Block a user