Minetest-WorldEditAdditions/worldeditadditions_commands/commands/test/tests/init.lua
2024-10-15 17:32:14 -07:00

19 lines
No EOL
379 B
Lua

-- Test registry
local test_id_paths = {
"credits.test.lua",
"notify.test.lua",
"notify_bad.test.lua",
-- "notify_suppress.test.lua",
-- "stacktrace.test.lua",
}
-- Helper functions
local update = function(a,k,v) a[k] = v end
-- Test loader
local test_loader = function (path)
for _, v in ipairs(test_id_paths) do dofile(path .. v) end
return ret
end
return test_loader