-- @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.animal, "cat makes a sound") h.eq(r.dog, "rex barks") end) end) h.run()