tests/music: comments: specs only
This commit is contained in:
1 parent
fe7566cbba
commit
98b4ce533e
23 files changed
+49
-119
No files matched your search
@@ -1,12 +1,9 @@
|
||||
-- tests/music/_hively: shared helper of the AHX / HVL tests (not a test itself): renders a fixture case through the
|
||||
-- format and compares it with hvl2wav's output exactly (16-bit samples: CRC-32 of the whole stream, the first
|
||||
-- differing frame located inside the raw head kept by tools/fixtures/ahx.py / hvl.py).
|
||||
-- tests/music/_hively: shared helper of the AHX / HVL tests: exact against hvl2wav (CRC-32 of the 16-bit stream).
|
||||
local Bytes = require("@rosetta/core/Bytes")
|
||||
local Crc32 = require("@rosetta/core/Crc32")
|
||||
|
||||
local H = {}
|
||||
|
||||
-- check(t, Format, c): decode + render + exact comparison; returns the song
|
||||
function H.check(t: any, Format: any, c: any): any
|
||||
local song, err = Format.decode(Bytes.reader(buffer.fromstring(c.data)))
|
||||
t:check(song, c.name .. ": " .. tostring(err))
|
||||
|
||||
Reference in new issue
Block a user