From 221f6fffad12beaa928ccedae336d64b7b1c1208 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Thu, 29 Nov 2018 22:51:20 +0100 Subject: runtime/lua/vim/compat.lua ref #9280 Introduce the `vim.compat` module, to help environments with system Lua 5.2+ run the build/tests. Include the module implicitly in all tests. ref #8677 legacy `vim` module: beep buffer command dict eval firstline lastline line list open type window --- test/unit/eval/typval_spec.lua | 1 - test/unit/garray_spec.lua | 1 - test/unit/helpers.lua | 1 - 3 files changed, 3 deletions(-) (limited to 'test/unit') diff --git a/test/unit/eval/typval_spec.lua b/test/unit/eval/typval_spec.lua index 8c85ff3f34..919a42fbb9 100644 --- a/test/unit/eval/typval_spec.lua +++ b/test/unit/eval/typval_spec.lua @@ -2,7 +2,6 @@ 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 e1839d1811..28df8a6e3f 100644 --- a/test/unit/garray_spec.lua +++ b/test/unit/garray_spec.lua @@ -13,7 +13,6 @@ 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 81847abc36..f8143a0125 100644 --- a/test/unit/helpers.lua +++ b/test/unit/helpers.lua @@ -9,7 +9,6 @@ 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 -- cgit