diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-05-21 13:38:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-21 13:38:59 +0200 |
commit | 9cc10c69f2533a71c0e352b534d0b09567e51668 (patch) | |
tree | 58b886199dc65c8a15f4d66deb9e927b96d5813f /test/functional/api/vim_spec.lua | |
parent | bfb9cf1fc3fb377e4ca1430e95435fe7ad06282b (diff) | |
parent | 872465cf1d0942a6aa7287174dd2df24e84d9241 (diff) | |
download | rneovim-9cc10c69f2533a71c0e352b534d0b09567e51668.tar.gz rneovim-9cc10c69f2533a71c0e352b534d0b09567e51668.tar.bz2 rneovim-9cc10c69f2533a71c0e352b534d0b09567e51668.zip |
Merge #6775 from justinmk/doc
Diffstat (limited to 'test/functional/api/vim_spec.lua')
-rw-r--r-- | test/functional/api/vim_spec.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/functional/api/vim_spec.lua b/test/functional/api/vim_spec.lua index 61ec6ea829..161682b973 100644 --- a/test/functional/api/vim_spec.lua +++ b/test/functional/api/vim_spec.lua @@ -368,6 +368,11 @@ describe('api', function() '<LeftMouse>', true, true, true)) end) + it('converts keycodes', function() + eq('\nx\27x\rx<x', helpers.nvim('replace_termcodes', + '<NL>x<Esc>x<CR>x<lt>x', true, true, true)) + end) + it('does not crash when transforming an empty string', function() -- Actually does not test anything, because current code will use NULL for -- an empty string. |