diff options
-rw-r--r-- | test/helpers.lua | 1 | ||||
-rw-r--r-- | test/unit/charset/vim_str2nr_spec.lua | 5 |
2 files changed, 1 insertions, 5 deletions
diff --git a/test/helpers.lua b/test/helpers.lua index 3ec4aa511f..faf5c8e7f2 100644 --- a/test/helpers.lua +++ b/test/helpers.lua @@ -273,6 +273,7 @@ local deepcopy_funcs = { for k, v in pairs(orig) do copy[deepcopy(k)] = deepcopy(v) end + return copy end, number = id, string = id, diff --git a/test/unit/charset/vim_str2nr_spec.lua b/test/unit/charset/vim_str2nr_spec.lua index a6fe613563..891e6def09 100644 --- a/test/unit/charset/vim_str2nr_spec.lua +++ b/test/unit/charset/vim_str2nr_spec.lua @@ -1,5 +1,4 @@ local helpers = require("test.unit.helpers")(after_each) -local global_helpers = require('test.helpers') local bit = require('bit') local itp = helpers.gen_itp(it) @@ -8,9 +7,6 @@ local child_call_once = helpers.child_call_once local cimport = helpers.cimport local ffi = helpers.ffi -local shallowcopy = global_helpers.shallowcopy -local updated = global_helpers.updated - local lib = cimport('./src/nvim/charset.h') local ARGTYPES @@ -48,7 +44,6 @@ local function argreset(arg, args) end local function test_vim_str2nr(s, what, exp, maxlen) - local comb = {[{}] = true} local bits = {} for k, _ in pairs(exp) do bits[#bits + 1] = k |