示例工程 19-modules-and-env
19-modules-and-env/02-custom-package-path/_test.lua
-- @runtimes lua54 luajit
local h = require("harness")
local m = require("main")
h.describe("自定义 package.path", function()
h.it("加载后恢复路径", function()
local r = m.run(function() end)
h.eq(r.message, "hello Ada")
h.eq(r.restored, true)
end)
end)
h.run()