示例工程 04-strings
04-strings/01-bytes-and-equality/_test.lua
-- @runtimes lua54 luajit
local h = require("harness")
local m = require("main")
h.describe("字节串", function()
h.it("拼接后按值比较", function()
local result = m.run(function() end)
h.eq(result.equal, false)
h.eq(result.length, 4)
end)
h.it("原字符串不变", function()
local result = m.run(function() end)
h.eq(result.same_after_update, true)
end)
end)
h.run()