fzy

terminal fuzzy finder picker

git clone https://9o.is/git/fzy.git

commit cd79e59deab2d98b527c8d51bae929f0572e2ecb
parent 1118de20749c2bb2e6a1f429875ceaa6943b27b7
Author: John Hawthorn <john.hawthorn@gmail.com>
Date:   Tue,  7 Feb 2017 18:31:42 -0800

Add acceptance test for initial query

Diffstat:
Mtest/acceptance/acceptance_test.rb | 12++++++++++++
1 file changed, 12 insertions(+), 0 deletions(-)

diff --git a/test/acceptance/acceptance_test.rb b/test/acceptance/acceptance_test.rb @@ -271,6 +271,18 @@ class FzyTest < Minitest::Test @tty.assert_matches "> 34\n34\n340\n341" end + def test_initial_query + @tty = TTYtest.new_terminal(%{echo -n "foo\nbar" | #{FZY_PATH} -q fo}) + @tty.assert_matches "> fo\nfoo" + @tty.send_keys("o") + @tty.assert_matches "> foo\nfoo" + @tty.send_keys("o") + @tty.assert_matches "> fooo" + + @tty = TTYtest.new_terminal(%{echo -n "foo\nbar" | #{FZY_PATH} -q asdf}) + @tty.assert_matches "> asdf" + end + def test_help @tty = TTYtest.new_terminal(%{#{FZY_PATH} --help}) @tty.assert_matches <<TTY