results: rerun the slice 8 gates on the final tree (#23)
This commit is contained in:
+494
-62
@@ -9,6 +9,29 @@
|
||||
[OK] player.remove deletes key and sessions, frees the slot; the GM cannot be removed
|
||||
[OK] only the hash is stored; the token itself appears nowhere
|
||||
[OK] unknown hash gives no player; revoking one player leaves the other alone
|
||||
[OK] an owner, a reveal_all and a per-player reveal each expose the actual name
|
||||
[OK] visibleName picks the name the recipient knows
|
||||
[OK] a character owner sees the actual name without any reveal row
|
||||
[OK] a linked token borrows the character's names, so one reveal covers all of them
|
||||
[OK] a plain token is nobody's character: only a reveal or reveal_all shows the actual name
|
||||
[OK] revealedPlayers lists the reveal rows of one subject, sorted
|
||||
[OK] player.remove takes that player's reveal rows with it
|
||||
[OK] one reveal row per (player, subject): a repeated reveal changes nothing
|
||||
[OK] a first sighting records what the player knows right now
|
||||
[OK] a rename follows the subject, and a player who was never told keeps not knowing
|
||||
[OK] a reveal fills in the actual name and leaves the rest alone
|
||||
[OK] a character needs two valid names and an owner
|
||||
[OK] a linked token carries no names of its own (they belong to the character)
|
||||
[OK] parseSubject accepts exactly the two wire words
|
||||
[OK] create assigns an id from the shared namespace, stores every column, reloads identically
|
||||
[OK] the id namespace is shared with tokens: taken ids are never handed out again
|
||||
[OK] reveal_all and the props round-trip through a full replacement
|
||||
[OK] remove deletes the row; a second remove reports nothing
|
||||
[OK] a reveal row survives a reload and a repeated reveal
|
||||
[OK] encountered rows survive a reload, keep their NULL actual name, and replace per entry
|
||||
[OK] a character rename follows the snapshots of everyone who met it
|
||||
[OK] player.remove hands the player's characters to the GM (DESIGN 3.2)
|
||||
[OK] a character still figured by a token is in use (6.5)
|
||||
[OK] defaults: dev origin, port 9000, state dir run
|
||||
[OK] state dir is joined, not concatenated
|
||||
[OK] bind address is fixed 127.0.0.1 and not a config key
|
||||
@@ -281,6 +304,16 @@
|
||||
[OK] the controller is not told what caused a status either (5.5, 6.1 note 6)
|
||||
[OK] a prop change and a status change each reach a viewer as one `token` frame
|
||||
[OK] a radius change reaches every viewer as the effective radius
|
||||
[OK] the GM gets every character with owner, reveal_all, revealed and all three buckets
|
||||
[OK] a player gets only its own characters, without owner, reveal_all or revealed
|
||||
[OK] a reassignment withdraws the record from the old owner and sends it to the new one
|
||||
[OK] a linked token's name follows the character, and the owner sees the actual one
|
||||
[OK] cprops carries the character's public bucket to a non-owner, and never the owner bucket
|
||||
[OK] a player sees the actual name only when the GM revealed it to them (8)
|
||||
[OK] a resync sends the whole list, then only what changed, then what was removed
|
||||
[OK] an entry for a token that is gone (or out of view) is grey
|
||||
[OK] the GM gets one list per player, tagged with the player id
|
||||
[OK] a player never receives another player's list
|
||||
[OK] only the player's own vision tokens produce one, in token order
|
||||
[OK] a player with no vision token has no polygons at all
|
||||
[OK] the polygon is bounded by the token's range, and a closer wall cuts it
|
||||
@@ -356,7 +389,7 @@ control: exit=0 expected_failed=0 ok
|
||||
[FAILED] prototype scene, all tokens, doors closed and opened
|
||||
[FAILED] random wall fields, cell 32 and 25
|
||||
[OK] negative control: the oracle notices a missing and an invented cell
|
||||
Error: execution of an external program failed: '/tmp/fffmut.FwYLf4/a/w/tests/tgeometry'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.2hjEam/a/w/tests/tgeometry'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] rays nudged past a corner: area just beyond a wall end is visible
|
||||
|
||||
@@ -400,7 +433,7 @@ a: exit=1 expected_failed=1 ok
|
||||
[OK] prototype scene, all tokens, doors closed and opened
|
||||
[OK] random wall fields, cell 32 and 25
|
||||
[OK] negative control: the oracle notices a missing and an invented cell
|
||||
Error: execution of an external program failed: '/tmp/fffmut.FwYLf4/b/w/tests/tgeometry'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.2hjEam/b/w/tests/tgeometry'
|
||||
# test exit=1; expected tests failed: 2
|
||||
[FAILED] '<' apex: ray through the shared tip must not leak
|
||||
[FAILED] every segment endpoint is a polygon vertex (lower and upper end inclusive)
|
||||
@@ -445,7 +478,7 @@ b: exit=1 expected_failed=2 ok
|
||||
[FAILED] prototype scene, all tokens, doors closed and opened
|
||||
[OK] random wall fields, cell 32 and 25
|
||||
[OK] negative control: the oracle notices a missing and an invented cell
|
||||
Error: execution of an external program failed: '/tmp/fffmut.FwYLf4/c/w/tests/tgeometry'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.2hjEam/c/w/tests/tgeometry'
|
||||
# test exit=1; expected tests failed: 2
|
||||
[FAILED] '<' apex: ray through the shared tip must not leak
|
||||
[FAILED] every segment endpoint is a polygon vertex (lower and upper end inclusive)
|
||||
@@ -490,7 +523,7 @@ c: exit=1 expected_failed=2 ok
|
||||
[OK] prototype scene, all tokens, doors closed and opened
|
||||
[OK] random wall fields, cell 32 and 25
|
||||
[OK] negative control: the oracle notices a missing and an invented cell
|
||||
Error: execution of an external program failed: '/tmp/fffmut.FwYLf4/d1/w/tests/tgeometry'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.2hjEam/d1/w/tests/tgeometry'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] shared vertex: both arms required (mutation d1/d2)
|
||||
|
||||
@@ -534,7 +567,7 @@ d1: exit=1 expected_failed=1 ok
|
||||
[OK] prototype scene, all tokens, doors closed and opened
|
||||
[OK] random wall fields, cell 32 and 25
|
||||
[OK] negative control: the oracle notices a missing and an invented cell
|
||||
Error: execution of an external program failed: '/tmp/fffmut.FwYLf4/d2/w/tests/tgeometry'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.2hjEam/d2/w/tests/tgeometry'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] shared vertex: both arms required (mutation d1/d2)
|
||||
|
||||
@@ -576,7 +609,7 @@ d2: exit=1 expected_failed=1 ok
|
||||
[FAILED] prototype scene, all tokens, doors closed and opened
|
||||
[FAILED] random wall fields, cell 32 and 25
|
||||
[FAILED] negative control: the oracle notices a missing and an invented cell
|
||||
Error: execution of an external program failed: '/tmp/fffmut.FwYLf4/e/w/tests/tgeometry'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.2hjEam/e/w/tests/tgeometry'
|
||||
# test exit=1; expected tests failed: 4
|
||||
[FAILED] random visibility polygons: identical cell lists
|
||||
[FAILED] random simple polygons (star-shaped, concave): identical cell lists
|
||||
@@ -656,7 +689,7 @@ e: exit=1 expected_failed=4 ok
|
||||
[OK] a GM-sourced lock refuses player moves without touching the walls entries
|
||||
[OK] a wall added over a GM-locked token only adds the walls entry
|
||||
[OK] the GM clear of the walls entries leaves a GM-sourced entry alone (no rule runs)
|
||||
Error: execution of an external program failed: '/tmp/fffmut.FwYLf4/f/w/tests/tmoverules'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.2hjEam/f/w/tests/tmoverules'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] overlapping 10 px off: may leave away from the wall, not cross it, not stay overlapped
|
||||
|
||||
@@ -733,7 +766,7 @@ f: exit=1 expected_failed=1 ok
|
||||
[OK] a GM-sourced lock refuses player moves without touching the walls entries
|
||||
[OK] a wall added over a GM-locked token only adds the walls entry
|
||||
[OK] the GM clear of the walls entries leaves a GM-sourced entry alone (no rule runs)
|
||||
Error: execution of an external program failed: '/tmp/fffmut.FwYLf4/g/w/tests/tmoverules'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.2hjEam/g/w/tests/tmoverules'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] GM: ignores walls, step cap and the lock; bounds still apply
|
||||
|
||||
@@ -810,7 +843,7 @@ g: exit=1 expected_failed=1 ok
|
||||
[OK] a GM-sourced lock refuses player moves without touching the walls entries
|
||||
[OK] a wall added over a GM-locked token only adds the walls entry
|
||||
[OK] the GM clear of the walls entries leaves a GM-sourced entry alone (no rule runs)
|
||||
Error: execution of an external program failed: '/tmp/fffmut.FwYLf4/h/w/tests/tmoverules'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.2hjEam/h/w/tests/tmoverules'
|
||||
# test exit=1; expected tests failed: 2
|
||||
[FAILED] corner clipping: path passes the wall end closer than r though both ends are clear
|
||||
[FAILED] leg of the path inside r of a non-start wall blocks even if start and end are clear
|
||||
@@ -886,13 +919,13 @@ h: exit=1 expected_failed=2 ok
|
||||
[OK] a GM-sourced lock refuses player moves without touching the walls entries
|
||||
[OK] a wall added over a GM-locked token only adds the walls entry
|
||||
[OK] the GM clear of the walls entries leaves a GM-sourced entry alone (no rule runs)
|
||||
Error: execution of an external program failed: '/tmp/fffmut.FwYLf4/i/w/tests/tmoverules'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.2hjEam/i/w/tests/tmoverules'
|
||||
[FAILED] P1: probes longer than the cap get one fixed nack regardless of the scene
|
||||
[OK] P2: scenes differing only beyond the bound give identical replies over 3000 probes
|
||||
[OK] P3 negative control: a wall inside the disc IS visible through replies (the harness can fail)
|
||||
[OK] P4: probing cannot unlock or move a locked token
|
||||
[OK] doors beyond the bound: opening or closing them changes no reply
|
||||
Error: execution of an external program failed: '/tmp/fffmut.FwYLf4/i/w/tests/tprobing'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.2hjEam/i/w/tests/tprobing'
|
||||
# test exit=1; expected tests failed: 2
|
||||
[FAILED] step cap = scene default without vision, token vision radius with it
|
||||
[FAILED] P1: probes longer than the cap get one fixed nack regardless of the scene
|
||||
@@ -970,7 +1003,7 @@ i: exit=1 expected_failed=2 ok
|
||||
[OK] a GM-sourced lock refuses player moves without touching the walls entries
|
||||
[FAILED] a wall added over a GM-locked token only adds the walls entry
|
||||
[OK] the GM clear of the walls entries leaves a GM-sourced entry alone (no rule runs)
|
||||
Error: execution of an external program failed: '/tmp/fffmut.FwYLf4/j/w/tests/tmoverules'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.2hjEam/j/w/tests/tmoverules'
|
||||
# test exit=1; expected tests failed: 2
|
||||
[FAILED] wall added within r of the circle (centre not on it) sets stuck; exactly r does not
|
||||
[FAILED] Q14: a door closed 10 px from a token: pushed to its side, clear by r, not blocked; GM-owned too
|
||||
@@ -1048,7 +1081,7 @@ j: exit=1 expected_failed=2 ok
|
||||
[OK] a GM-sourced lock refuses player moves without touching the walls entries
|
||||
[OK] a wall added over a GM-locked token only adds the walls entry
|
||||
[OK] the GM clear of the walls entries leaves a GM-sourced entry alone (no rule runs)
|
||||
Error: execution of an external program failed: '/tmp/fffmut.FwYLf4/k/w/tests/tmoverules'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.2hjEam/k/w/tests/tmoverules'
|
||||
# test exit=1; expected tests failed: 2
|
||||
[FAILED] KEEP: opening one door / removing one wall while another overlaps -> still blocked; last one frees
|
||||
[FAILED] KEEP: wall update away from one of two overlapping walls keeps blocked
|
||||
@@ -1124,7 +1157,7 @@ k: exit=1 expected_failed=2 ok
|
||||
[OK] a GM-sourced lock refuses player moves without touching the walls entries
|
||||
[OK] a wall added over a GM-locked token only adds the walls entry
|
||||
[OK] the GM clear of the walls entries leaves a GM-sourced entry alone (no rule runs)
|
||||
Error: execution of an external program failed: '/tmp/fffmut.FwYLf4/l/w/tests/tmoverules'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.2hjEam/l/w/tests/tmoverules'
|
||||
# test exit=1; expected tests failed: 3
|
||||
[FAILED] GM moves a stuck token clear -> free; to another wall-overlapping spot -> still blocked
|
||||
[FAILED] GM drops a token inside a wall -> blocked; a door counts only while closed
|
||||
@@ -1203,7 +1236,7 @@ l: exit=1 expected_failed=3 ok
|
||||
[OK] a GM-sourced lock refuses player moves without touching the walls entries
|
||||
[OK] a wall added over a GM-locked token only adds the walls entry
|
||||
[OK] the GM clear of the walls entries leaves a GM-sourced entry alone (no rule runs)
|
||||
Error: execution of an external program failed: '/tmp/fffmut.FwYLf4/m/w/tests/tmoverules'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.2hjEam/m/w/tests/tmoverules'
|
||||
# test exit=1; expected tests failed: 3
|
||||
[FAILED] Q14: a door closed 10 px from a token: pushed to its side, clear by r, not blocked; GM-owned too
|
||||
[FAILED] push: centre on the door line -> side of the previous position; no history -> left of a->b
|
||||
@@ -1282,7 +1315,7 @@ m: exit=1 expected_failed=3 ok
|
||||
[OK] a GM-sourced lock refuses player moves without touching the walls entries
|
||||
[OK] a wall added over a GM-locked token only adds the walls entry
|
||||
[OK] the GM clear of the walls entries leaves a GM-sourced entry alone (no rule runs)
|
||||
Error: execution of an external program failed: '/tmp/fffmut.FwYLf4/n/w/tests/tmoverules'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.2hjEam/n/w/tests/tmoverules'
|
||||
# test exit=1; expected tests failed: 2
|
||||
[FAILED] push: one side blocked by another wall -> the other side; out of bounds -> the other side
|
||||
[FAILED] push: both sides invalid -> squeezed in place; door open -> still squeezed (KEEP); GM can move it
|
||||
@@ -1364,14 +1397,14 @@ n: exit=1 expected_failed=2 ok
|
||||
[OK] a GM-sourced lock refuses player moves without touching the walls entries
|
||||
[OK] a wall added over a GM-locked token only adds the walls entry
|
||||
[OK] the GM clear of the walls entries leaves a GM-sourced entry alone (no rule runs)
|
||||
Error: execution of an external program failed: '/tmp/fffmut.FwYLf4/o/w/tests/tmoverules'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.2hjEam/o/w/tests/tmoverules'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] push: centre on the door line -> side of the previous position; no history -> left of a->b
|
||||
|
||||
o: exit=1 expected_failed=1 ok
|
||||
## p: token bucket never refills
|
||||
# diff server/protocol.nim -> mutated copy:
|
||||
# 223d222
|
||||
# 244d243
|
||||
# < r.tokens = min(r.burst, r.tokens + float(elapsed) * r.perSecond / 1000.0)
|
||||
[OK] a well-formed intent parses and keeps its reqId and node
|
||||
[OK] reqId boundaries: 0 and 2^31-1 pass, 2^31 and -1 are malformed
|
||||
@@ -1398,14 +1431,14 @@ o: exit=1 expected_failed=1 ok
|
||||
[OK] one wall carries id, a, b, kind, open and flags in the 6.1 shape
|
||||
[OK] `walls` is the full list plus the scene, `wall` is one upsert, `wall_gone` an id
|
||||
[OK] the fan-out frames carry no n: the sender stamps it per recipient
|
||||
Error: execution of an external program failed: '/tmp/fffmut.FwYLf4/p/w/tests/tprotocol'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.2hjEam/p/w/tests/tprotocol'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] refill is continuous at 30/s, capped at the burst
|
||||
|
||||
p: exit=1 expected_failed=1 ok
|
||||
## q: reqId upper bound dropped
|
||||
# diff server/protocol.nim -> mutated copy:
|
||||
# 133c133
|
||||
# 139c139
|
||||
# < if reqId < 0 or reqId > MaxReqId: return
|
||||
# ---
|
||||
# > if reqId < 0: return
|
||||
@@ -1434,14 +1467,14 @@ p: exit=1 expected_failed=1 ok
|
||||
[OK] one wall carries id, a, b, kind, open and flags in the 6.1 shape
|
||||
[OK] `walls` is the full list plus the scene, `wall` is one upsert, `wall_gone` an id
|
||||
[OK] the fan-out frames carry no n: the sender stamps it per recipient
|
||||
Error: execution of an external program failed: '/tmp/fffmut.FwYLf4/q/w/tests/tprotocol'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.2hjEam/q/w/tests/tprotocol'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] reqId boundaries: 0 and 2^31-1 pass, 2^31 and -1 are malformed
|
||||
|
||||
q: exit=1 expected_failed=1 ok
|
||||
## r: malformed flood never fires
|
||||
# diff server/protocol.nim -> mutated copy:
|
||||
# 244c244
|
||||
# 265c265
|
||||
# < result = f.count >= MalformedFloodLimit and (nowMs - oldest) <= MalformedFloodWindowMs
|
||||
# ---
|
||||
# > result = f.count > MalformedFloodLimit and (nowMs - oldest) <= MalformedFloodWindowMs
|
||||
@@ -1470,14 +1503,14 @@ q: exit=1 expected_failed=1 ok
|
||||
[OK] one wall carries id, a, b, kind, open and flags in the 6.1 shape
|
||||
[OK] `walls` is the full list plus the scene, `wall` is one upsert, `wall_gone` an id
|
||||
[OK] the fan-out frames carry no n: the sender stamps it per recipient
|
||||
Error: execution of an external program failed: '/tmp/fffmut.FwYLf4/r/w/tests/tprotocol'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.2hjEam/r/w/tests/tprotocol'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] nine malformed frames are tolerated, the tenth closes
|
||||
|
||||
r: exit=1 expected_failed=1 ok
|
||||
## s: the frame counter never advances
|
||||
# diff server/conns.nim -> mutated copy:
|
||||
# 143c143
|
||||
# 156c156
|
||||
# < inc c.active[i].frames
|
||||
# ---
|
||||
# > discard
|
||||
@@ -1496,7 +1529,7 @@ r: exit=1 expected_failed=1 ok
|
||||
[OK] the malformed window is per connection and fires on the tenth frame
|
||||
[OK] a Pong is recorded on the right connection
|
||||
[OK] a snapshot hands out every live connection without holding the lock afterwards
|
||||
Error: execution of an external program failed: '/tmp/fffmut.FwYLf4/s/w/tests/tconns'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.2hjEam/s/w/tests/tconns'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] the frame counter starts at 1 on each connection and is never global
|
||||
|
||||
@@ -1530,7 +1563,7 @@ s: exit=1 expected_failed=1 ok
|
||||
[OK] dot patching: only the given fields change
|
||||
[OK] unknown ids are not-found, wrong kinds are their own outcome
|
||||
[OK] the first wall of a fresh scene is id 1, not 0
|
||||
Error: execution of an external program failed: '/tmp/fffmut.FwYLf4/t/w/tests/tworld'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.2hjEam/t/w/tests/tworld'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] a removal never renumbers and the next add never reuses the id
|
||||
|
||||
@@ -1562,7 +1595,7 @@ t: exit=1 expected_failed=1 ok
|
||||
[OK] dot patching: only the given fields change
|
||||
[OK] unknown ids are not-found, wrong kinds are their own outcome
|
||||
[OK] the first wall of a fresh scene is id 1, not 0
|
||||
Error: execution of an external program failed: '/tmp/fffmut.FwYLf4/u/w/tests/tworld'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.2hjEam/u/w/tests/tworld'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] the id counter survives a reload, even when the newest wall was removed
|
||||
|
||||
@@ -1592,7 +1625,7 @@ u: exit=1 expected_failed=1 ok
|
||||
[OK] dot patching: only the given fields change
|
||||
[OK] unknown ids are not-found, wrong kinds are their own outcome
|
||||
[OK] the first wall of a fresh scene is id 1, not 0
|
||||
Error: execution of an external program failed: '/tmp/fffmut.FwYLf4/v/w/tests/tworld'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.2hjEam/v/w/tests/tworld'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] the id counter survives a reload, even when the newest wall was removed
|
||||
|
||||
@@ -1622,7 +1655,7 @@ v: exit=1 expected_failed=1 ok
|
||||
[OK] dot patching: only the given fields change
|
||||
[OK] unknown ids are not-found, wrong kinds are their own outcome
|
||||
[OK] the first wall of a fresh scene is id 1, not 0
|
||||
Error: execution of an external program failed: '/tmp/fffmut.FwYLf4/w/w/tests/tworld'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.2hjEam/w/w/tests/tworld'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] a wall is never open: the stored row normalizes it
|
||||
|
||||
@@ -1652,7 +1685,7 @@ w: exit=1 expected_failed=1 ok
|
||||
[OK] dot patching: only the given fields change
|
||||
[OK] unknown ids are not-found, wrong kinds are their own outcome
|
||||
[OK] the first wall of a fresh scene is id 1, not 0
|
||||
Error: execution of an external program failed: '/tmp/fffmut.FwYLf4/x/w/tests/tworld'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.2hjEam/x/w/tests/tworld'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] a zero-length wall is invalid and writes nothing
|
||||
|
||||
@@ -1682,7 +1715,7 @@ x: exit=1 expected_failed=1 ok
|
||||
[OK] dot patching: only the given fields change
|
||||
[OK] unknown ids are not-found, wrong kinds are their own outcome
|
||||
[OK] the first wall of a fresh scene is id 1, not 0
|
||||
Error: execution of an external program failed: '/tmp/fffmut.FwYLf4/y/w/tests/tworld'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.2hjEam/y/w/tests/tworld'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] both endpoints must be inside [0,w] x [0,h]; the border itself is allowed
|
||||
|
||||
@@ -1710,7 +1743,7 @@ y: exit=1 expected_failed=1 ok
|
||||
[OK] dot patching: only the given fields change
|
||||
[FAILED] unknown ids are not-found, wrong kinds are their own outcome
|
||||
[OK] the first wall of a fresh scene is id 1, not 0
|
||||
Error: execution of an external program failed: '/tmp/fffmut.FwYLf4/z/w/tests/tworld'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.2hjEam/z/w/tests/tworld'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] unknown ids are not-found, wrong kinds are their own outcome
|
||||
|
||||
@@ -1740,14 +1773,14 @@ z: exit=1 expected_failed=1 ok
|
||||
[OK] dot patching: only the given fields change
|
||||
[OK] unknown ids are not-found, wrong kinds are their own outcome
|
||||
[OK] the first wall of a fresh scene is id 1, not 0
|
||||
Error: execution of an external program failed: '/tmp/fffmut.FwYLf4/z2/w/tests/tworld'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.2hjEam/z2/w/tests/tworld'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] add, update, door set and remove round-trip through a reload
|
||||
|
||||
z2: exit=1 expected_failed=1 ok
|
||||
## aa: the egress ignores LOS, gm_only and ownership
|
||||
# diff server/views.nim -> mutated copy:
|
||||
# 119c119
|
||||
# 203c203
|
||||
# < if not pv.visibleTo(t, playerId): continue
|
||||
# ---
|
||||
# > if false: continue
|
||||
@@ -1774,7 +1807,17 @@ z2: exit=1 expected_failed=1 ok
|
||||
[OK] the controller is not told what caused a status either (5.5, 6.1 note 6)
|
||||
[OK] a prop change and a status change each reach a viewer as one `token` frame
|
||||
[OK] a radius change reaches every viewer as the effective radius
|
||||
Error: execution of an external program failed: '/tmp/fffmut.FwYLf4/aa/w/tests/tviews'
|
||||
[OK] the GM gets every character with owner, reveal_all, revealed and all three buckets
|
||||
[OK] a player gets only its own characters, without owner, reveal_all or revealed
|
||||
[OK] a reassignment withdraws the record from the old owner and sends it to the new one
|
||||
[FAILED] a linked token's name follows the character, and the owner sees the actual one
|
||||
[OK] cprops carries the character's public bucket to a non-owner, and never the owner bucket
|
||||
[OK] a player sees the actual name only when the GM revealed it to them (8)
|
||||
[OK] a resync sends the whole list, then only what changed, then what was removed
|
||||
[OK] an entry for a token that is gone (or out of view) is grey
|
||||
[OK] the GM gets one list per player, tagged with the player id
|
||||
[OK] a player never receives another player's list
|
||||
Error: execution of an external program failed: '/tmp/fffmut.2hjEam/aa/w/tests/tviews'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] the set of tokens follows the visibility rule
|
||||
|
||||
@@ -1798,7 +1841,7 @@ aa: exit=1 expected_failed=1 ok
|
||||
[OK] another token needs to be inside the polygon
|
||||
[FAILED] a gm_only token inside the LOS is not visible to anyone else
|
||||
[OK] a player with no vision token sees only what they control
|
||||
Error: execution of an external program failed: '/tmp/fffmut.FwYLf4/ab/w/tests/tvision'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.2hjEam/ab/w/tests/tvision'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] a gm_only token inside the LOS is not visible to anyone else
|
||||
|
||||
@@ -1822,14 +1865,14 @@ ab: exit=1 expected_failed=1 ok
|
||||
[OK] another token needs to be inside the polygon
|
||||
[OK] a gm_only token inside the LOS is not visible to anyone else
|
||||
[FAILED] a player with no vision token sees only what they control
|
||||
Error: execution of an external program failed: '/tmp/fffmut.FwYLf4/ac/w/tests/tvision'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.2hjEam/ac/w/tests/tvision'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] a controlled token is always visible, gm_only included
|
||||
|
||||
ac: exit=1 expected_failed=1 ok
|
||||
## ad: no token_gone when a token leaves the view
|
||||
# diff server/views.nim -> mutated copy:
|
||||
# 353c353
|
||||
# 576c576
|
||||
# < result.add tokenGoneFrame(id)
|
||||
# ---
|
||||
# > discard
|
||||
@@ -1856,17 +1899,27 @@ ac: exit=1 expected_failed=1 ok
|
||||
[OK] the controller is not told what caused a status either (5.5, 6.1 note 6)
|
||||
[OK] a prop change and a status change each reach a viewer as one `token` frame
|
||||
[OK] a radius change reaches every viewer as the effective radius
|
||||
Error: execution of an external program failed: '/tmp/fffmut.FwYLf4/ad/w/tests/tviews'
|
||||
[OK] the GM gets every character with owner, reveal_all, revealed and all three buckets
|
||||
[OK] a player gets only its own characters, without owner, reveal_all or revealed
|
||||
[OK] a reassignment withdraws the record from the old owner and sends it to the new one
|
||||
[OK] a linked token's name follows the character, and the owner sees the actual one
|
||||
[OK] cprops carries the character's public bucket to a non-owner, and never the owner bucket
|
||||
[OK] a player sees the actual name only when the GM revealed it to them (8)
|
||||
[OK] a resync sends the whole list, then only what changed, then what was removed
|
||||
[OK] an entry for a token that is gone (or out of view) is grey
|
||||
[OK] the GM gets one list per player, tagged with the player id
|
||||
[OK] a player never receives another player's list
|
||||
Error: execution of an external program failed: '/tmp/fffmut.2hjEam/ad/w/tests/tviews'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] leaving view sends `token_gone` once, and never for a token that was never sent
|
||||
|
||||
ad: exit=1 expected_failed=1 ok
|
||||
## ae: a player token frame carries the GM-only kind
|
||||
# diff server/views.nim -> mutated copy:
|
||||
# 224c224
|
||||
# < "statuses": statusKindsJson(v.statuses), "props": buckets
|
||||
# 360c360
|
||||
# < "statuses": statusKindsJson(v.statuses), "props": buckets, "cprops": cprops
|
||||
# ---
|
||||
# > "statuses": statusKindsJson(v.statuses), "props": buckets, "kind": "npc"
|
||||
# > "statuses": statusKindsJson(v.statuses), "props": buckets, "kind": "npc", "cprops": cprops
|
||||
[OK] every token, in token order, with controller and both names
|
||||
[OK] a GM-controlled token shows controller null
|
||||
[OK] the GM never gets vision polygons or explored cells
|
||||
@@ -1890,7 +1943,17 @@ ad: exit=1 expected_failed=1 ok
|
||||
[OK] the controller is not told what caused a status either (5.5, 6.1 note 6)
|
||||
[OK] a prop change and a status change each reach a viewer as one `token` frame
|
||||
[OK] a radius change reaches every viewer as the effective radius
|
||||
Error: execution of an external program failed: '/tmp/fffmut.FwYLf4/ae/w/tests/tviews'
|
||||
[OK] the GM gets every character with owner, reveal_all, revealed and all three buckets
|
||||
[OK] a player gets only its own characters, without owner, reveal_all or revealed
|
||||
[OK] a reassignment withdraws the record from the old owner and sends it to the new one
|
||||
[OK] a linked token's name follows the character, and the owner sees the actual one
|
||||
[OK] cprops carries the character's public bucket to a non-owner, and never the owner bucket
|
||||
[OK] a player sees the actual name only when the GM revealed it to them (8)
|
||||
[OK] a resync sends the whole list, then only what changed, then what was removed
|
||||
[OK] an entry for a token that is gone (or out of view) is grey
|
||||
[OK] the GM gets one list per player, tagged with the player id
|
||||
[OK] a player never receives another player's list
|
||||
Error: execution of an external program failed: '/tmp/fffmut.2hjEam/ae/w/tests/tviews'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] a player frame carries no GM-only field and no wall-like key
|
||||
|
||||
@@ -1916,7 +1979,7 @@ ae: exit=1 expected_failed=1 ok
|
||||
[OK] another token needs to be inside the polygon
|
||||
[OK] a gm_only token inside the LOS is not visible to anyone else
|
||||
[OK] a player with no vision token sees only what they control
|
||||
Error: execution of an external program failed: '/tmp/fffmut.FwYLf4/af/w/tests/tvision'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.2hjEam/af/w/tests/tvision'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] moving adds cells and never forgets the old ones
|
||||
|
||||
@@ -1938,7 +2001,7 @@ af: exit=1 expected_failed=1 ok
|
||||
[OK] restore: two players' explored never mix
|
||||
[OK] restore: an empty store restores nothing and a removed player takes its chunks
|
||||
[OK] a mutation-scale chunk write stays inside the 4.3 commit budget
|
||||
Error: execution of an external program failed: '/tmp/fffmut.FwYLf4/ag/w/tests/texplored'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.2hjEam/ag/w/tests/texplored'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] the chunk bitmap layout is pinned
|
||||
|
||||
@@ -1962,7 +2025,7 @@ ag: exit=1 expected_failed=1 ok
|
||||
[FAILED] restore: two players' explored never mix
|
||||
[OK] restore: an empty store restores nothing and a removed player takes its chunks
|
||||
[OK] a mutation-scale chunk write stays inside the 4.3 commit budget
|
||||
Error: execution of an external program failed: '/tmp/fffmut.FwYLf4/ah/w/tests/texplored'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.2hjEam/ah/w/tests/texplored'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] one chunk covers 64x64 cells
|
||||
|
||||
@@ -1992,7 +2055,7 @@ ah: exit=1 expected_failed=1 ok
|
||||
[FAILED] restore: two players' explored never mix
|
||||
[OK] restore: an empty store restores nothing and a removed player takes its chunks
|
||||
[OK] a mutation-scale chunk write stays inside the 4.3 commit budget
|
||||
Error: execution of an external program failed: '/tmp/fffmut.FwYLf4/ai/w/tests/texplored'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.2hjEam/ai/w/tests/texplored'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] restore: the stored cells come back exactly
|
||||
|
||||
@@ -2022,7 +2085,7 @@ ai: exit=1 expected_failed=1 ok
|
||||
[FAILED] restore: two players' explored never mix
|
||||
[FAILED] restore: an empty store restores nothing and a removed player takes its chunks
|
||||
[OK] a mutation-scale chunk write stays inside the 4.3 commit budget
|
||||
Error: execution of an external program failed: '/tmp/fffmut.FwYLf4/aj/w/tests/texplored'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.2hjEam/aj/w/tests/texplored'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] restore: two players' explored never mix
|
||||
|
||||
@@ -2044,7 +2107,7 @@ aj: exit=1 expected_failed=1 ok
|
||||
[OK] restore: two players' explored never mix
|
||||
[OK] restore: an empty store restores nothing and a removed player takes its chunks
|
||||
[OK] a mutation-scale chunk write stays inside the 4.3 commit budget
|
||||
Error: execution of an external program failed: '/tmp/fffmut.FwYLf4/ak/w/tests/texplored'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.2hjEam/ak/w/tests/texplored'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] a second write to the same chunk replaces the bitmap
|
||||
|
||||
@@ -2066,17 +2129,17 @@ ak: exit=1 expected_failed=1 ok
|
||||
[OK] restore: two players' explored never mix
|
||||
[OK] restore: an empty store restores nothing and a removed player takes its chunks
|
||||
[OK] a mutation-scale chunk write stays inside the 4.3 commit budget
|
||||
Error: execution of an external program failed: '/tmp/fffmut.FwYLf4/al/w/tests/texplored'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.2hjEam/al/w/tests/texplored'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] two chunks in one chunk row are both written
|
||||
|
||||
al: exit=1 expected_failed=1 ok
|
||||
## am: the owner bucket reaches a non-controller
|
||||
# diff server/views.nim -> mutated copy:
|
||||
# 129c129
|
||||
# < propsOwner: (if mine: objectOf(t.props[pbOwner]) else: nil))
|
||||
# 219c219
|
||||
# < propsOwner: (if mine: objectOf(t.props[pbOwner]) else: nil),
|
||||
# ---
|
||||
# > propsOwner: t.props[pbOwner])
|
||||
# > propsOwner: t.props[pbOwner],
|
||||
[OK] every token, in token order, with controller and both names
|
||||
[OK] a GM-controlled token shows controller null
|
||||
[OK] the GM never gets vision polygons or explored cells
|
||||
@@ -2100,7 +2163,17 @@ al: exit=1 expected_failed=1 ok
|
||||
[OK] the controller is not told what caused a status either (5.5, 6.1 note 6)
|
||||
[OK] a prop change and a status change each reach a viewer as one `token` frame
|
||||
[OK] a radius change reaches every viewer as the effective radius
|
||||
Error: execution of an external program failed: '/tmp/fffmut.FwYLf4/am/w/tests/tviews'
|
||||
[OK] the GM gets every character with owner, reveal_all, revealed and all three buckets
|
||||
[OK] a player gets only its own characters, without owner, reveal_all or revealed
|
||||
[OK] a reassignment withdraws the record from the old owner and sends it to the new one
|
||||
[OK] a linked token's name follows the character, and the owner sees the actual one
|
||||
[OK] cprops carries the character's public bucket to a non-owner, and never the owner bucket
|
||||
[OK] a player sees the actual name only when the GM revealed it to them (8)
|
||||
[OK] a resync sends the whole list, then only what changed, then what was removed
|
||||
[OK] an entry for a token that is gone (or out of view) is grey
|
||||
[OK] the GM gets one list per player, tagged with the player id
|
||||
[OK] a player never receives another player's list
|
||||
Error: execution of an external program failed: '/tmp/fffmut.2hjEam/am/w/tests/tviews'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] a player who sees the token gets the public bucket only
|
||||
|
||||
@@ -2177,7 +2250,7 @@ am: exit=1 expected_failed=1 ok
|
||||
[OK] a GM-sourced lock refuses player moves without touching the walls entries
|
||||
[FAILED] a wall added over a GM-locked token only adds the walls entry
|
||||
[OK] the GM clear of the walls entries leaves a GM-sourced entry alone (no rule runs)
|
||||
Error: execution of an external program failed: '/tmp/fffmut.FwYLf4/an/w/tests/tmoverules'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.2hjEam/an/w/tests/tmoverules'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] wall added within r of the circle (centre not on it) sets stuck; exactly r does not
|
||||
|
||||
@@ -2254,7 +2327,7 @@ an: exit=1 expected_failed=1 ok
|
||||
[OK] a GM-sourced lock refuses player moves without touching the walls entries
|
||||
[OK] a wall added over a GM-locked token only adds the walls entry
|
||||
[OK] the GM clear of the walls entries leaves a GM-sourced entry alone (no rule runs)
|
||||
Error: execution of an external program failed: '/tmp/fffmut.FwYLf4/ao/w/tests/tmoverules'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.2hjEam/ao/w/tests/tmoverules'
|
||||
# test exit=1; expected tests failed: 2
|
||||
[FAILED] a squeeze from a failed grow clears when a later shrink ends the overlap
|
||||
[FAILED] a shrink that still overlaps keeps the stuck entry
|
||||
@@ -2279,7 +2352,7 @@ ao: exit=1 expected_failed=2 ok
|
||||
[OK] propsJson carries all three buckets, always as objects
|
||||
[OK] clone gives fresh buckets: editing the copy cannot reach the original
|
||||
[OK] normalize repairs nil buckets
|
||||
Error: execution of an external program failed: '/tmp/fffmut.FwYLf4/ap/w/tests/tprops'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.2hjEam/ap/w/tests/tprops'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] 64 keys per bucket, the 65th is refused and nothing changes
|
||||
|
||||
@@ -2356,7 +2429,7 @@ ap: exit=1 expected_failed=1 ok
|
||||
[OK] a GM-sourced lock refuses player moves without touching the walls entries
|
||||
[OK] a wall added over a GM-locked token only adds the walls entry
|
||||
[OK] the GM clear of the walls entries leaves a GM-sourced entry alone (no rule runs)
|
||||
Error: execution of an external program failed: '/tmp/fffmut.FwYLf4/aq/w/tests/tmoverules'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.2hjEam/aq/w/tests/tmoverules'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] grow inside r of a wall pushes it out by the minimal perpendicular distance
|
||||
|
||||
@@ -2431,7 +2504,7 @@ aq: exit=1 expected_failed=1 ok
|
||||
[OK] a GM-sourced lock refuses player moves without touching the walls entries
|
||||
[OK] a wall added over a GM-locked token only adds the walls entry
|
||||
[OK] the GM clear of the walls entries leaves a GM-sourced entry alone (no rule runs)
|
||||
Error: execution of an external program failed: '/tmp/fffmut.FwYLf4/ar/w/tests/tmoverules'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.2hjEam/ar/w/tests/tmoverules'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] grow with no room on either side squeezes the token and leaves it in place
|
||||
|
||||
@@ -2508,7 +2581,7 @@ ar: exit=1 expected_failed=1 ok
|
||||
[OK] a GM-sourced lock refuses player moves without touching the walls entries
|
||||
[OK] a wall added over a GM-locked token only adds the walls entry
|
||||
[OK] the GM clear of the walls entries leaves a GM-sourced entry alone (no rule runs)
|
||||
Error: execution of an external program failed: '/tmp/fffmut.FwYLf4/as/w/tests/tmoverules'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.2hjEam/as/w/tests/tmoverules'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] push: both sides invalid -> squeezed in place; door open -> still squeezed (KEEP); GM can move it
|
||||
|
||||
@@ -2534,7 +2607,7 @@ as: exit=1 expected_failed=1 ok
|
||||
[OK] propsJson carries all three buckets, always as objects
|
||||
[OK] clone gives fresh buckets: editing the copy cannot reach the original
|
||||
[OK] normalize repairs nil buckets
|
||||
Error: execution of an external program failed: '/tmp/fffmut.FwYLf4/at/w/tests/tprops'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.2hjEam/at/w/tests/tprops'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] 64 keys per bucket, the 65th is refused and nothing changes
|
||||
|
||||
@@ -2611,9 +2684,368 @@ at: exit=1 expected_failed=1 ok
|
||||
[OK] a GM-sourced lock refuses player moves without touching the walls entries
|
||||
[OK] a wall added over a GM-locked token only adds the walls entry
|
||||
[OK] the GM clear of the walls entries leaves a GM-sourced entry alone (no rule runs)
|
||||
Error: execution of an external program failed: '/tmp/fffmut.FwYLf4/au/w/tests/tmoverules'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.2hjEam/au/w/tests/tmoverules'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] a grow that already fits does not move the token
|
||||
|
||||
au: exit=1 expected_failed=1 ok
|
||||
## av: everyone is told the actual name
|
||||
# diff server/characters.nim -> mutated copy:
|
||||
# 88c88
|
||||
# < isOwner or revealAll or revealed
|
||||
# ---
|
||||
# > true
|
||||
[FAILED] an owner, a reveal_all and a per-player reveal each expose the actual name
|
||||
[OK] visibleName picks the name the recipient knows
|
||||
[FAILED] a character owner sees the actual name without any reveal row
|
||||
[FAILED] a linked token borrows the character's names, so one reveal covers all of them
|
||||
[FAILED] a plain token is nobody's character: only a reveal or reveal_all shows the actual name
|
||||
[OK] revealedPlayers lists the reveal rows of one subject, sorted
|
||||
[OK] player.remove takes that player's reveal rows with it
|
||||
[OK] one reveal row per (player, subject): a repeated reveal changes nothing
|
||||
[OK] a first sighting records what the player knows right now
|
||||
[OK] a rename follows the subject, and a player who was never told keeps not knowing
|
||||
[OK] a reveal fills in the actual name and leaves the rest alone
|
||||
[OK] a character needs two valid names and an owner
|
||||
[OK] a linked token carries no names of its own (they belong to the character)
|
||||
[OK] parseSubject accepts exactly the two wire words
|
||||
[OK] create assigns an id from the shared namespace, stores every column, reloads identically
|
||||
[OK] the id namespace is shared with tokens: taken ids are never handed out again
|
||||
[OK] reveal_all and the props round-trip through a full replacement
|
||||
[OK] remove deletes the row; a second remove reports nothing
|
||||
[OK] a reveal row survives a reload and a repeated reveal
|
||||
[OK] encountered rows survive a reload, keep their NULL actual name, and replace per entry
|
||||
[OK] a character rename follows the snapshots of everyone who met it
|
||||
[OK] player.remove hands the player's characters to the GM (DESIGN 3.2)
|
||||
[OK] a character still figured by a token is in use (6.5)
|
||||
Error: execution of an external program failed: '/tmp/fffmut.2hjEam/av/w/tests/tcharacters'
|
||||
# test exit=1; expected tests failed: 2
|
||||
[FAILED] a character owner sees the actual name without any reveal row
|
||||
[FAILED] a linked token borrows the character's names, so one reveal covers all of them
|
||||
|
||||
av: exit=1 expected_failed=2 ok
|
||||
## aw: the encountered snapshot ignores what the player knows
|
||||
# diff server/characters.nim -> mutated copy:
|
||||
# 173c173
|
||||
# < actualName: (if knowsActual: some(n.actual) else: none(string)))
|
||||
# ---
|
||||
# > actualName: some(n.actual))
|
||||
[OK] an owner, a reveal_all and a per-player reveal each expose the actual name
|
||||
[OK] visibleName picks the name the recipient knows
|
||||
[OK] a character owner sees the actual name without any reveal row
|
||||
[OK] a linked token borrows the character's names, so one reveal covers all of them
|
||||
[OK] a plain token is nobody's character: only a reveal or reveal_all shows the actual name
|
||||
[OK] revealedPlayers lists the reveal rows of one subject, sorted
|
||||
[OK] player.remove takes that player's reveal rows with it
|
||||
[OK] one reveal row per (player, subject): a repeated reveal changes nothing
|
||||
[FAILED] a first sighting records what the player knows right now
|
||||
[FAILED] a rename follows the subject, and a player who was never told keeps not knowing
|
||||
[OK] a reveal fills in the actual name and leaves the rest alone
|
||||
[OK] a character needs two valid names and an owner
|
||||
[OK] a linked token carries no names of its own (they belong to the character)
|
||||
[OK] parseSubject accepts exactly the two wire words
|
||||
[OK] create assigns an id from the shared namespace, stores every column, reloads identically
|
||||
[OK] the id namespace is shared with tokens: taken ids are never handed out again
|
||||
[OK] reveal_all and the props round-trip through a full replacement
|
||||
[OK] remove deletes the row; a second remove reports nothing
|
||||
[OK] a reveal row survives a reload and a repeated reveal
|
||||
[OK] encountered rows survive a reload, keep their NULL actual name, and replace per entry
|
||||
[OK] a character rename follows the snapshots of everyone who met it
|
||||
[OK] player.remove hands the player's characters to the GM (DESIGN 3.2)
|
||||
[OK] a character still figured by a token is in use (6.5)
|
||||
Error: execution of an external program failed: '/tmp/fffmut.2hjEam/aw/w/tests/tcharacters'
|
||||
# test exit=1; expected tests failed: 2
|
||||
[FAILED] a first sighting records what the player knows right now
|
||||
[FAILED] a rename follows the subject, and a player who was never told keeps not knowing
|
||||
|
||||
aw: exit=1 expected_failed=2 ok
|
||||
## ax: a rename tells a player an actual name it never knew
|
||||
# diff server/characters.nim -> mutated copy:
|
||||
# 180c180
|
||||
# < if e.actualName.isSome: result.actualName = some(actual)
|
||||
# ---
|
||||
# > result.actualName = some(actual)
|
||||
[OK] an owner, a reveal_all and a per-player reveal each expose the actual name
|
||||
[OK] visibleName picks the name the recipient knows
|
||||
[OK] a character owner sees the actual name without any reveal row
|
||||
[OK] a linked token borrows the character's names, so one reveal covers all of them
|
||||
[OK] a plain token is nobody's character: only a reveal or reveal_all shows the actual name
|
||||
[OK] revealedPlayers lists the reveal rows of one subject, sorted
|
||||
[OK] player.remove takes that player's reveal rows with it
|
||||
[OK] one reveal row per (player, subject): a repeated reveal changes nothing
|
||||
[OK] a first sighting records what the player knows right now
|
||||
[FAILED] a rename follows the subject, and a player who was never told keeps not knowing
|
||||
[OK] a reveal fills in the actual name and leaves the rest alone
|
||||
[OK] a character needs two valid names and an owner
|
||||
[OK] a linked token carries no names of its own (they belong to the character)
|
||||
[OK] parseSubject accepts exactly the two wire words
|
||||
[OK] create assigns an id from the shared namespace, stores every column, reloads identically
|
||||
[OK] the id namespace is shared with tokens: taken ids are never handed out again
|
||||
[OK] reveal_all and the props round-trip through a full replacement
|
||||
[OK] remove deletes the row; a second remove reports nothing
|
||||
[OK] a reveal row survives a reload and a repeated reveal
|
||||
[OK] encountered rows survive a reload, keep their NULL actual name, and replace per entry
|
||||
[OK] a character rename follows the snapshots of everyone who met it
|
||||
[OK] player.remove hands the player's characters to the GM (DESIGN 3.2)
|
||||
[OK] a character still figured by a token is in use (6.5)
|
||||
Error: execution of an external program failed: '/tmp/fffmut.2hjEam/ax/w/tests/tcharacters'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] a rename follows the subject, and a player who was never told keeps not knowing
|
||||
|
||||
ax: exit=1 expected_failed=1 ok
|
||||
## ay: a linked token may keep its own names
|
||||
# diff server/tokens.nim -> mutated copy:
|
||||
# 233c233
|
||||
# < if t.characterId.isSome: t.descriptiveName.len == 0 and t.actualName.len == 0
|
||||
# ---
|
||||
# > if false: t.descriptiveName.len == 0 and t.actualName.len == 0
|
||||
[OK] an owner, a reveal_all and a per-player reveal each expose the actual name
|
||||
[OK] visibleName picks the name the recipient knows
|
||||
[OK] a character owner sees the actual name without any reveal row
|
||||
[OK] a linked token borrows the character's names, so one reveal covers all of them
|
||||
[OK] a plain token is nobody's character: only a reveal or reveal_all shows the actual name
|
||||
[OK] revealedPlayers lists the reveal rows of one subject, sorted
|
||||
[OK] player.remove takes that player's reveal rows with it
|
||||
[OK] one reveal row per (player, subject): a repeated reveal changes nothing
|
||||
[OK] a first sighting records what the player knows right now
|
||||
[OK] a rename follows the subject, and a player who was never told keeps not knowing
|
||||
[OK] a reveal fills in the actual name and leaves the rest alone
|
||||
[OK] a character needs two valid names and an owner
|
||||
[FAILED] a linked token carries no names of its own (they belong to the character)
|
||||
[OK] parseSubject accepts exactly the two wire words
|
||||
[OK] create assigns an id from the shared namespace, stores every column, reloads identically
|
||||
[OK] the id namespace is shared with tokens: taken ids are never handed out again
|
||||
[OK] reveal_all and the props round-trip through a full replacement
|
||||
[OK] remove deletes the row; a second remove reports nothing
|
||||
[OK] a reveal row survives a reload and a repeated reveal
|
||||
[OK] encountered rows survive a reload, keep their NULL actual name, and replace per entry
|
||||
[OK] a character rename follows the snapshots of everyone who met it
|
||||
[OK] player.remove hands the player's characters to the GM (DESIGN 3.2)
|
||||
[FAILED] a character still figured by a token is in use (6.5)
|
||||
Error: execution of an external program failed: '/tmp/fffmut.2hjEam/ay/w/tests/tcharacters'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] a linked token carries no names of its own (they belong to the character)
|
||||
|
||||
ay: exit=1 expected_failed=1 ok
|
||||
## az: in-use is not enforced
|
||||
# diff server/characters.nim -> mutated copy:
|
||||
# 233c233
|
||||
# < if t.characterId.isSome and t.characterId.get == characterId: inc result
|
||||
# ---
|
||||
# > discard
|
||||
[OK] an owner, a reveal_all and a per-player reveal each expose the actual name
|
||||
[OK] visibleName picks the name the recipient knows
|
||||
[OK] a character owner sees the actual name without any reveal row
|
||||
[OK] a linked token borrows the character's names, so one reveal covers all of them
|
||||
[OK] a plain token is nobody's character: only a reveal or reveal_all shows the actual name
|
||||
[OK] revealedPlayers lists the reveal rows of one subject, sorted
|
||||
[OK] player.remove takes that player's reveal rows with it
|
||||
[OK] one reveal row per (player, subject): a repeated reveal changes nothing
|
||||
[OK] a first sighting records what the player knows right now
|
||||
[OK] a rename follows the subject, and a player who was never told keeps not knowing
|
||||
[OK] a reveal fills in the actual name and leaves the rest alone
|
||||
[OK] a character needs two valid names and an owner
|
||||
[OK] a linked token carries no names of its own (they belong to the character)
|
||||
[OK] parseSubject accepts exactly the two wire words
|
||||
[OK] create assigns an id from the shared namespace, stores every column, reloads identically
|
||||
[OK] the id namespace is shared with tokens: taken ids are never handed out again
|
||||
[OK] reveal_all and the props round-trip through a full replacement
|
||||
[OK] remove deletes the row; a second remove reports nothing
|
||||
[OK] a reveal row survives a reload and a repeated reveal
|
||||
[OK] encountered rows survive a reload, keep their NULL actual name, and replace per entry
|
||||
[OK] a character rename follows the snapshots of everyone who met it
|
||||
[OK] player.remove hands the player's characters to the GM (DESIGN 3.2)
|
||||
[FAILED] a character still figured by a token is in use (6.5)
|
||||
Error: execution of an external program failed: '/tmp/fffmut.2hjEam/az/w/tests/tcharacters'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] a character still figured by a token is in use (6.5)
|
||||
|
||||
az: exit=1 expected_failed=1 ok
|
||||
## b1: player.remove forgets the characters
|
||||
# diff server/characters.nim -> mutated copy:
|
||||
# 238c238
|
||||
# < db.exec(sql"UPDATE character SET owner_player_id = ? WHERE owner_player_id = ?", gmId, playerId)
|
||||
# ---
|
||||
# > db.exec(sql"UPDATE character SET owner_player_id = ? WHERE owner_player_id = ? AND 0", gmId, playerId)
|
||||
[OK] an owner, a reveal_all and a per-player reveal each expose the actual name
|
||||
[OK] visibleName picks the name the recipient knows
|
||||
[OK] a character owner sees the actual name without any reveal row
|
||||
[OK] a linked token borrows the character's names, so one reveal covers all of them
|
||||
[OK] a plain token is nobody's character: only a reveal or reveal_all shows the actual name
|
||||
[OK] revealedPlayers lists the reveal rows of one subject, sorted
|
||||
[OK] player.remove takes that player's reveal rows with it
|
||||
[OK] one reveal row per (player, subject): a repeated reveal changes nothing
|
||||
[OK] a first sighting records what the player knows right now
|
||||
[OK] a rename follows the subject, and a player who was never told keeps not knowing
|
||||
[OK] a reveal fills in the actual name and leaves the rest alone
|
||||
[OK] a character needs two valid names and an owner
|
||||
[OK] a linked token carries no names of its own (they belong to the character)
|
||||
[OK] parseSubject accepts exactly the two wire words
|
||||
[OK] create assigns an id from the shared namespace, stores every column, reloads identically
|
||||
[OK] the id namespace is shared with tokens: taken ids are never handed out again
|
||||
[OK] reveal_all and the props round-trip through a full replacement
|
||||
[OK] remove deletes the row; a second remove reports nothing
|
||||
[OK] a reveal row survives a reload and a repeated reveal
|
||||
[OK] encountered rows survive a reload, keep their NULL actual name, and replace per entry
|
||||
[OK] a character rename follows the snapshots of everyone who met it
|
||||
[FAILED] player.remove hands the player's characters to the GM (DESIGN 3.2)
|
||||
[OK] a character still figured by a token is in use (6.5)
|
||||
Error: execution of an external program failed: '/tmp/fffmut.2hjEam/b1/w/tests/tcharacters'
|
||||
[OK] 12 characters from the documented alphabet
|
||||
[OK] freshId never returns an id that is taken
|
||||
[OK] a name is trimmed, non-empty and free of control characters
|
||||
[OK] kind is a short free string
|
||||
[OK] vision_radius is a positive finite number or null
|
||||
[OK] only a true boolean flag counts
|
||||
[OK] the range is the token's own radius when it has vision, else the scene default
|
||||
[OK] the effective radius is the scene default in this slice
|
||||
[OK] create assigns the id, stores every column and reloads identically
|
||||
[OK] a controller round-trips, and a move rewrites only the position
|
||||
[OK] update replaces the whole row and keeps the id
|
||||
[OK] remove deletes the row; a second remove reports nothing
|
||||
[OK] player.remove hands the player's tokens to the GM (DESIGN 3.2)
|
||||
[OK] tokens load in creation order
|
||||
[OK] an out-of-bounds position writes nothing
|
||||
[OK] an empty name writes nothing
|
||||
[OK] the same id is never handed out twice by the caller-supplied taken list
|
||||
[OK] a lookup by id is exact
|
||||
[OK] a per-token radius round-trips and overrides the scene default (5.6)
|
||||
[OK] a non-positive radius is refused, and nothing is written
|
||||
[OK] the three property buckets round-trip unchanged (6.1, 8)
|
||||
[OK] a new token starts with three empty buckets, never null
|
||||
[OK] statuses round-trip sorted, and a store replaces them (5.5)
|
||||
[OK] removing a token removes its status rows (FK cascade)
|
||||
[OK] status helpers keep the entry set unique and ordered
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] player.remove hands the player's characters to the GM (DESIGN 3.2)
|
||||
|
||||
b1: exit=1 expected_failed=1 ok
|
||||
## b2: an encountered rename overwrites a secret
|
||||
# diff server/characters.nim -> mutated copy:
|
||||
# 280c280
|
||||
# < AND actual_name <> ''""", actual, characterId)
|
||||
# ---
|
||||
# > AND 1 = 1""", actual, characterId)
|
||||
# 291c291
|
||||
# < AND actual_name <> ''""", actual, entityId)
|
||||
# ---
|
||||
# > AND 1 = 1""", actual, entityId)
|
||||
[OK] an owner, a reveal_all and a per-player reveal each expose the actual name
|
||||
[OK] visibleName picks the name the recipient knows
|
||||
[OK] a character owner sees the actual name without any reveal row
|
||||
[OK] a linked token borrows the character's names, so one reveal covers all of them
|
||||
[OK] a plain token is nobody's character: only a reveal or reveal_all shows the actual name
|
||||
[OK] revealedPlayers lists the reveal rows of one subject, sorted
|
||||
[OK] player.remove takes that player's reveal rows with it
|
||||
[OK] one reveal row per (player, subject): a repeated reveal changes nothing
|
||||
[OK] a first sighting records what the player knows right now
|
||||
[OK] a rename follows the subject, and a player who was never told keeps not knowing
|
||||
[OK] a reveal fills in the actual name and leaves the rest alone
|
||||
[OK] a character needs two valid names and an owner
|
||||
[OK] a linked token carries no names of its own (they belong to the character)
|
||||
[OK] parseSubject accepts exactly the two wire words
|
||||
[OK] create assigns an id from the shared namespace, stores every column, reloads identically
|
||||
[OK] the id namespace is shared with tokens: taken ids are never handed out again
|
||||
[OK] reveal_all and the props round-trip through a full replacement
|
||||
[OK] remove deletes the row; a second remove reports nothing
|
||||
[OK] a reveal row survives a reload and a repeated reveal
|
||||
[OK] encountered rows survive a reload, keep their NULL actual name, and replace per entry
|
||||
[FAILED] a character rename follows the snapshots of everyone who met it
|
||||
[OK] player.remove hands the player's characters to the GM (DESIGN 3.2)
|
||||
[OK] a character still figured by a token is in use (6.5)
|
||||
Error: execution of an external program failed: '/tmp/fffmut.2hjEam/b2/w/tests/tcharacters'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] a character rename follows the snapshots of everyone who met it
|
||||
|
||||
b2: exit=1 expected_failed=1 ok
|
||||
## b3: cprops carries the character owner bucket
|
||||
# diff server/views.nim -> mutated copy:
|
||||
# 222c222
|
||||
# < cpropsPublic: objectOf(if ch.isSome and not ownsCharacter: ch.get.props[pbPublic]
|
||||
# ---
|
||||
# > cpropsPublic: objectOf(if ch.isSome and not ownsCharacter: ch.get.props[pbOwner]
|
||||
[OK] every token, in token order, with controller and both names
|
||||
[OK] a GM-controlled token shows controller null
|
||||
[OK] the GM never gets vision polygons or explored cells
|
||||
[OK] the set of tokens follows the visibility rule
|
||||
[OK] a player frame carries no GM-only field and no wall-like key
|
||||
[OK] the controller gets `mine`, the owner bucket and its vision_radius
|
||||
[OK] a scan of every player frame finds no wall-ish or GM-only key
|
||||
[OK] the first pass sends the resync order, then nothing changes and nothing is sent
|
||||
[OK] a token that moved sends one `token` frame with the new position
|
||||
[OK] leaving view sends `token_gone` once, and never for a token that was never sent
|
||||
[OK] a token becoming gm_only is taken away from a player who could see it (6.1)
|
||||
[OK] vision is re-sent only when the polygons change
|
||||
[OK] a changed wall is enough to re-send vision
|
||||
[OK] explored full is RLE rows of contiguous columns
|
||||
[OK] explored fresh is a list of [cx, cy]
|
||||
[OK] the vision payload uses integer pixels (6.4, Q16 FIXED)
|
||||
[OK] the hello scene block carries the 6.1 fields and no counts
|
||||
[OK] the GM frame carries all three buckets and the source of every status
|
||||
[OK] a player who sees the token gets the public bucket only
|
||||
[OK] the controller gets public + owner, never the gm bucket
|
||||
[OK] the controller is not told what caused a status either (5.5, 6.1 note 6)
|
||||
[OK] a prop change and a status change each reach a viewer as one `token` frame
|
||||
[OK] a radius change reaches every viewer as the effective radius
|
||||
[OK] the GM gets every character with owner, reveal_all, revealed and all three buckets
|
||||
[OK] a player gets only its own characters, without owner, reveal_all or revealed
|
||||
[OK] a reassignment withdraws the record from the old owner and sends it to the new one
|
||||
[OK] a linked token's name follows the character, and the owner sees the actual one
|
||||
/nix/store/274jzpwhdklcga24bd9cxywba9apvpic-nim-unwrapped-2.2.12/nim/lib/pure/collections/tables.nim(232) raiseKeyError
|
||||
Unhandled exception: key not found: rank [KeyError]
|
||||
[FAILED] cprops carries the character's public bucket to a non-owner, and never the owner bucket
|
||||
[OK] a player sees the actual name only when the GM revealed it to them (8)
|
||||
[OK] a resync sends the whole list, then only what changed, then what was removed
|
||||
[OK] an entry for a token that is gone (or out of view) is grey
|
||||
[OK] the GM gets one list per player, tagged with the player id
|
||||
[OK] a player never receives another player's list
|
||||
Error: execution of an external program failed: '/tmp/fffmut.2hjEam/b3/w/tests/tviews'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] cprops carries the character's public bucket to a non-owner, and never the owner bucket
|
||||
|
||||
b3: exit=1 expected_failed=1 ok
|
||||
## b4: a player is sent every character
|
||||
# diff server/views.nim -> mutated copy:
|
||||
# 225c225
|
||||
# < if c.owner != playerId: continue
|
||||
# ---
|
||||
# > if false: continue
|
||||
[OK] every token, in token order, with controller and both names
|
||||
[OK] a GM-controlled token shows controller null
|
||||
[OK] the GM never gets vision polygons or explored cells
|
||||
[OK] the set of tokens follows the visibility rule
|
||||
[OK] a player frame carries no GM-only field and no wall-like key
|
||||
[OK] the controller gets `mine`, the owner bucket and its vision_radius
|
||||
[OK] a scan of every player frame finds no wall-ish or GM-only key
|
||||
[OK] the first pass sends the resync order, then nothing changes and nothing is sent
|
||||
[OK] a token that moved sends one `token` frame with the new position
|
||||
[OK] leaving view sends `token_gone` once, and never for a token that was never sent
|
||||
[OK] a token becoming gm_only is taken away from a player who could see it (6.1)
|
||||
[OK] vision is re-sent only when the polygons change
|
||||
[OK] a changed wall is enough to re-send vision
|
||||
[OK] explored full is RLE rows of contiguous columns
|
||||
[OK] explored fresh is a list of [cx, cy]
|
||||
[OK] the vision payload uses integer pixels (6.4, Q16 FIXED)
|
||||
[OK] the hello scene block carries the 6.1 fields and no counts
|
||||
[OK] the GM frame carries all three buckets and the source of every status
|
||||
[OK] a player who sees the token gets the public bucket only
|
||||
[OK] the controller gets public + owner, never the gm bucket
|
||||
[OK] the controller is not told what caused a status either (5.5, 6.1 note 6)
|
||||
[OK] a prop change and a status change each reach a viewer as one `token` frame
|
||||
[OK] a radius change reaches every viewer as the effective radius
|
||||
[OK] the GM gets every character with owner, reveal_all, revealed and all three buckets
|
||||
[FAILED] a player gets only its own characters, without owner, reveal_all or revealed
|
||||
[FAILED] a reassignment withdraws the record from the old owner and sends it to the new one
|
||||
[OK] a linked token's name follows the character, and the owner sees the actual one
|
||||
[OK] cprops carries the character's public bucket to a non-owner, and never the owner bucket
|
||||
[OK] a player sees the actual name only when the GM revealed it to them (8)
|
||||
[OK] a resync sends the whole list, then only what changed, then what was removed
|
||||
[OK] an entry for a token that is gone (or out of view) is grey
|
||||
[OK] the GM gets one list per player, tagged with the player id
|
||||
[OK] a player never receives another player's list
|
||||
Error: execution of an external program failed: '/tmp/fffmut.2hjEam/b4/w/tests/tviews'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] a player gets only its own characters, without owner, reveal_all or revealed
|
||||
|
||||
b4: exit=1 expected_failed=1 ok
|
||||
exit=0
|
||||
|
||||
Reference in New Issue
Block a user