-- @runtimes lua54 luajit local h = require("harness") local m = require("main") h.describe("尾调用", function() h.it("5000 层尾递归不爆栈", function() local r = m.run(function() end) h.eq(r.tail_depth, 5000) end) h.it("非尾递归小深度结果正确", function() local r = m.run(function() end) h.eq(r.non_tail_value, 100) end) end) h.run()