语言核心
表与数据
元编程
运行模型
工程化
宿主集成
综合
附录
17-oop-patterns
17-oop-patterns/02-class-table/_test.lua
lua · 0.2 KB
-- @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.first, 15) h.eq(r.second, 17) end) end) h.run()
该文件由构建期采集,未做任何改写;源码页不进入搜索引擎索引。