mirror of
https://github.com/neovim/neovim.git
synced 2025-09-08 12:28:18 +00:00
functests: Make sure funcs.luaeval receives only one argument
This commit is contained in:
@@ -37,13 +37,14 @@ describe('luaeval(vim.api.…)', function()
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
it('correctly evaluates API code which calls luaeval', function()
|
it('correctly evaluates API code which calls luaeval', function()
|
||||||
eq(1, funcs.luaeval(([===[vim.api.nvim_eval([==[
|
local str = (([===[vim.api.nvim_eval([==[
|
||||||
luaeval('vim.api.nvim_eval([=[
|
luaeval('vim.api.nvim_eval([=[
|
||||||
luaeval("vim.api.nvim_eval([[
|
luaeval("vim.api.nvim_eval([[
|
||||||
luaeval(1)
|
luaeval(1)
|
||||||
]])")
|
]])")
|
||||||
]=])')
|
]=])')
|
||||||
]==])]===]):gsub('\n', ' ')))
|
]==])]===]):gsub('\n', ' '))
|
||||||
|
eq(1, funcs.luaeval(str))
|
||||||
end)
|
end)
|
||||||
|
|
||||||
it('correctly converts from API objects', function()
|
it('correctly converts from API objects', function()
|
||||||
|
Reference in New Issue
Block a user