示例工程 16-call-and-tostring

16-call-and-tostring/03-close-attribute/_test.lua

lua · 0.2 KB

-- @runtimes lua54
local h = require("harness")
local m = require("main")
h.describe("__close", function()
	h.it("离开作用域调用", function()
		local r = m.run(function() end)
		h.eq(r.closed, true)
	end)
end)
h.run()