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/functional/api/server_requests_spec.lua | 1 - test/functional/api/tabpage_spec.lua | 1 - test/functional/api/window_spec.lua | 1 - 3 files changed, 3 deletions(-) (limited to 'test/functional/api') diff --git a/test/functional/api/server_requests_spec.lua b/test/functional/api/server_requests_spec.lua index 8de71a56e9..4d25ba0819 100644 --- a/test/functional/api/server_requests_spec.lua +++ b/test/functional/api/server_requests_spec.lua @@ -2,7 +2,6 @@ -- `rpcrequest` calls we need the client event loop to be running. local helpers = require('test.functional.helpers')(after_each) local Paths = require('test.config.paths') -local unpack = table.unpack or unpack -- luacheck: ignore local clear, nvim, eval = helpers.clear, helpers.nvim, helpers.eval local eq, neq, run, stop = helpers.eq, helpers.neq, helpers.run, helpers.stop diff --git a/test/functional/api/tabpage_spec.lua b/test/functional/api/tabpage_spec.lua index 584bca7111..c49091db02 100644 --- a/test/functional/api/tabpage_spec.lua +++ b/test/functional/api/tabpage_spec.lua @@ -8,7 +8,6 @@ local request = helpers.request local NIL = helpers.NIL local meth_pcall = helpers.meth_pcall local command = helpers.command -local unpack = table.unpack or unpack -- luacheck: ignore describe('api/tabpage', function() before_each(clear) diff --git a/test/functional/api/window_spec.lua b/test/functional/api/window_spec.lua index 273991951c..4496e1f644 100644 --- a/test/functional/api/window_spec.lua +++ b/test/functional/api/window_spec.lua @@ -12,7 +12,6 @@ local meth_pcall = helpers.meth_pcall local meths = helpers.meths local command = helpers.command local expect_err = helpers.expect_err -local unpack = table.unpack or unpack -- luacheck: ignore -- check if str is visible at the beginning of some line local function is_visible(str) -- cgit