mirror of
https://github.com/nushell/nushell
synced 2024-12-27 05:23:11 +00:00
add test
This commit is contained in:
parent
5a72f6db56
commit
af2439e880
1 changed files with 11 additions and 0 deletions
|
@ -89,3 +89,14 @@ fn can_filter_by_unit_size_comparison() {
|
|||
|
||||
assert_eq!(output, "caco3_plastics.csv");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn can_get_last() {
|
||||
nu!(
|
||||
output,
|
||||
cwd("tests/fixtures/formats"),
|
||||
"ls | last 1 | get name | trim | echo $it"
|
||||
);
|
||||
|
||||
assert_eq!(output, "utf16.ini");
|
||||
}
|
Loading…
Reference in a new issue