From af2439e8800f8e651ed05313fda984a6ddddb484 Mon Sep 17 00:00:00 2001 From: Issac Trotts Date: Sat, 24 Aug 2019 14:55:42 -0700 Subject: [PATCH] add test --- tests/filters_test.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) 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