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

+2 -6
View File
@@ -1,7 +1,5 @@
-- model/smd tests: SMD files written by tools/fixtures/smd.py decode to assimp's triangle soup (positions, texture
-- coordinates per material) and to the writer's exact values (bind pose TRS, per-vertex weights and joints, every
-- skeleton frame of the animation); an animation-only SMD; our writer's output re-read by us (same soup, weights,
-- poses) and by assimp (faces, bones); errors; the fuzz pass. Fixtures: tools/fixtures/smd.py.
-- model/smd tests: generated SMD files against assimp's soup and the writer's exact values; assimp reads ours.
-- Fixtures: tools/fixtures/smd.py.
local T = require("@tests/T")
local F = require("@rosetta")
local Smd = require("@rosetta/model/smd")
@@ -120,7 +118,6 @@ for _, c in Fx.cases do
end
t:eq(matched, #c.materials, c.name .. ": every material mesh matches assimp's positions")
end
-- our writer, read back by us
local out = Smd.encode(s) :: buffer
local back, berr = Smd.decode(Bytes.reader(out))
t:check(back, c.name .. ": re-read our SMD: " .. tostring(berr))
@@ -133,7 +130,6 @@ for _, c in Fx.cases do
only.tris = {}
check(anim, only, c.name .. " (written animation)")
end
-- assimp reads our output
local ours = Fx.ours[c.name]
if ours and #c.tris > 0 then
t:eq(ours.faces, #c.tris, c.name .. ": assimp reads our triangles")