functests: Add some tests

This commit is contained in:
ZyX
2017-01-21 00:00:47 +03:00
parent 8679feb3cb
commit a3ea05c1e5
4 changed files with 112 additions and 0 deletions

View File

@@ -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,
}