mirror of
https://github.com/nushell/nushell.git
synced 2025-01-03 04:50:28 +01:00
add test
This commit is contained in:
parent
5a72f6db56
commit
af2439e880
@ -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 New Issue
Block a user