tools: the details group, the leak scenario's props and three fault classes (#22)
tools/details.test.mjs is the slice's WS acceptance: the five intents and their codes, a grow push clear of a wall, a squeeze in a corridor too narrow for the grown token, stuck from a wall and from a GM placement cleared by a removal and by a shrink, the GM source of a status, the caps and who reads which bucket, and a restart that brings size, props and statuses back. Waits use a cursor taken before the intent, so a repeated state cannot be matched by an older frame. The leak scenario gains a token in view with props in all three buckets, a GM-sourced status, a resize, a wall over it and the clears; leakcheck refuses the `gm` bucket (GM_PROP), the `owner` bucket on a non-controller (OWNER_PROP) and any `source` on a player status entry (STATUS_SOURCE), so `fault.test.mjs` now asserts all twelve classes. The schema-version fixtures in smoke/persistence move to 6, and mutation.sh gains am-au plus the renames.
This commit is contained in:
@@ -3,9 +3,9 @@
|
||||
// and it must fail under the EXACT class set named here: a checker that flags everything would
|
||||
// prove nothing. The shipped build must contain no fault hook at all, and it must still pass.
|
||||
//
|
||||
// Classes of this slice: HIDDEN_TOKEN, GMONLY_TOKEN, WALLDATA, WITHHELD, NO_REMOVE, OWN_VIEW,
|
||||
// OTHER_PLAYER, EXPLORED. (The character and name classes of 10.3 land with slice 8, the tile class
|
||||
// with slice 9.)
|
||||
// Classes: HIDDEN_TOKEN, GMONLY_TOKEN, WALLDATA, WITHHELD, NO_REMOVE, OWN_VIEW, OTHER_PLAYER,
|
||||
// EXPLORED, and from slice 7 (#22) OWNER_PROP, GM_PROP and STATUS_SOURCE. (The character and name
|
||||
// classes of 10.3 land with slice 8, the tile class with slice 9.)
|
||||
import test from 'node:test'
|
||||
import assert from 'node:assert/strict'
|
||||
import fs from 'node:fs'
|
||||
@@ -27,6 +27,9 @@ const FAULTS = {
|
||||
otherExplored: ['OTHER_PLAYER'],
|
||||
noremove: ['NO_REMOVE'],
|
||||
explored: ['EXPLORED'],
|
||||
ownerProp: ['OWNER_PROP'],
|
||||
gmProp: ['GM_PROP'],
|
||||
statusSource: ['STATUS_SOURCE'],
|
||||
}
|
||||
|
||||
function classesOf(output) {
|
||||
|
||||
Reference in New Issue
Block a user