diff --git a/tests/filters_test.rs b/tests/filters_test.rs index 8b0e40bef3..d398b4f0a6 100644 --- a/tests/filters_test.rs +++ b/tests/filters_test.rs @@ -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"); +} \ No newline at end of file