aboutsummaryrefslogtreecommitdiff
path: root/test/unit/eval/helpers.lua
diff options
context:
space:
mode:
authorKillTheMule <KillTheMule@users.noreply.github.com>2016-04-26 21:14:33 +0200
committerKillTheMule <KillTheMule@users.noreply.github.com>2016-04-28 19:30:17 +0200
commit360d0513d1ba2d6e2b8948daad5bb56f11db7070 (patch)
treef365f1bae22f77bae5730b383b48b1646af21b33 /test/unit/eval/helpers.lua
parente861af85f89e119193a9e219a4cb766757e28e5a (diff)
downloadrneovim-360d0513d1ba2d6e2b8948daad5bb56f11db7070.tar.gz
rneovim-360d0513d1ba2d6e2b8948daad5bb56f11db7070.tar.bz2
rneovim-360d0513d1ba2d6e2b8948daad5bb56f11db7070.zip
Satisfy testlint.
For that, make luatest ignore the preload.lua files.
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