mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
test: Make it possible to run functional tests with plain lua
Replace the hexadecimal escape sequences, which are only supported by luajit
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user