示例工程 04-strings
04-strings/04-escape-and-binary/_test.lua
-- @runtimes lua54 luajit
local h = require("harness")
local m = require("main")
h.describe("转义与二进制", function()
h.it("字符串可含 NUL", function()
local result = m.run(function() end)
h.eq(result.nul_length, 3)
h.eq(result.first_byte, 65)
end)
h.it("长括号保留换行", function()
local result = m.run(function() end)
h.eq(result.raw_length, 11)
end)
end)
h.run()