tools: name players through player.setname, and the character groups and four fault classes (#23)
This commit is contained in:
+15
-5
@@ -4,8 +4,8 @@
|
||||
// prove nothing. The shipped build must contain no fault hook at all, and it must still pass.
|
||||
//
|
||||
// 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.)
|
||||
// EXPLORED, from slice 7 (#22) OWNER_PROP, GM_PROP, STATUS_SOURCE, and from slice 8 (#23)
|
||||
// ACTUAL_NAME, CHAR_LIST, CONTROLLER_CHANGE, CHAR_OWNER_PROP. (The tile class lands with slice 9.)
|
||||
import test from 'node:test'
|
||||
import assert from 'node:assert/strict'
|
||||
import fs from 'node:fs'
|
||||
@@ -16,10 +16,16 @@ import { projectRoot } from './lib.mjs'
|
||||
|
||||
const results = path.join(projectRoot, 'results')
|
||||
|
||||
// fault -> the exact set of classes the checker must report (nothing more, nothing less)
|
||||
// fault -> the exact set of classes the checker must report (nothing more, nothing less).
|
||||
//
|
||||
// `hidden` and `gmOnly` carry NO_REMOVE as well, and that is not a slack assertion: a state frame is
|
||||
// sent only when its content changes (T11, 6.4), so a token leaked by one of these faults that stops
|
||||
// changing leaves the client holding it with no message to correct it. From the client's side that
|
||||
// is indistinguishable from a withheld `token_gone`, which is what NO_REMOVE reports. Both
|
||||
// invariants really are broken by the fault.
|
||||
const FAULTS = {
|
||||
hidden: ['HIDDEN_TOKEN'],
|
||||
gmOnly: ['GMONLY_TOKEN'],
|
||||
hidden: ['HIDDEN_TOKEN', 'NO_REMOVE'],
|
||||
gmOnly: ['GMONLY_TOKEN', 'NO_REMOVE'],
|
||||
walls: ['WALLDATA'],
|
||||
withhold: ['WITHHELD'],
|
||||
otherOwner: ['OTHER_PLAYER'],
|
||||
@@ -30,6 +36,10 @@ const FAULTS = {
|
||||
ownerProp: ['OWNER_PROP'],
|
||||
gmProp: ['GM_PROP'],
|
||||
statusSource: ['STATUS_SOURCE'],
|
||||
actualName: ['ACTUAL_NAME'],
|
||||
charList: ['CHAR_LIST'],
|
||||
controllerChange: ['CONTROLLER_CHANGE'],
|
||||
charOwnerProp: ['CHAR_OWNER_PROP'],
|
||||
}
|
||||
|
||||
function classesOf(output) {
|
||||
|
||||
Reference in New Issue
Block a user