results: rerun the gates on the fixed tree (#27-#31)

devbox run test: nimble suites and 107 node tests pass (was 103: +1 characters,
+2 tiles, +1 restart). devbox run mutation: control and every mutation pass,
including the new e1-e3 and the repointed b2.
This commit is contained in:
2026-11-15 14:26:23 +01:00
parent b4bddf1d52
commit e13fa905a4
8 changed files with 1552 additions and 621 deletions
+248 -86
View File
@@ -22,6 +22,7 @@
[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] linking through a patch hands the names over (#29)
[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
@@ -29,6 +30,9 @@
[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 rewrites the live snapshots and the rows alike (#30, #27)
[OK] a reveal to one player rewrites exactly that player's row (#27)
[OK] a link change moves the snapshot to the character's names, link and knowledge (#29)
[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)
@@ -267,6 +271,7 @@
[OK] the GM is always allowed
[OK] a tile is allowed when any overlapping cell is explored
[OK] the explored overlap respects the scene border
[OK] a request built from one record stays internally consistent when the scene is swapped
[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
@@ -325,6 +330,8 @@
[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] a Context is six addresses: in-place changes are visible through the borrow
[OK] building a Context and egressing does not scale with the explored sets
[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
@@ -404,7 +411,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.YZ1tHm/a/w/tests/tgeometry'
Error: execution of an external program failed: '/tmp/fffmut.zrTIgu/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
@@ -448,7 +455,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.YZ1tHm/b/w/tests/tgeometry'
Error: execution of an external program failed: '/tmp/fffmut.zrTIgu/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)
@@ -493,7 +500,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.YZ1tHm/c/w/tests/tgeometry'
Error: execution of an external program failed: '/tmp/fffmut.zrTIgu/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)
@@ -538,7 +545,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.YZ1tHm/d1/w/tests/tgeometry'
Error: execution of an external program failed: '/tmp/fffmut.zrTIgu/d1/w/tests/tgeometry'
# test exit=1; expected tests failed: 1
[FAILED] shared vertex: both arms required (mutation d1/d2)
@@ -582,7 +589,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.YZ1tHm/d2/w/tests/tgeometry'
Error: execution of an external program failed: '/tmp/fffmut.zrTIgu/d2/w/tests/tgeometry'
# test exit=1; expected tests failed: 1
[FAILED] shared vertex: both arms required (mutation d1/d2)
@@ -616,7 +623,7 @@ d2: exit=1 expected_failed=1 ok
[FAILED] one field is enough; a patch with none is invalid
[FAILED] the non-settable columns are unknown fields: alone they leave no patch field
[OK] field shapes: text by the 6.5 rule, numbers finite, extra an object
Error: execution of an external program failed: '/tmp/fffmut.YZ1tHm/d3/w/tests/tworld'
Error: execution of an external program failed: '/tmp/fffmut.zrTIgu/d3/w/tests/tworld'
# test exit=1; expected tests failed: 1
[FAILED] one field is enough; a patch with none is invalid
@@ -658,7 +665,7 @@ d3: 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.YZ1tHm/e/w/tests/tgeometry'
Error: execution of an external program failed: '/tmp/fffmut.zrTIgu/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
@@ -666,6 +673,120 @@ Error: execution of an external program failed: '/tmp/fffmut.YZ1tHm/e/w/tests/tg
[FAILED] random wall fields, cell 32 and 25
e: exit=1 expected_failed=4 ok
## e1: an encountered rewrite ignores what the player knows
# diff server/characters.nim -> mutated copy:
# 309c309
# < let updated = e.refreshed(n, knowsActual(n.owner == pid and n.owner > 0, n.revealAll,
# ---
# > let updated = e.refreshed(n, true or knowsActual(n.owner == pid and n.owner > 0, n.revealAll,
[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] linking through a patch hands the names over (#29)
[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 rewrites the live snapshots and the rows alike (#30, #27)
[OK] a reveal to one player rewrites exactly that player's row (#27)
[FAILED] a link change moves the snapshot to the character's names, link and knowledge (#29)
[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.zrTIgu/e1/w/tests/tcharacters'
# test exit=1; expected tests failed: 1
[FAILED] a link change moves the snapshot to the character's names, link and knowledge (#29)
e1: exit=1 expected_failed=1 ok
## e2: an encountered rewrite updates the DB only
# diff server/characters.nim -> mutated copy:
# 316c316
# < enc[pid][e.entityId] = e
# ---
# > 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] linking through a patch hands the names over (#29)
[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 rewrites the live snapshots and the rows alike (#30, #27)
[FAILED] a reveal to one player rewrites exactly that player's row (#27)
[FAILED] a link change moves the snapshot to the character's names, link and knowledge (#29)
[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.zrTIgu/e2/w/tests/tcharacters'
# test exit=1; expected tests failed: 1
[FAILED] a character rename rewrites the live snapshots and the rows alike (#30, #27)
e2: exit=1 expected_failed=1 ok
## e3: a link patch keeps the token's own names
# diff server/tokens.nim -> mutated copy:
# 251c251
# < if result.characterId.isSome:
# ---
# > if false:
[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)
[FAILED] linking through a patch hands the names over (#29)
[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 rewrites the live snapshots and the rows alike (#30, #27)
[OK] a reveal to one player rewrites exactly that player's row (#27)
[OK] a link change moves the snapshot to the character's names, link and knowledge (#29)
[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.zrTIgu/e3/w/tests/tcharacters'
# test exit=1; expected tests failed: 1
[FAILED] linking through a patch hands the names over (#29)
e3: exit=1 expected_failed=1 ok
## f: escape rule without the crossing check
# diff server/moverules.nim -> mutated copy:
# 147c147
@@ -738,7 +859,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.YZ1tHm/f/w/tests/tmoverules'
Error: execution of an external program failed: '/tmp/fffmut.zrTIgu/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
@@ -815,7 +936,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.YZ1tHm/g/w/tests/tmoverules'
Error: execution of an external program failed: '/tmp/fffmut.zrTIgu/g/w/tests/tmoverules'
# test exit=1; expected tests failed: 1
[FAILED] GM: ignores walls, step cap and the lock; bounds still apply
@@ -892,7 +1013,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.YZ1tHm/h/w/tests/tmoverules'
Error: execution of an external program failed: '/tmp/fffmut.zrTIgu/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
@@ -968,13 +1089,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.YZ1tHm/i/w/tests/tmoverules'
Error: execution of an external program failed: '/tmp/fffmut.zrTIgu/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.YZ1tHm/i/w/tests/tprobing'
Error: execution of an external program failed: '/tmp/fffmut.zrTIgu/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
@@ -1052,7 +1173,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.YZ1tHm/j/w/tests/tmoverules'
Error: execution of an external program failed: '/tmp/fffmut.zrTIgu/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
@@ -1130,7 +1251,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.YZ1tHm/k/w/tests/tmoverules'
Error: execution of an external program failed: '/tmp/fffmut.zrTIgu/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
@@ -1206,7 +1327,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.YZ1tHm/l/w/tests/tmoverules'
Error: execution of an external program failed: '/tmp/fffmut.zrTIgu/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
@@ -1285,7 +1406,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.YZ1tHm/m/w/tests/tmoverules'
Error: execution of an external program failed: '/tmp/fffmut.zrTIgu/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
@@ -1364,7 +1485,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.YZ1tHm/n/w/tests/tmoverules'
Error: execution of an external program failed: '/tmp/fffmut.zrTIgu/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
@@ -1446,7 +1567,7 @@ 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.YZ1tHm/o/w/tests/tmoverules'
Error: execution of an external program failed: '/tmp/fffmut.zrTIgu/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
@@ -1480,7 +1601,7 @@ 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.YZ1tHm/p/w/tests/tprotocol'
Error: execution of an external program failed: '/tmp/fffmut.zrTIgu/p/w/tests/tprotocol'
# test exit=1; expected tests failed: 1
[FAILED] refill is continuous at 30/s, capped at the burst
@@ -1516,7 +1637,7 @@ 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.YZ1tHm/q/w/tests/tprotocol'
Error: execution of an external program failed: '/tmp/fffmut.zrTIgu/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
@@ -1552,7 +1673,7 @@ 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.YZ1tHm/r/w/tests/tprotocol'
Error: execution of an external program failed: '/tmp/fffmut.zrTIgu/r/w/tests/tprotocol'
# test exit=1; expected tests failed: 1
[FAILED] nine malformed frames are tolerated, the tenth closes
@@ -1578,7 +1699,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.YZ1tHm/s/w/tests/tconns'
Error: execution of an external program failed: '/tmp/fffmut.zrTIgu/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
@@ -1616,7 +1737,7 @@ s: exit=1 expected_failed=1 ok
[OK] one field is enough; a patch with none is invalid
[OK] the non-settable columns are unknown fields: alone they leave no patch field
[OK] field shapes: text by the 6.5 rule, numbers finite, extra an object
Error: execution of an external program failed: '/tmp/fffmut.YZ1tHm/t/w/tests/tworld'
Error: execution of an external program failed: '/tmp/fffmut.zrTIgu/t/w/tests/tworld'
# test exit=1; expected tests failed: 1
[FAILED] a removal never renumbers and the next add never reuses the id
@@ -1652,7 +1773,7 @@ t: exit=1 expected_failed=1 ok
[OK] one field is enough; a patch with none is invalid
[OK] the non-settable columns are unknown fields: alone they leave no patch field
[OK] field shapes: text by the 6.5 rule, numbers finite, extra an object
Error: execution of an external program failed: '/tmp/fffmut.YZ1tHm/u/w/tests/tworld'
Error: execution of an external program failed: '/tmp/fffmut.zrTIgu/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
@@ -1686,7 +1807,7 @@ u: exit=1 expected_failed=1 ok
[OK] one field is enough; a patch with none is invalid
[OK] the non-settable columns are unknown fields: alone they leave no patch field
[OK] field shapes: text by the 6.5 rule, numbers finite, extra an object
Error: execution of an external program failed: '/tmp/fffmut.YZ1tHm/v/w/tests/tworld'
Error: execution of an external program failed: '/tmp/fffmut.zrTIgu/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
@@ -1720,7 +1841,7 @@ v: exit=1 expected_failed=1 ok
[OK] one field is enough; a patch with none is invalid
[OK] the non-settable columns are unknown fields: alone they leave no patch field
[OK] field shapes: text by the 6.5 rule, numbers finite, extra an object
Error: execution of an external program failed: '/tmp/fffmut.YZ1tHm/w/w/tests/tworld'
Error: execution of an external program failed: '/tmp/fffmut.zrTIgu/w/w/tests/tworld'
# test exit=1; expected tests failed: 1
[FAILED] a wall is never open: the stored row normalizes it
@@ -1754,7 +1875,7 @@ w: exit=1 expected_failed=1 ok
[OK] one field is enough; a patch with none is invalid
[OK] the non-settable columns are unknown fields: alone they leave no patch field
[OK] field shapes: text by the 6.5 rule, numbers finite, extra an object
Error: execution of an external program failed: '/tmp/fffmut.YZ1tHm/x/w/tests/tworld'
Error: execution of an external program failed: '/tmp/fffmut.zrTIgu/x/w/tests/tworld'
# test exit=1; expected tests failed: 1
[FAILED] a zero-length wall is invalid and writes nothing
@@ -1788,7 +1909,7 @@ x: exit=1 expected_failed=1 ok
[OK] one field is enough; a patch with none is invalid
[OK] the non-settable columns are unknown fields: alone they leave no patch field
[OK] field shapes: text by the 6.5 rule, numbers finite, extra an object
Error: execution of an external program failed: '/tmp/fffmut.YZ1tHm/y/w/tests/tworld'
Error: execution of an external program failed: '/tmp/fffmut.zrTIgu/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
@@ -1820,7 +1941,7 @@ y: exit=1 expected_failed=1 ok
[OK] one field is enough; a patch with none is invalid
[OK] the non-settable columns are unknown fields: alone they leave no patch field
[OK] field shapes: text by the 6.5 rule, numbers finite, extra an object
Error: execution of an external program failed: '/tmp/fffmut.YZ1tHm/z/w/tests/tworld'
Error: execution of an external program failed: '/tmp/fffmut.zrTIgu/z/w/tests/tworld'
# test exit=1; expected tests failed: 1
[FAILED] unknown ids are not-found, wrong kinds are their own outcome
@@ -1854,15 +1975,15 @@ z: exit=1 expected_failed=1 ok
[OK] one field is enough; a patch with none is invalid
[OK] the non-settable columns are unknown fields: alone they leave no patch field
[OK] field shapes: text by the 6.5 rule, numbers finite, extra an object
Error: execution of an external program failed: '/tmp/fffmut.YZ1tHm/z2/w/tests/tworld'
Error: execution of an external program failed: '/tmp/fffmut.zrTIgu/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:
# 203c203
# < if not pv.visibleTo(t, playerId): continue
# 260c260
# < if not pv[].visibleTo(t, playerId): continue
# ---
# > if false: continue
[OK] every token, in token order, with controller and both names
@@ -1898,7 +2019,9 @@ z2: exit=1 expected_failed=1 ok
[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.YZ1tHm/aa/w/tests/tviews'
[OK] a Context is six addresses: in-place changes are visible through the borrow
[OK] building a Context and egressing does not scale with the explored sets
Error: execution of an external program failed: '/tmp/fffmut.zrTIgu/aa/w/tests/tviews'
# test exit=1; expected tests failed: 1
[FAILED] the set of tokens follows the visibility rule
@@ -1922,7 +2045,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.YZ1tHm/ab/w/tests/tvision'
Error: execution of an external program failed: '/tmp/fffmut.zrTIgu/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
@@ -1946,14 +2069,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.YZ1tHm/ac/w/tests/tvision'
Error: execution of an external program failed: '/tmp/fffmut.zrTIgu/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:
# 576c576
# 638c638
# < result.add tokenGoneFrame(id)
# ---
# > discard
@@ -1990,14 +2113,16 @@ ac: exit=1 expected_failed=1 ok
[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.YZ1tHm/ad/w/tests/tviews'
[OK] a Context is six addresses: in-place changes are visible through the borrow
[OK] building a Context and egressing does not scale with the explored sets
Error: execution of an external program failed: '/tmp/fffmut.zrTIgu/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:
# 360c360
# 419c419
# < "statuses": statusKindsJson(v.statuses), "props": buckets, "cprops": cprops
# ---
# > "statuses": statusKindsJson(v.statuses), "props": buckets, "kind": "npc", "cprops": cprops
@@ -2034,7 +2159,9 @@ ad: exit=1 expected_failed=1 ok
[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.YZ1tHm/ae/w/tests/tviews'
[OK] a Context is six addresses: in-place changes are visible through the borrow
[OK] building a Context and egressing does not scale with the explored sets
Error: execution of an external program failed: '/tmp/fffmut.zrTIgu/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
@@ -2060,7 +2187,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.YZ1tHm/af/w/tests/tvision'
Error: execution of an external program failed: '/tmp/fffmut.zrTIgu/af/w/tests/tvision'
# test exit=1; expected tests failed: 1
[FAILED] moving adds cells and never forgets the old ones
@@ -2082,7 +2209,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.YZ1tHm/ag/w/tests/texplored'
Error: execution of an external program failed: '/tmp/fffmut.zrTIgu/ag/w/tests/texplored'
# test exit=1; expected tests failed: 1
[FAILED] the chunk bitmap layout is pinned
@@ -2106,7 +2233,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.YZ1tHm/ah/w/tests/texplored'
Error: execution of an external program failed: '/tmp/fffmut.zrTIgu/ah/w/tests/texplored'
# test exit=1; expected tests failed: 1
[FAILED] one chunk covers 64x64 cells
@@ -2136,7 +2263,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.YZ1tHm/ai/w/tests/texplored'
Error: execution of an external program failed: '/tmp/fffmut.zrTIgu/ai/w/tests/texplored'
# test exit=1; expected tests failed: 1
[FAILED] restore: the stored cells come back exactly
@@ -2166,7 +2293,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.YZ1tHm/aj/w/tests/texplored'
Error: execution of an external program failed: '/tmp/fffmut.zrTIgu/aj/w/tests/texplored'
# test exit=1; expected tests failed: 1
[FAILED] restore: two players' explored never mix
@@ -2188,7 +2315,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.YZ1tHm/ak/w/tests/texplored'
Error: execution of an external program failed: '/tmp/fffmut.zrTIgu/ak/w/tests/texplored'
# test exit=1; expected tests failed: 1
[FAILED] a second write to the same chunk replaces the bitmap
@@ -2210,14 +2337,14 @@ 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.YZ1tHm/al/w/tests/texplored'
Error: execution of an external program failed: '/tmp/fffmut.zrTIgu/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:
# 219c219
# 276c276
# < propsOwner: (if mine: objectOf(t.props[pbOwner]) else: nil),
# ---
# > propsOwner: t.props[pbOwner],
@@ -2254,7 +2381,9 @@ al: exit=1 expected_failed=1 ok
[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.YZ1tHm/am/w/tests/tviews'
[OK] a Context is six addresses: in-place changes are visible through the borrow
[OK] building a Context and egressing does not scale with the explored sets
Error: execution of an external program failed: '/tmp/fffmut.zrTIgu/am/w/tests/tviews'
# test exit=1; expected tests failed: 1
[FAILED] a player who sees the token gets the public bucket only
@@ -2331,7 +2460,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.YZ1tHm/an/w/tests/tmoverules'
Error: execution of an external program failed: '/tmp/fffmut.zrTIgu/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
@@ -2408,7 +2537,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.YZ1tHm/ao/w/tests/tmoverules'
Error: execution of an external program failed: '/tmp/fffmut.zrTIgu/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
@@ -2433,7 +2562,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.YZ1tHm/ap/w/tests/tprops'
Error: execution of an external program failed: '/tmp/fffmut.zrTIgu/ap/w/tests/tprops'
# test exit=1; expected tests failed: 1
[FAILED] 64 keys per bucket, the 65th is refused and nothing changes
@@ -2510,7 +2639,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.YZ1tHm/aq/w/tests/tmoverules'
Error: execution of an external program failed: '/tmp/fffmut.zrTIgu/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
@@ -2585,7 +2714,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.YZ1tHm/ar/w/tests/tmoverules'
Error: execution of an external program failed: '/tmp/fffmut.zrTIgu/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
@@ -2662,7 +2791,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.YZ1tHm/as/w/tests/tmoverules'
Error: execution of an external program failed: '/tmp/fffmut.zrTIgu/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
@@ -2688,7 +2817,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.YZ1tHm/at/w/tests/tprops'
Error: execution of an external program failed: '/tmp/fffmut.zrTIgu/at/w/tests/tprops'
# test exit=1; expected tests failed: 1
[FAILED] 64 keys per bucket, the 65th is refused and nothing changes
@@ -2765,14 +2894,14 @@ 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.YZ1tHm/au/w/tests/tmoverules'
Error: execution of an external program failed: '/tmp/fffmut.zrTIgu/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
# 89c89
# < isOwner or revealAll or revealed
# ---
# > true
@@ -2789,6 +2918,7 @@ au: exit=1 expected_failed=1 ok
[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] linking through a patch hands the names over (#29)
[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
@@ -2796,10 +2926,13 @@ au: exit=1 expected_failed=1 ok
[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] a character rename rewrites the live snapshots and the rows alike (#30, #27)
[OK] a reveal to one player rewrites exactly that player's row (#27)
[FAILED] a link change moves the snapshot to the character's names, link and knowledge (#29)
[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.YZ1tHm/av/w/tests/tcharacters'
Error: execution of an external program failed: '/tmp/fffmut.zrTIgu/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
@@ -2807,7 +2940,7 @@ Error: execution of an external program failed: '/tmp/fffmut.YZ1tHm/av/w/tests/t
av: exit=1 expected_failed=2 ok
## aw: the encountered snapshot ignores what the player knows
# diff server/characters.nim -> mutated copy:
# 173c173
# 174c174
# < actualName: (if knowsActual: some(n.actual) else: none(string)))
# ---
# > actualName: some(n.actual))
@@ -2824,6 +2957,7 @@ av: exit=1 expected_failed=2 ok
[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] linking through a patch hands the names over (#29)
[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
@@ -2831,10 +2965,13 @@ av: exit=1 expected_failed=2 ok
[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 rewrites the live snapshots and the rows alike (#30, #27)
[OK] a reveal to one player rewrites exactly that player's row (#27)
[OK] a link change moves the snapshot to the character's names, link and knowledge (#29)
[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.YZ1tHm/aw/w/tests/tcharacters'
Error: execution of an external program failed: '/tmp/fffmut.zrTIgu/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
@@ -2842,7 +2979,7 @@ Error: execution of an external program failed: '/tmp/fffmut.YZ1tHm/aw/w/tests/t
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
# 181c181
# < if e.actualName.isSome: result.actualName = some(actual)
# ---
# > result.actualName = some(actual)
@@ -2859,6 +2996,7 @@ aw: exit=1 expected_failed=2 ok
[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] linking through a patch hands the names over (#29)
[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
@@ -2866,10 +3004,13 @@ aw: exit=1 expected_failed=2 ok
[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 rewrites the live snapshots and the rows alike (#30, #27)
[OK] a reveal to one player rewrites exactly that player's row (#27)
[OK] a link change moves the snapshot to the character's names, link and knowledge (#29)
[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.YZ1tHm/ax/w/tests/tcharacters'
Error: execution of an external program failed: '/tmp/fffmut.zrTIgu/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
@@ -2893,6 +3034,7 @@ ax: exit=1 expected_failed=1 ok
[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)
[FAILED] linking through a patch hands the names over (#29)
[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
@@ -2900,17 +3042,20 @@ ax: exit=1 expected_failed=1 ok
[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 rewrites the live snapshots and the rows alike (#30, #27)
[OK] a reveal to one player rewrites exactly that player's row (#27)
[OK] a link change moves the snapshot to the character's names, link and knowledge (#29)
[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.YZ1tHm/ay/w/tests/tcharacters'
Error: execution of an external program failed: '/tmp/fffmut.zrTIgu/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
# 252c252
# < if t.characterId.isSome and t.characterId.get == characterId: inc result
# ---
# > discard
@@ -2927,6 +3072,7 @@ ay: exit=1 expected_failed=1 ok
[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] linking through a patch hands the names over (#29)
[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
@@ -2934,17 +3080,20 @@ ay: exit=1 expected_failed=1 ok
[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 rewrites the live snapshots and the rows alike (#30, #27)
[OK] a reveal to one player rewrites exactly that player's row (#27)
[OK] a link change moves the snapshot to the character's names, link and knowledge (#29)
[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.YZ1tHm/az/w/tests/tcharacters'
Error: execution of an external program failed: '/tmp/fffmut.zrTIgu/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
# 257c257
# < 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)
@@ -2961,6 +3110,7 @@ az: exit=1 expected_failed=1 ok
[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] linking through a patch hands the names over (#29)
[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
@@ -2968,10 +3118,13 @@ az: exit=1 expected_failed=1 ok
[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 rewrites the live snapshots and the rows alike (#30, #27)
[OK] a reveal to one player rewrites exactly that player's row (#27)
[OK] a link change moves the snapshot to the character's names, link and knowledge (#29)
[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.YZ1tHm/b1/w/tests/tcharacters'
Error: execution of an external program failed: '/tmp/fffmut.zrTIgu/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
@@ -3003,14 +3156,10 @@ Error: execution of an external program failed: '/tmp/fffmut.YZ1tHm/b1/w/tests/t
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)
# 195c195
# < actualName: (if knows: some(n.actual) else: none(string)))
# ---
# > AND 1 = 1""", actual, characterId)
# 291c291
# < AND actual_name <> ''""", actual, entityId)
# ---
# > AND 1 = 1""", actual, entityId)
# > 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
@@ -3024,6 +3173,7 @@ b1: exit=1 expected_failed=1 ok
[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] linking through a patch hands the names over (#29)
[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
@@ -3031,17 +3181,21 @@ b1: exit=1 expected_failed=1 ok
[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 rewrites the live snapshots and the rows alike (#30, #27)
[OK] a reveal to one player rewrites exactly that player's row (#27)
[FAILED] a link change moves the snapshot to the character's names, link and knowledge (#29)
[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.YZ1tHm/b2/w/tests/tcharacters'
# test exit=1; expected tests failed: 1
Error: execution of an external program failed: '/tmp/fffmut.zrTIgu/b2/w/tests/tcharacters'
# test exit=1; expected tests failed: 2
[FAILED] a character rename rewrites the live snapshots and the rows alike (#30, #27)
[FAILED] a character rename follows the snapshots of everyone who met it
b2: exit=1 expected_failed=1 ok
b2: exit=1 expected_failed=2 ok
## b3: cprops carries the character owner bucket
# diff server/views.nim -> mutated copy:
# 222c222
# 279c279
# < cpropsPublic: objectOf(if ch.isSome and not ownsCharacter: ch.get.props[pbPublic]
# ---
# > cpropsPublic: objectOf(if ch.isSome and not ownsCharacter: ch.get.props[pbOwner]
@@ -3080,14 +3234,16 @@ b2: exit=1 expected_failed=1 ok
[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.YZ1tHm/b3/w/tests/tviews'
[OK] a Context is six addresses: in-place changes are visible through the borrow
[OK] building a Context and egressing does not scale with the explored sets
Error: execution of an external program failed: '/tmp/fffmut.zrTIgu/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
# 282c282
# < if c.owner != playerId: continue
# ---
# > if false: continue
@@ -3124,7 +3280,9 @@ b3: exit=1 expected_failed=1 ok
[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.YZ1tHm/b4/w/tests/tviews'
[OK] a Context is six addresses: in-place changes are visible through the borrow
[OK] building a Context and egressing does not scale with the explored sets
Error: execution of an external program failed: '/tmp/fffmut.zrTIgu/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
@@ -3146,7 +3304,8 @@ b4: exit=1 expected_failed=1 ok
[OK] the GM is always allowed
[FAILED] a tile is allowed when any overlapping cell is explored
[FAILED] the explored overlap respects the scene border
Error: execution of an external program failed: '/tmp/fffmut.YZ1tHm/c1/w/tests/ttiles'
[OK] a request built from one record stays internally consistent when the scene is swapped
Error: execution of an external program failed: '/tmp/fffmut.zrTIgu/c1/w/tests/ttiles'
# test exit=1; expected tests failed: 2
[FAILED] an unexplored tile is refused
[FAILED] a tile is allowed when any overlapping cell is explored
@@ -3169,7 +3328,8 @@ c1: exit=1 expected_failed=2 ok
[OK] the GM is always allowed
[FAILED] a tile is allowed when any overlapping cell is explored
[FAILED] the explored overlap respects the scene border
Error: execution of an external program failed: '/tmp/fffmut.YZ1tHm/c2/w/tests/ttiles'
[FAILED] a request built from one record stays internally consistent when the scene is swapped
Error: execution of an external program failed: '/tmp/fffmut.zrTIgu/c2/w/tests/ttiles'
# test exit=1; expected tests failed: 2
[FAILED] an unexplored tile is refused
[FAILED] a tile is allowed when any overlapping cell is explored
@@ -3192,7 +3352,8 @@ c2: exit=1 expected_failed=2 ok
[OK] the GM is always allowed
[OK] a tile is allowed when any overlapping cell is explored
[OK] the explored overlap respects the scene border
Error: execution of an external program failed: '/tmp/fffmut.YZ1tHm/c3/w/tests/ttiles'
[OK] a request built from one record stays internally consistent when the scene is swapped
Error: execution of an external program failed: '/tmp/fffmut.zrTIgu/c3/w/tests/ttiles'
# test exit=1; expected tests failed: 1
[FAILED] a tile coordinate outside the grid is out of range
@@ -3214,7 +3375,8 @@ c3: exit=1 expected_failed=1 ok
[OK] the GM is always allowed
[OK] a tile is allowed when any overlapping cell is explored
[OK] the explored overlap respects the scene border
Error: execution of an external program failed: '/tmp/fffmut.YZ1tHm/c4/w/tests/ttiles'
[OK] a request built from one record stays internally consistent when the scene is swapped
Error: execution of an external program failed: '/tmp/fffmut.zrTIgu/c4/w/tests/ttiles'
# test exit=1; expected tests failed: 1
[FAILED] leading zero tile coordinates are malformed