示例工程 11-formatting-and-bytes

11-formatting-and-bytes/02-q-roundtrip/_test.lua

lua · 0.2 KB

-- @runtimes lua54 luajit
local h = require("harness")
local m = require("main")
h.describe("%q 往返", function()
	h.it("转义后可还原", function()
		local r = m.run(function() end)
		h.eq(r.roundtrip, true)
	end)
end)
h.run()