diff options
author | John Hawthorn <john.hawthorn@gmail.com> | 2017-08-13 07:27:39 -0700 |
---|---|---|
committer | John Hawthorn <john.hawthorn@gmail.com> | 2017-08-13 07:27:39 -0700 |
commit | f1e5078925471206e1248f28b965759a109ef8eb (patch) | |
tree | 8333cb34044f8f123fea3a0d26dda199aa4c233d /test/acceptance | |
parent | 59d80ed05338ae64e0d1265fbb8c4629e213588a (diff) |
Add acceptance test for bracketed paste characters
Diffstat (limited to 'test/acceptance')
-rw-r--r-- | test/acceptance/acceptance_test.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/acceptance/acceptance_test.rb b/test/acceptance/acceptance_test.rb index 2f9d2ea..53090ff 100644 --- a/test/acceptance/acceptance_test.rb +++ b/test/acceptance/acceptance_test.rb @@ -288,6 +288,16 @@ class FzyTest < Minitest::Test @tty.assert_matches "before\nfoo\nafter" end + # More info; + # https://github.com/jhawthorn/fzy/issues/42 + # https://cirw.in/blog/bracketed-paste + def test_bracketed_paste_characters + @tty = TTYtest.new_terminal(%{echo -n "foo\nbar" | #{FZY_PATH}}) + @tty.assert_matches ">\nfoo\nbar" + @tty.send_keys("\e[200~foo\e[201~") + @tty.assert_matches "> foo\nfoo" + end + def test_help @tty = TTYtest.new_terminal(%{#{FZY_PATH} --help}) @tty.assert_matches <<TTY |