aboutsummaryrefslogtreecommitdiff
path: root/test/functional/lua/luaeval_spec.lua
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2024-01-17 13:46:55 +0000
committerGitHub <noreply@github.com>2024-01-17 13:46:55 +0000
commite855a80c72ed89815255bb6ff38bff27e58e523f (patch)
treeecb2245caed90d99785df194199cf971284852ee /test/functional/lua/luaeval_spec.lua
parentd88814ef68b3f2ad3ed005ee0683eff063b017a6 (diff)
parent14b7ffcf89bc448b626df3d9e19f9f5a3682ae2b (diff)
downloadrneovim-e855a80c72ed89815255bb6ff38bff27e58e523f.tar.gz
rneovim-e855a80c72ed89815255bb6ff38bff27e58e523f.tar.bz2
rneovim-e855a80c72ed89815255bb6ff38bff27e58e523f.zip
Merge pull request #27024 from lewis6991/test_followup
test: big cleanup followup + typing
Diffstat (limited to 'test/functional/lua/luaeval_spec.lua')
-rw-r--r--test/functional/lua/luaeval_spec.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/lua/luaeval_spec.lua b/test/functional/lua/luaeval_spec.lua
index 6ed7af6b6e..171d37ba55 100644
--- a/test/functional/lua/luaeval_spec.lua
+++ b/test/functional/lua/luaeval_spec.lua
@@ -162,7 +162,7 @@ describe('luaeval()', function()
return sp('map', '[' .. val .. ']')
end
local function luaevalarg(argexpr, expr)
- return eval(([=[
+ return eval((([=[
[
extend(g:, {'_ret': luaeval(%s, %s)})._ret,
type(g:_ret)==type({})&&has_key(g:_ret, '_TYPE')
@@ -172,7 +172,7 @@ describe('luaeval()', function()
get(g:_ret, '_VAL', g:_ret)
]
: [0, g:_ret]][1]
- ]=]):format(expr or '"_A"', argexpr):gsub('\n', ''))
+ ]=]):format(expr or '"_A"', argexpr):gsub('\n', '')))
end
it('correctly passes special dictionaries', function()