diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2015-01-21 18:45:24 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2015-01-22 08:54:42 -0300 |
commit | 5b65ac2ca7995248eafbbc78abc1645dc93b636b (patch) | |
tree | d84fbf3937a056c7d3f54d7797706b05fb66d7e2 /test/functional/api/vim_spec.lua | |
parent | f08fe552f463475f60444fc7f9df982e8f81baf0 (diff) | |
download | rneovim-5b65ac2ca7995248eafbbc78abc1645dc93b636b.tar.gz rneovim-5b65ac2ca7995248eafbbc78abc1645dc93b636b.tar.bz2 rneovim-5b65ac2ca7995248eafbbc78abc1645dc93b636b.zip |
test: Make it possible to run functional tests with plain lua
Replace the hexadecimal escape sequences, which are only supported by luajit
Diffstat (limited to 'test/functional/api/vim_spec.lua')
-rw-r--r-- | test/functional/api/vim_spec.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/api/vim_spec.lua b/test/functional/api/vim_spec.lua index 2c17a2acd0..bee9c18bd8 100644 --- a/test/functional/api/vim_spec.lua +++ b/test/functional/api/vim_spec.lua @@ -117,7 +117,7 @@ describe('vim_* functions', function() describe('replace_termcodes', function() it('escapes K_SPECIAL as K_SPECIAL KS_SPECIAL KE_FILLER', function() - eq(helpers.nvim('replace_termcodes', '\x80', true, true, true), '\x80\xfeX') + eq(helpers.nvim('replace_termcodes', '\128', true, true, true), '\128\254X') end) it('leaves non K_SPECIAL string unchanged', function() |