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,8 +1,5 @@
|
||||
-- audio/wavpack tests: every fixture from tools/fixtures/wavpack.py (wavpack -f / -g / -h / -hh / -x1..6, joint stereo
|
||||
-- on / off, 8 - 32-bit int and 32-bit float, 1 - 8 channels, odd rates and lengths, hybrid lossy and hybrid lossless
|
||||
-- with the .wvc, noise shaping, ffmpeg's encoder) decoded bit-exact against wvunpack; seeking; f32 scaling and output
|
||||
-- reuse; decode() from a sub-range Reader; APEv2 tags and the MD5; the correction file through opts.resolve; sniff;
|
||||
-- the api; damaged blocks; the fuzz pass. Fixtures: tools/fixtures/wavpack.py.
|
||||
-- audio/wavpack tests: tools/fixtures/wavpack.py's files (every mode, hybrid + .wvc) bit-exact against wvunpack.
|
||||
-- Fixtures: tools/fixtures/wavpack.py.
|
||||
local T = require("@tests/T")
|
||||
local WavPack = require("@rosetta/audio/wavpack")
|
||||
local Bytes = require("@rosetta/core/Bytes")
|
||||
@@ -39,12 +36,10 @@ for _, fx in Cases do
|
||||
end
|
||||
t:note("%d fixtures bit-exact against wvunpack, %d seeks", #Cases, seekChecks)
|
||||
|
||||
-- decode() from a sub-range Reader
|
||||
for _, name in { "s16_g", "md5_tags", "f32", "ch6" } do
|
||||
L.subrange(t, WavPack, byName[name], "wavpack")
|
||||
end
|
||||
|
||||
-- tags, md5, the source facts
|
||||
do
|
||||
local dec = open(byName.md5_tags.data)
|
||||
t:eq(#dec.md5, 32, "md5")
|
||||
@@ -72,7 +67,6 @@ do
|
||||
t:check(dec2 and not dec2.lossless, "resolve: no wvc -> lossy")
|
||||
end
|
||||
|
||||
-- the api
|
||||
do
|
||||
local fx = byName.s16_g
|
||||
t:eq(F.detect(buffer.fromstring(fx.data)), "wavpack", "detect")
|
||||
@@ -101,7 +95,6 @@ do
|
||||
t:eq(WavPack.sniff(Bytes.reader(buffer.fromstring("RIFF"))), 0, "sniff RIFF")
|
||||
end
|
||||
|
||||
-- the fuzz pass
|
||||
local samples = {}
|
||||
for _, name in { "s16_g", "f32", "hyb_b3", "s32_hh", "ch6", "u8" } do
|
||||
table.insert(samples, buffer.fromstring(byName[name].data))
|
||||
|
||||
Reference in new issue
Block a user