All library functions no longer require self

This commit is contained in:
2025-06-28 05:58:29 +10:00
parent ccae0046fb
commit 27c40c3244
9 changed files with 57 additions and 68 deletions

View File

@@ -111,8 +111,8 @@ local function main(item)
end
return main(create_group("", function()
local function glob(path, pat)
for entry in fs:glob_dir(path, pat) do
local function include(path, pat)
for entry in fs.glob_dir(path, pat) do
local path = entry:path()
local f, err = loadfile(path)
if not f then error(err) end
@@ -120,6 +120,6 @@ return main(create_group("", function()
end
end
glob("tests", "**/*.lua")
glob("crates", "*/tests/**/*.lua")
include("tests", "**/*.lua")
include("crates", "*/tests/**/*.lua")
end))