tests/audio: comments: specs only
This commit is contained in:
1 parent
75ddfb4068
commit
0eec255bfb
30 files changed
+66
-244
No files matched your search
@@ -1,7 +1,5 @@
|
||||
-- audio/qoa tests: files written by qoa.h (tools/fixtures/qoa.py; 1, 2 and 6 channels, a frame boundary, a partial
|
||||
-- last slice, clipping signals) decoded bit-exact against ffmpeg and qoa.h; our encoder byte-for-byte equal to
|
||||
-- qoa.h's qoa_encode, from an Audio and from a streaming Decoder; seeking; streaming files (total 0); a cut file; errors;
|
||||
-- the api; the fuzz pass.
|
||||
-- audio/qoa tests: qoa.h's files bit-exact against ffmpeg and qoa.h; our encoder byte-for-byte equal to qoa_encode.
|
||||
-- Fixtures: tools/fixtures/qoa.py.
|
||||
local T = require("@tests/T")
|
||||
local Qoa = require("@rosetta/audio/qoa")
|
||||
local Bytes = require("@rosetta/core/Bytes")
|
||||
@@ -51,7 +49,6 @@ for _, c in Cases do
|
||||
end
|
||||
t:note("%d qoa.h files decoded bit-exact (ffmpeg, qoa.h) and re-encoded byte-for-byte", #Cases)
|
||||
|
||||
-- ------------------------------------------------------------------------------------------------ variants
|
||||
do
|
||||
local c = Cases[1]
|
||||
local ref = buffer.fromstring(c.ref)
|
||||
@@ -64,7 +61,6 @@ do
|
||||
-- a cut file keeps its whole frames
|
||||
local cut = Qoa.decode(Bytes.reader(buffer.fromstring(string.sub(c.data, 1, #c.data - 100)))) :: any
|
||||
t:check(cut and cut.frames == 5120 * 2 and H.same(cut.samples, ref, 0, cut.frames * c.ch), "cut file: the whole frames")
|
||||
-- errors
|
||||
local _, e1 = Qoa.open(Bytes.reader(buffer.fromstring("qoaf\0\0\0\1")))
|
||||
t:check(e1 and e1.code == Err.TRUNCATED, "no frames: " .. tostring(e1))
|
||||
local bad = buffer.fromstring(c.data)
|
||||
|
||||
Reference in new issue
Block a user