summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2014-12-24 01:30:45 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2014-12-24 13:27:39 +0900
commitec040d82dd8520dd1f4ae7847108380b201f21fd (patch)
treefed4464598906bcbd5d84d34e17f0832506c034c /test
parent00190677d421b4833488befd7d96b22d2014f32d (diff)
Improve word motions: ALT-B, ALT-F, ALT-D, ALT-BS (#112)
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