summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2022-12-27 19:54:46 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2022-12-27 19:54:46 +0900
commit4b3f0b9f083ffff69b432b4d01eaab11d2cf58b9 (patch)
treec74604cadc902f6121e2e583d25c09d777f803cb /test
parent12af069dcad672b1563388c61ec33ba8a86c013e (diff)
downloadfzf-4b3f0b9f083ffff69b432b4d01eaab11d2cf58b9.tar.gz
Allow put action with an argument i.e. put(...)
Diffstat (limited to 'test')
-rwxr-xr-xtest/test_go.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/test_go.rb b/test/test_go.rb
index 2956d189..4b2856eb 100755
--- a/test/test_go.rb
+++ b/test/test_go.rb
@@ -1620,6 +1620,15 @@ class TestGoFZF < TestBase
tmux.until { |lines| assert_includes lines[1], ' 1/1' }
end
+ def test_put
+ tmux.send_keys %(seq 1000 | #{FZF} --bind 'a:put+put,b:put+put(ravo)' --preview 'echo {q}/{q}'), :Enter
+ tmux.until { |lines| assert_equal 1000, lines.match_count }
+ tmux.send_keys :a
+ tmux.until { |lines| assert_includes lines[1], ' aa/aa' }
+ tmux.send_keys :b
+ tmux.until { |lines| assert_includes lines[1], ' aabravo/aabravo' }
+ end
+
def test_accept_non_empty
tmux.send_keys %(seq 1000 | #{fzf('--print-query --bind enter:accept-non-empty')}), :Enter
tmux.until { |lines| assert_equal 1000, lines.match_count }