示例工程 14-metatables-and-operators
14-metatables-and-operators/01-vector-arithmetic/_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.sum, "(4,6)")
h.eq(r.scaled, "(4,6)")
end)
end)
h.run()