tests/archive: comments: specs only

This commit is contained in:
4DBug committed 2026-11-01 01:49:50 -05:00
1 parent 54f53a35f6
commit 96602286f8
33 files changed
+34 -226

No files matched your search

+1 -5
View File
@@ -1,7 +1,4 @@
-- archive/uu tests: blocks by GNU uuencode (classic / -m) and uuenview (-u / -x) decode to the right names, sizes,
-- modes and data; several blocks in a mail; CRLF lines; our uu / xx / base64 output decodes with uudecode / uudeview
-- (fixture step) and is byte-identical to GNU uuencode for one file; round trips; errors; the fuzz pass.
-- Fixtures: tools/fixtures/uu.py.
-- archive/uu tests against GNU uuencode, uuenview and uudeview (tools/fixtures/uu.py).
local T = require("@tests/T")
local F = require("@rosetta")
local Uu = require("@rosetta/archive/uu")
@@ -53,7 +50,6 @@ local outer = Uu.encode(inner, { name = "x.uu" }) :: buffer
local v = F.load(outer) :: any
t:check(v and v.format == "uu" and v.meta.compression == "uu" and buffer.tostring((v:read("x.uu"))) == "abc", "api unwraps a single block")
-- errors
local function code(s: string): string?
local _, e = Uu.decode(Bytes.reader(buffer.fromstring(s)))
return e and e.code