示例工程 14-metatables-and-operators
14-metatables-and-operators/02-comparison-metamethods/_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.same, true)
h.eq(r.less, true)
h.eq(r.le, true)
end)
end)
h.run()