diff options
author | Justin Gassner <justin.gassner@web.de> | 2016-01-22 11:57:08 +0100 |
---|---|---|
committer | Justin Gassner <justin.gassner@web.de> | 2016-01-23 15:33:31 +0100 |
commit | 50c4c56967933afa30ff5fdfc689120cfd0f762e (patch) | |
tree | e9ae8efa1b09afff82286a75de71acbd91a16997 | |
parent | f1aec23c0904fd5055f555a545adc5b801fff872 (diff) | |
download | rneovim-50c4c56967933afa30ff5fdfc689120cfd0f762e.tar.gz rneovim-50c4c56967933afa30ff5fdfc689120cfd0f762e.tar.bz2 rneovim-50c4c56967933afa30ff5fdfc689120cfd0f762e.zip |
vim-patch:dbcf19d
Add test files for patch 7.4.680.
https://github.com/vim/vim/commit/dbcf19dc498cb1561c9215a3f255e81cde0c0543
-rw-r--r-- | test/functional/legacy/erasebackword_spec.lua | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/functional/legacy/erasebackword_spec.lua b/test/functional/legacy/erasebackword_spec.lua new file mode 100644 index 0000000000..cb3967b763 --- /dev/null +++ b/test/functional/legacy/erasebackword_spec.lua @@ -0,0 +1,24 @@ +-- Test for CTRL-W in Insert mode + +local helpers = require('test.functional.helpers') +local clear, feed, expect = helpers.clear, helpers.feed, helpers.expect + +describe('CTRL-W in Insert mode', function() + setup(clear) + + it('works for multi-byte characters', function() + + for i = 1, 6 do + feed('o wwwこんにちわ世界ワールドvim ' .. string.rep('<C-w>', i) .. '<esc>') + end + + expect([[ + + wwwこんにちわ世界ワールド + wwwこんにちわ世界 + wwwこんにちわ + www + + ]]) + end) +end) |