tests/model: comments: specs only
This commit is contained in:
1 parent
5f7f6005f6
commit
fe7566cbba
37 files changed
+72
-440
No files matched your search
+2
-7
@@ -1,7 +1,5 @@
|
||||
-- model/qb tests: Qubicle Binary files with every option (RGBA / BGRA, left- / right-handed, RLE or not, visibility
|
||||
-- masks, more than 255 colours) against the reference reader / writer of the fixture (exact colours of every cell,
|
||||
-- names, positions), the indexed palette view, our encodings read back by the reference (same settings, flipped
|
||||
-- settings, palette grids with computed masks), the api, error codes and the fuzz pass. Fixtures: tools/fixtures/qb.py.
|
||||
-- model/qb tests: Qubicle Binary files of every option against the fixture's reference reader / writer.
|
||||
-- Fixtures: tools/fixtures/qb.py.
|
||||
local T = require("@tests/T")
|
||||
local F = require("@rosetta")
|
||||
local Qb = require("@rosetta/model/qb")
|
||||
@@ -62,7 +60,6 @@ for _, c in Fx.cases do
|
||||
t:eq(F.detect(c.data), "qb", c.name .. ": detect")
|
||||
end
|
||||
|
||||
-- our encodings, read by the reference
|
||||
for name, want in Fx.ours do
|
||||
local base = string.match(name, "^(case%d)_")
|
||||
if base then
|
||||
@@ -100,7 +97,6 @@ do
|
||||
t:eq(buffer.readu8(colors, 0 * 4 + 3), 1 + 2 + 16 + 64, "corner cell mask (left, bottom, back)")
|
||||
end
|
||||
|
||||
-- api and conversion to .vox
|
||||
do
|
||||
local s = assert(F.load(Fx.cases[1].data))
|
||||
t:check(s.kind == "scene", "F.load")
|
||||
@@ -108,7 +104,6 @@ do
|
||||
t:check(F.save(s, nil, { format = "schem" }) ~= nil, "qb -> schem")
|
||||
end
|
||||
|
||||
-- errors
|
||||
do
|
||||
local _, e1 = dec("\1\1\0\0")
|
||||
t:check(e1 and e1.code == Err.TRUNCATED, "truncated header")
|
||||
|
||||
Reference in new issue
Block a user