mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
functests: Make sure funcs.luaeval receives only one argument
This commit is contained in:
parent
f98a3d85ed
commit
9cad5155e3
@ -37,13 +37,14 @@ describe('luaeval(vim.api.…)', function()
|
||||
end)
|
||||
|
||||
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(1)
|
||||
]])")
|
||||
]=])')
|
||||
]==])]===]):gsub('\n', ' ')))
|
||||
]==])]===]):gsub('\n', ' '))
|
||||
eq(1, funcs.luaeval(str))
|
||||
end)
|
||||
|
||||
it('correctly converts from API objects', function()
|
||||
|
Loading…
Reference in New Issue
Block a user