All library functions no longer require self
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user