示例工程 08-table-structure
08-table-structure/03-constructor-prealloc/_test.lua
-- @runtimes lua54 luajit
local h = require("harness")
local m = require("main")
h.describe("预分配", function()
h.it("两种填表长度一致", function()
local r = m.run(function() end)
h.eq(r.constructed, 1000)
h.eq(r.same, true)
end)
end)
h.run()