mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 11:58:17 +00:00
functests: Add some tests
This commit is contained in:
@@ -225,6 +225,14 @@ local function which(exe)
|
||||
end
|
||||
end
|
||||
|
||||
local function shallowcopy(orig)
|
||||
local copy = {}
|
||||
for orig_key, orig_value in pairs(orig) do
|
||||
copy[orig_key] = orig_value
|
||||
end
|
||||
return copy
|
||||
end
|
||||
|
||||
return {
|
||||
eq = eq,
|
||||
neq = neq,
|
||||
@@ -238,4 +246,5 @@ return {
|
||||
check_cores = check_cores,
|
||||
hasenv = hasenv,
|
||||
which = which,
|
||||
shallowcopy = shallowcopy,
|
||||
}
|
||||
|
Reference in New Issue
Block a user