From 5b65ac2ca7995248eafbbc78abc1645dc93b636b Mon Sep 17 00:00:00 2001 From: Thiago de Arruda Date: Wed, 21 Jan 2015 18:45:24 -0300 Subject: test: Make it possible to run functional tests with plain lua Replace the hexadecimal escape sequences, which are only supported by luajit --- test/functional/api/vim_spec.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/functional/api/vim_spec.lua') 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() -- cgit