diceKit.testSuite
README.md
diceKit test suite
Checks the parts of diceKit a game relies on, using only the kit's own data (never the host world's catalogs):
- face reading for every kind: every face of d6, d8, d10, tens d10, d12 and d20 (and every vertex of a d4) turned up at four headings and tilted 5 degrees reads its own value, and lies flat;
- numbering: each value once, opposite faces making 7, 9, 13 and 21;
- the percentile pair (00 and 0 is 100) and d10 scoring, through
Sim.resulton recorded poses; - catalog name normalizing, dice phrases, and every catalog entry described;
- a recording sent in chunks out of order samples to exactly the same poses and digest as the original;
- a seed gives the same launch (every die's pose, velocity and spin) for every roll method, and another seed differs;
- a seeded physics roll (real rigid bodies stepped with
Physics.advance, throw and cup) run, put back to the world snapshot taken before its first step, and run again records identical frames and faces; - a roll whose roller left carries on from the frames already recorded and comes to rest.
It leaves the multiplayer transport, input and the drawn visuals to play testing. Run it with asset.resolve("diceKit", "testSuite"):run() or tools.use("tests", "run", { suite = "diceKit" }).