diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2020-12-30 18:41:53 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2020-12-30 18:43:16 +0900 |
commit | 408c04f25fd93f01488409e18ef94d56f8d3f952 (patch) | |
tree | fdb76b641e4e337f8bc124d5a0c1f1ba2adc3655 | |
parent | 7f8e0dbc408eff786865d0e2d9e3c62ec3ed4776 (diff) |
Update test case for 'first' and 'last'
-rwxr-xr-x | test/test_go.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/test_go.rb b/test/test_go.rb index 416692e2..f1456751 100755 --- a/test/test_go.rb +++ b/test/test_go.rb @@ -1554,8 +1554,8 @@ class TestGoFZF < TestBase tmux.until { |lines| assert_equal '> 1', lines[-2] } end - def test_change_top - tmux.send_keys %(seq 1000 | #{FZF} --bind change:top), :Enter + def test_change_first_last + tmux.send_keys %(seq 1000 | #{FZF} --bind change:first,alt-Z:last), :Enter tmux.until { |lines| assert_equal 1000, lines.match_count } tmux.send_keys :Up tmux.until { |lines| assert_equal '> 2', lines[-4] } @@ -1565,6 +1565,10 @@ class TestGoFZF < TestBase tmux.until { |lines| assert_equal '> 10', lines[-4] } tmux.send_keys 1 tmux.until { |lines| assert_equal '> 11', lines[-3] } + tmux.send_keys 'C-u' + tmux.until { |lines| assert_equal '> 1', lines[-3] } + tmux.send_keys :Escape, 'Z' + tmux.until { |lines| assert_equal '> 1000', lines[0] } tmux.send_keys :Enter end |