aboutsummaryrefslogtreecommitdiff
path: root/test/unit/eval/helpers.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2016-05-06 01:13:39 -0400
committerJustin M. Keyes <justinkz@gmail.com>2016-05-06 01:13:39 -0400
commit4682b21ef2a85949dc781410997c169a169402cb (patch)
treead2fb4b2775cd07150f74c383c8344dfffc4c314 /test/unit/eval/helpers.lua
parent86eb339120d630aa5a4ab977d875b8acc701593c (diff)
parent360d0513d1ba2d6e2b8948daad5bb56f11db7070 (diff)
downloadrneovim-4682b21ef2a85949dc781410997c169a169402cb.tar.gz
rneovim-4682b21ef2a85949dc781410997c169a169402cb.tar.bz2
rneovim-4682b21ef2a85949dc781410997c169a169402cb.zip
Merge pull request #4654 from KillTheMule/testlint
Satisfy testlint.
Diffstat (limited to 'test/unit/eval/helpers.lua')
-rw-r--r--test/unit/eval/helpers.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/eval/helpers.lua b/test/unit/eval/helpers.lua
index da2f5626ff..2367f03e0d 100644
--- a/test/unit/eval/helpers.lua
+++ b/test/unit/eval/helpers.lua
@@ -12,7 +12,7 @@ local null_list = {[true]='NULL list'}
local type_key = {[true]='type key'}
local list_type = {[true]='list type'}
-local list = function(...)
+local function list(...)
local ret = ffi.gc(eval.list_alloc(), eval.list_unref)
eq(0, ret.lv_refcount)
ret.lv_refcount = 1
@@ -47,7 +47,7 @@ local lst2tbl = function(l)
while li ~= nil do
local typ = li.li_tv.v_type
if typ == eval.VAR_STRING then
- str = li.li_tv.vval.v_string
+ local str = li.li_tv.vval.v_string
if str == nil then
ret[#ret + 1] = null_string
else