Commit e8b25ac3 authored by hjk's avatar hjk

FakeVim: Add another autotest for 'w'

Change-Id: Ice665ca96eb6fc0ad50548e55d29eefe1f20f111
Reviewed-by: default avatarLukas Holecek <hluk@email.cz>
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent c68e90ec
......@@ -400,6 +400,12 @@ void FakeVimPlugin::test_vim_movement()
KEYS("2B", X "123 " "456.789 " "abc " "def");
KEYS("4W", "123 " "456.789 " "abc " "de" X "f");
data.setText("assert(abc);");
KEYS("w", "assert" X "(abc);");
KEYS("w", "assert(" X "abc);");
KEYS("w", "assert(abc" X ");");
KEYS("w", "assert(abc)" X ";");
data.setText("123" N "45." "6" N "" N " " N "789");
KEYS("3w", "123" N "45." X "6" N "" N " " N "789");
// From Vim help (motion.txt): An empty line is also considered to be a word.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment