diff options
Diffstat (limited to 'test/acceptance/acceptance_test.rb')
-rw-r--r-- | test/acceptance/acceptance_test.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/acceptance/acceptance_test.rb b/test/acceptance/acceptance_test.rb index 4a11cac..cac4c26 100644 --- a/test/acceptance/acceptance_test.rb +++ b/test/acceptance/acceptance_test.rb @@ -320,6 +320,13 @@ class FzyTest < Minitest::Test @tty.assert_matches "> foo\nfoo" end + # https://github.com/jhawthorn/fzy/issues/81 + def test_slow_stdin_fast_user + @tty = TTYtest.new_terminal(%{(echo aa; echo bc; echo bd; sleep 0.5) | #{FZY_PATH}}) + @tty.send_keys("b\r") + @tty.assert_matches "bc" + end + def test_help @tty = TTYtest.new_terminal(%{#{FZY_PATH} --help}) @tty.assert_matches <<TTY |