示例工程 02-values-and-types
02-values-and-types/04-reference-equality/_test.lua
-- @runtimes lua54 luajit
local h = require("harness")
local m = require("main")
h.describe("引用相等", function()
h.it("内容相同的表不相等", function()
local result = m.run(function() end)
h.eq(result.table_eq, false)
h.eq(result.alias_eq, true)
end)
h.it("函数与字符串", function()
local result = m.run(function() end)
h.eq(result.func_eq, true)
h.eq(result.string_eq, true)
end)
end)
h.run()