diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/test_filter.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test_filter.rb b/test/test_filter.rb index 718c6e57..3e604412 100644 --- a/test/test_filter.rb +++ b/test/test_filter.rb @@ -52,6 +52,12 @@ class TestFilter < TestBase `find . -print0 | #{FZF} --read0 -e -f "^#{lines.last}$"`.chomp end + def test_nth_suffix_match + assert_equal \ + 'foo,bar,baz', + `echo foo,bar,baz | #{FZF} -d, -f'bar$' -n2`.chomp + end + def test_with_nth_basic writelines(['hello world ', 'byebye']) assert_equal \ |
