tests/model: comments: specs only

This commit is contained in:
4DBug committed 2026-11-01 01:50:23 -05:00
1 parent 5f7f6005f6
commit fe7566cbba
37 files changed
+72 -440

No files matched your search

+1 -8
View File
@@ -1,8 +1,4 @@
-- model/robloxmesh tests: meshes of every version written by the fixture's spec writer (1.00 / 1.01 ASCII, 2.00 with
-- 36- and 40-byte vertices, 3.00 / 3.01 LODs, 4.00 / 4.01 / 5.00 skinned with one and several subsets, 5.00 FACS,
-- 6.00 / 7.00 chunked) decode to the values they were written from (attribute CRCs, LOD index CRCs, global joints and
-- weights, bone names / parents / world transforms, FACS, raw chunks); a COREMESH v2 that is not a Draco stream is CORRUPT; our 2.00 /
-- 4.00 output read back by the fixture's reader (verdicts); round trips; errors and the fuzz pass.
-- model/robloxmesh tests: meshes of every version from the fixture's spec writer against the values written.
-- Fixtures: tools/fixtures/robloxmesh.py.
local T = require("@tests/T")
local RobloxMesh = require("@rosetta/model/robloxmesh")
@@ -24,7 +20,6 @@ local function decode(data: any, opts: any?): (any, any)
return RobloxMesh.decode(Bytes.reader(if type(data) == "string" then buffer.fromstring(data) else data), opts)
end
-- a world matrix of node i (parents through the children lists)
local function world(scene: any, i: number): { number }
local parent = {}
for k, n in scene.nodes do
@@ -119,7 +114,6 @@ for _, v in Fx.ours do
end
t:note("%d of our files read back by the fixture's reader", #Fx.ours)
-- round trips through our encoder
do
for _, name in { "v2.00-40", "v4.00-lods", "v4.00-40bones", "v6.00" } do
local c
@@ -164,7 +158,6 @@ do
t:check(qa.COLOR_0 == nil, "white / no colours: 36-byte vertices")
end
-- sniff, errors
do
local c = Fx.cases[3]
t:eq(RobloxMesh.sniff(Bytes.reader(buffer.fromstring(c.data))), 1, "sniff")