From 408c04f25fd93f01488409e18ef94d56f8d3f952 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Wed, 30 Dec 2020 18:41:53 +0900 Subject: [PATCH] Update test case for 'first' and 'last' --- test/test_go.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/test_go.rb b/test/test_go.rb index 416692e..f145675 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