mirror of
https://github.com/nushell/nushell.git
synced 2025-08-16 16:41:41 +02:00
Show entire table if number of rows requested for last
is greater than table size (#2112)
* Show entire table if number of rows requested for last is greater than table size * rustfmt * Add test
This commit is contained in:
@ -54,3 +54,15 @@ fn gets_last_row_when_no_amount_given() {
|
||||
assert_eq!(actual.out, "1");
|
||||
})
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn requests_more_rows_than_table_has() {
|
||||
let actual = nu!(
|
||||
cwd: ".", pipeline(
|
||||
r#"
|
||||
date | last 50 | count
|
||||
"#
|
||||
));
|
||||
|
||||
assert_eq!(actual.out, "1");
|
||||
}
|
||||
|
Reference in New Issue
Block a user