diff options
author | ZyX <kp-pav@yandex.ru> | 2017-10-30 01:48:32 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2017-11-06 01:17:37 +0300 |
commit | 3ecb95298ffd9ef6ee681876f2d32553fd222b96 (patch) | |
tree | 0085994aa9e95957abef84f84a6b29714a31d53c /test/unit/helpers.lua | |
parent | 0356dbbb36ffa7934c35e9dbfc6667f9118c244f (diff) | |
download | rneovim-3ecb95298ffd9ef6ee681876f2d32553fd222b96.tar.gz rneovim-3ecb95298ffd9ef6ee681876f2d32553fd222b96.tar.bz2 rneovim-3ecb95298ffd9ef6ee681876f2d32553fd222b96.zip |
tests: Fix testlint errors
Diffstat (limited to 'test/unit/helpers.lua')
-rw-r--r-- | test/unit/helpers.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/helpers.lua b/test/unit/helpers.lua index 68ce9eed62..96aa505739 100644 --- a/test/unit/helpers.lua +++ b/test/unit/helpers.lua @@ -791,7 +791,7 @@ local function kvi_new(ct) return kvi_init(ffi.new(ct)) end -local function make_enum_conv_tab(lib, values, skip_pref, set_cb) +local function make_enum_conv_tab(m, values, skip_pref, set_cb) child_call_once(function() local ret = {} for _, v in ipairs(values) do @@ -799,7 +799,7 @@ local function make_enum_conv_tab(lib, values, skip_pref, set_cb) if v:sub(1, #skip_pref) == skip_pref then str_v = v:sub(#skip_pref + 1) end - ret[tonumber(lib[v])] = str_v + ret[tonumber(m[v])] = str_v end set_cb(ret) end) @@ -837,7 +837,7 @@ local module = { child_cleanup_once = child_cleanup_once, sc = sc, conv_enum = conv_enum, - array_size = array_sive, + array_size = array_size, kvi_destroy = kvi_destroy, kvi_size = kvi_size, kvi_init = kvi_init, |