summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/test_fzf.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/test_fzf.rb b/test/test_fzf.rb
index f8a06cf9..e11f2c55 100644
--- a/test/test_fzf.rb
+++ b/test/test_fzf.rb
@@ -822,6 +822,21 @@ class TestFZF < MiniTest::Unit::TestCase
tty << ctrl(:e) << " = " << ctrl(:y)
tty << "\r"
end
+
+ # Word-movements
+ assert_fzf_output %w[--print-query], "", "ello!_orld!~ foo=?" do |tty|
+ tty << "hello_world==baby?"
+ tty << alt(:b) << ctrl(:d)
+ tty << alt(:b) << ctrl(:d)
+ tty << alt(:b) << ctrl(:d)
+ tty << alt(:f) << '!'
+ tty << alt(:f) << '!'
+ tty << alt(:d) << '~'
+ tty << " foo=bar foo=bar"
+ tty << ctrl(:w)
+ tty << alt(127.chr)
+ tty << "\r"
+ end
end
def alt chr