tests/archive: comments: specs only
This commit is contained in:
1 parent
54f53a35f6
commit
96602286f8
33 files changed
+34
-226
No files matched your search
@@ -1,6 +1,4 @@
|
||||
-- archive/z tests: .Z files from ncompress load as single-stream archives (entry names from the file name, .taz -> .tar),
|
||||
-- a .tar.Z unwraps to the tar through the api, writing gives ncompress's bytes (a buffer, a one-entry Archive) and a
|
||||
-- tar inside for several entries, conversions, errors, the fuzz pass. Fixtures: tools/fixtures/z.py.
|
||||
-- archive/z tests against ncompress (tools/fixtures/z.py).
|
||||
local T = require("@tests/T")
|
||||
local F = require("@rosetta")
|
||||
local Z = require("@rosetta/archive/z")
|
||||
@@ -37,7 +35,6 @@ do
|
||||
t:eq(outer:list()[1].name, "src.tar", "unwrap = false")
|
||||
end
|
||||
|
||||
-- writing
|
||||
do
|
||||
local out = assert(F.save(text.input, nil, { format = "z" }))
|
||||
t:check(buffer.tostring(out) == text.z, "a string: ncompress's bytes")
|
||||
@@ -54,7 +51,6 @@ do
|
||||
t:check(buffer.tostring(b10) == Fx.cases[6].z, "maxBits option")
|
||||
end
|
||||
|
||||
-- errors
|
||||
do
|
||||
local _, e1 = Z.decode(Bytes.reader(buffer.fromstring("\31\157")))
|
||||
t:check(e1 and e1.code == Err.TRUNCATED, "short")
|
||||
|
||||
Reference in new issue
Block a user