示例工程 28-release-and-compat
28-release-and-compat/02-feature-detection/_test.lua
-- @runtimes lua54 luajit
local h = require("harness")
local m = require("main")
h.describe("特性检测", function()
h.it("5.4 有整数/utf8/pack/goto", function()
local r = m.run(function() end)
if h.runtime() == "lua54" then
h.eq(r.integer, true)
h.eq(r.utf8, true)
h.eq(r.pack, true)
end
h.eq(r["goto"], true)
end)
end)
h.run()