示例工程 08-table-structure
08-table-structure/01-array-vs-hash/_test.lua
-- @runtimes lua54 luajit
local h = require("harness")
local m = require("main")
h.describe("数组与哈希", function()
h.it("1 与 1.0 同键", function()
local r = m.run(function() end)
h.eq(r.one, "A")
h.eq(r.one_float, "A")
h.eq(r.length, 2)
end)
end)
h.run()