diff options
Diffstat (limited to 'test/unit')
| -rw-r--r-- | test/unit/eval/typval_spec.lua | 1 | ||||
| -rw-r--r-- | test/unit/garray_spec.lua | 1 | ||||
| -rw-r--r-- | test/unit/helpers.lua | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/test/unit/eval/typval_spec.lua b/test/unit/eval/typval_spec.lua index 919a42fbb9..8c85ff3f34 100644 --- a/test/unit/eval/typval_spec.lua +++ b/test/unit/eval/typval_spec.lua @@ -2,6 +2,7 @@ local bit = require('bit') local helpers = require('test.unit.helpers')(after_each) local eval_helpers = require('test.unit.eval.helpers') local global_helpers = require('test.helpers') +local unpack = table.unpack or unpack -- luacheck: ignore local itp = helpers.gen_itp(it) diff --git a/test/unit/garray_spec.lua b/test/unit/garray_spec.lua index 28df8a6e3f..e1839d1811 100644 --- a/test/unit/garray_spec.lua +++ b/test/unit/garray_spec.lua @@ -13,6 +13,7 @@ local garray = cimport('./src/nvim/garray.h') local itemsize = 14 local growsize = 95 +local unpack = table.unpack or unpack -- luacheck: ignore -- define a basic interface to garray. We could make it a lot nicer by -- constructing a class wrapper around garray. It could for example associate diff --git a/test/unit/helpers.lua b/test/unit/helpers.lua index f8143a0125..81847abc36 100644 --- a/test/unit/helpers.lua +++ b/test/unit/helpers.lua @@ -9,6 +9,7 @@ local say = require('say') local posix = nil local syscall = nil +local unpack = table.unpack or unpack -- luacheck: ignore local check_cores = global_helpers.check_cores local dedent = global_helpers.dedent |