mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 11:28:22 +00:00
tests: Fix linter errors
This commit is contained in:
@@ -273,6 +273,7 @@ local deepcopy_funcs = {
|
|||||||
for k, v in pairs(orig) do
|
for k, v in pairs(orig) do
|
||||||
copy[deepcopy(k)] = deepcopy(v)
|
copy[deepcopy(k)] = deepcopy(v)
|
||||||
end
|
end
|
||||||
|
return copy
|
||||||
end,
|
end,
|
||||||
number = id,
|
number = id,
|
||||||
string = id,
|
string = id,
|
||||||
|
@@ -1,5 +1,4 @@
|
|||||||
local helpers = require("test.unit.helpers")(after_each)
|
local helpers = require("test.unit.helpers")(after_each)
|
||||||
local global_helpers = require('test.helpers')
|
|
||||||
local bit = require('bit')
|
local bit = require('bit')
|
||||||
|
|
||||||
local itp = helpers.gen_itp(it)
|
local itp = helpers.gen_itp(it)
|
||||||
@@ -8,9 +7,6 @@ local child_call_once = helpers.child_call_once
|
|||||||
local cimport = helpers.cimport
|
local cimport = helpers.cimport
|
||||||
local ffi = helpers.ffi
|
local ffi = helpers.ffi
|
||||||
|
|
||||||
local shallowcopy = global_helpers.shallowcopy
|
|
||||||
local updated = global_helpers.updated
|
|
||||||
|
|
||||||
local lib = cimport('./src/nvim/charset.h')
|
local lib = cimport('./src/nvim/charset.h')
|
||||||
|
|
||||||
local ARGTYPES
|
local ARGTYPES
|
||||||
@@ -48,7 +44,6 @@ local function argreset(arg, args)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local function test_vim_str2nr(s, what, exp, maxlen)
|
local function test_vim_str2nr(s, what, exp, maxlen)
|
||||||
local comb = {[{}] = true}
|
|
||||||
local bits = {}
|
local bits = {}
|
||||||
for k, _ in pairs(exp) do
|
for k, _ in pairs(exp) do
|
||||||
bits[#bits + 1] = k
|
bits[#bits + 1] = k
|
||||||
|
Reference in New Issue
Block a user