-- @runtimes lua54 luajit local h = require("harness") local m = require("main") h.describe("require 与 dofile", function() h.it("require 命中缓存", function() local result = m.run(function() end) h.eq(result.require_same, true) end) h.it("dofile 每次新建表", function() local result = m.run(function() end) h.eq(result.dofile_same, false) end) end) h.run()