diff options
Diffstat (limited to 'test/test_go.rb')
-rwxr-xr-x | test/test_go.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/test_go.rb b/test/test_go.rb index 74f9851a..3050fa0a 100755 --- a/test/test_go.rb +++ b/test/test_go.rb @@ -2043,8 +2043,8 @@ class TestGoFZF < TestBase tmux.until { |lines| assert_equal(%w[1 2 3 4 5], top5[lines]) } end - def test_unbind - tmux.send_keys "seq 100 | #{FZF} --bind 'c:clear-query,d:unbind(c,d)'", :Enter + def test_unbind_rebind + tmux.send_keys "seq 100 | #{FZF} --bind 'c:clear-query,d:unbind(c,d),e:rebind(c,d)'", :Enter tmux.until { |lines| assert_equal 100, lines.item_count } tmux.send_keys 'ab' tmux.until { |lines| assert_equal '> ab', lines[-1] } @@ -2052,6 +2052,8 @@ class TestGoFZF < TestBase tmux.until { |lines| assert_equal '>', lines[-1] } tmux.send_keys 'dabcd' tmux.until { |lines| assert_equal '> abcd', lines[-1] } + tmux.send_keys 'ecabddc' + tmux.until { |lines| assert_equal '> abdc', lines[-1] } end def test_item_index_reset_on_reload |