test(m4): finish audit, measurement and archive (#76)
- client/e2e/audit.test.mjs: independent player-browser traffic audit (own frame catalogue and banned-key list, never leakcheck.nim), with a -d:leakfault/otherVision negative control. - client/e2e/fogbench.test.mjs + tools/fogbench.nim: 50 tokens on a 16384 px map (server move path and headless SwiftShader cadence); results/m4-fog-bench.md records both honestly (SW is not the phone gate). - Archive prototype-* under docs/archive/prototypes (Q24); DESIGN 13 M4 done, TESTING 13 M4 accept result, HANDOFF-M4 close-out. - mutation.sh c1/c2 patch the post-#65 tile-gate line again (they had silently become sed no-ops).
This commit is contained in:
+125
-110
@@ -292,6 +292,14 @@
|
||||
[OK] exactly n walls, deterministic per seed, seeds differ
|
||||
[OK] doors are every 10th wall, all closed; walls stay inside the world (+- jitter)
|
||||
[OK] walls are non-degenerate and axis-ish segments of room-edge length
|
||||
[OK] a revocation drops every cached session of that player and no other
|
||||
[OK] player removal drops the sessions and the explored bitmap
|
||||
[OK] sessions survive a restart through the database, replaced ones do not
|
||||
[OK] the bitmap holds the same cells as the set, with the cell-index layout
|
||||
[OK] a refresh marks only its fresh cells, and the snapshot only grows
|
||||
[OK] the GM is always allowed; a player only through an explored bit
|
||||
[OK] the URL is decided before any session is looked at
|
||||
[OK] a scene republish changes the parse result, never a mixture
|
||||
[OK] canonical numbers: digits only, bounded, no leading zero
|
||||
[OK] a canonical URL parses to its three integers
|
||||
[OK] leading zero tile coordinates are malformed
|
||||
@@ -331,6 +339,7 @@
|
||||
[OK] status helpers keep the entry set unique and ordered
|
||||
[OK] every token, in token order, with controller and both names
|
||||
[OK] a GM-controlled token shows controller null
|
||||
[OK] seen_by lists the players whose existing sight sees each token, ascending
|
||||
[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
|
||||
@@ -462,7 +471,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.Gg6RRD/a/w/tests/tgeometry'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/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
|
||||
|
||||
@@ -518,7 +527,7 @@ a: exit=1 expected_failed=1 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.Gg6RRD/a2/w/tests/tgeometry'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/a2/w/tests/tgeometry'
|
||||
# test exit=1; expected tests failed: 5
|
||||
[FAILED] corpus polygons are bit-identical to the all-segments fan
|
||||
[FAILED] seed scene tokens, doors and every switch shape: bit-identical
|
||||
@@ -578,7 +587,7 @@ a2: exit=1 expected_failed=5 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.Gg6RRD/b/w/tests/tgeometry'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/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)
|
||||
@@ -635,7 +644,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.Gg6RRD/c/w/tests/tgeometry'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/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)
|
||||
@@ -692,7 +701,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.Gg6RRD/d1/w/tests/tgeometry'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/d1/w/tests/tgeometry'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] shared vertex: both arms required (mutation d1/d2)
|
||||
|
||||
@@ -748,7 +757,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.Gg6RRD/d2/w/tests/tgeometry'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/d2/w/tests/tgeometry'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] shared vertex: both arms required (mutation d1/d2)
|
||||
|
||||
@@ -789,7 +798,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.Gg6RRD/d3/w/tests/tworld'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/d3/w/tests/tworld'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] one field is enough; a patch with none is invalid
|
||||
|
||||
@@ -843,7 +852,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.Gg6RRD/e/w/tests/tgeometry'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/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
|
||||
@@ -884,7 +893,7 @@ e: exit=1 expected_failed=4 ok
|
||||
[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.Gg6RRD/e1/w/tests/tcharacters'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/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)
|
||||
|
||||
@@ -922,7 +931,7 @@ e1: exit=1 expected_failed=1 ok
|
||||
[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.Gg6RRD/e2/w/tests/tcharacters'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/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)
|
||||
|
||||
@@ -960,7 +969,7 @@ e2: exit=1 expected_failed=1 ok
|
||||
[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.Gg6RRD/e3/w/tests/tcharacters'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/e3/w/tests/tcharacters'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] linking through a patch hands the names over (#29)
|
||||
|
||||
@@ -982,11 +991,11 @@ e3: exit=1 expected_failed=1 ok
|
||||
[OK] every impossible wall row is rejected by the database
|
||||
[OK] a failing step 8 rolls back the rebuild, the history row and the version
|
||||
[OK] a malformed props_gm refuses step 8 and leaves the schema-7 DB untouched
|
||||
/home/davide/Projects/GDR/FFF_vtt-m64/.devbox/nimble/pkgs2/db_connector-0.1.0-4f2e67d0e4b61af9ac5575509305660b473f01a4/db_connector/db_sqlite.nim(211) dbError
|
||||
/home/davide/Projects/GDR/FFF_vtt-m76/.devbox/nimble/pkgs2/db_connector-0.1.0-4f2e67d0e4b61af9ac5575509305660b473f01a4/db_connector/db_sqlite.nim(211) dbError
|
||||
Unhandled exception: cannot start a transaction within a transaction [DbError]
|
||||
[FAILED] withTransaction rolls back a Defect and leaves the connection usable
|
||||
[OK] authoringTransaction rolls back a Defect and restores NORMAL
|
||||
Error: execution of an external program failed: '/tmp/fffmut.Gg6RRD/e4/w/tests/tdb'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/e4/w/tests/tdb'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] withTransaction rolls back a Defect and leaves the connection usable
|
||||
|
||||
@@ -1009,10 +1018,10 @@ e4: exit=1 expected_failed=1 ok
|
||||
[OK] a failing step 8 rolls back the rebuild, the history row and the version
|
||||
[OK] a malformed props_gm refuses step 8 and leaves the schema-7 DB untouched
|
||||
[OK] withTransaction rolls back a Defect and leaves the connection usable
|
||||
/home/davide/Projects/GDR/FFF_vtt-m64/.devbox/nimble/pkgs2/db_connector-0.1.0-4f2e67d0e4b61af9ac5575509305660b473f01a4/db_connector/db_sqlite.nim(211) dbError
|
||||
/home/davide/Projects/GDR/FFF_vtt-m76/.devbox/nimble/pkgs2/db_connector-0.1.0-4f2e67d0e4b61af9ac5575509305660b473f01a4/db_connector/db_sqlite.nim(211) dbError
|
||||
Unhandled exception: Safety level may not be changed inside a transaction [DbError]
|
||||
[FAILED] authoringTransaction rolls back a Defect and restores NORMAL
|
||||
Error: execution of an external program failed: '/tmp/fffmut.Gg6RRD/e5/w/tests/tdb'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/e5/w/tests/tdb'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] authoringTransaction rolls back a Defect and restores NORMAL
|
||||
|
||||
@@ -1041,7 +1050,7 @@ e5: 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.Gg6RRD/f1/w/tests/tprops'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/f1/w/tests/tprops'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] size: exactly 8 KB is accepted, one byte over is refused
|
||||
|
||||
@@ -1070,7 +1079,7 @@ f1: 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.Gg6RRD/f2/w/tests/tprops'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/f2/w/tests/tprops'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] keys: 64 per object is accepted, 65 is refused, and it is per object
|
||||
|
||||
@@ -1103,7 +1112,7 @@ f2: 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.Gg6RRD/f3/w/tests/tprops'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/f3/w/tests/tprops'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] depth: 8 containers is accepted, 9 is refused
|
||||
|
||||
@@ -1180,7 +1189,7 @@ f3: 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.Gg6RRD/f/w/tests/tmoverules'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/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
|
||||
|
||||
@@ -1257,7 +1266,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.Gg6RRD/g/w/tests/tmoverules'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/g/w/tests/tmoverules'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] GM: ignores walls, step cap and the lock; bounds still apply
|
||||
|
||||
@@ -1334,7 +1343,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.Gg6RRD/h/w/tests/tmoverules'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/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
|
||||
@@ -1410,13 +1419,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.Gg6RRD/i/w/tests/tmoverules'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/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.Gg6RRD/i/w/tests/tprobing'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/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
|
||||
@@ -1494,7 +1503,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.Gg6RRD/j/w/tests/tmoverules'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/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
|
||||
@@ -1572,7 +1581,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.Gg6RRD/k/w/tests/tmoverules'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/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
|
||||
@@ -1648,7 +1657,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.Gg6RRD/l/w/tests/tmoverules'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/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
|
||||
@@ -1727,7 +1736,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.Gg6RRD/m/w/tests/tmoverules'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/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
|
||||
@@ -1806,7 +1815,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.Gg6RRD/n/w/tests/tmoverules'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/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
|
||||
@@ -1888,7 +1897,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.Gg6RRD/o/w/tests/tmoverules'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/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
|
||||
|
||||
@@ -1922,7 +1931,7 @@ o: exit=1 expected_failed=1 ok
|
||||
[OK] one wall carries the typed record plus the derived kind in the proto-2 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.Gg6RRD/p/w/tests/tprotocol'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/p/w/tests/tprotocol'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] refill is continuous at 30/s, capped at the burst
|
||||
|
||||
@@ -1958,7 +1967,7 @@ p: exit=1 expected_failed=1 ok
|
||||
[OK] one wall carries the typed record plus the derived kind in the proto-2 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.Gg6RRD/q/w/tests/tprotocol'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/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
|
||||
|
||||
@@ -1994,7 +2003,7 @@ q: exit=1 expected_failed=1 ok
|
||||
[OK] one wall carries the typed record plus the derived kind in the proto-2 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.Gg6RRD/r/w/tests/tprotocol'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/r/w/tests/tprotocol'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] nine malformed frames are tolerated, the tenth closes
|
||||
|
||||
@@ -2020,7 +2029,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.Gg6RRD/s/w/tests/tconns'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/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
|
||||
|
||||
@@ -2038,7 +2047,7 @@ s: exit=1 expected_failed=1 ok
|
||||
[OK] kind is derived from the switches, never stored (5.8)
|
||||
[OK] undefined and null are the same as an absent field
|
||||
[OK] adds count from 1 and the counter advances
|
||||
/home/davide/Projects/GDR/FFF_vtt-m64/.devbox/nimble/pkgs2/db_connector-0.1.0-4f2e67d0e4b61af9ac5575509305660b473f01a4/db_connector/db_sqlite.nim(211) dbError
|
||||
/home/davide/Projects/GDR/FFF_vtt-m76/.devbox/nimble/pkgs2/db_connector-0.1.0-4f2e67d0e4b61af9ac5575509305660b473f01a4/db_connector/db_sqlite.nim(211) dbError
|
||||
Unhandled exception: UNIQUE constraint failed: wall.scene_id, wall.id [DbError]
|
||||
[FAILED] a removal never renumbers and the next add never reuses the id
|
||||
[OK] the id counter survives a reload, even when the newest wall was removed
|
||||
@@ -2047,7 +2056,7 @@ s: exit=1 expected_failed=1 ok
|
||||
[OK] nullable height and label use SQL literals and round-trip as none, not 0 or ''
|
||||
[OK] authoring runs with synchronous=FULL and leaves NORMAL behind (Q12)
|
||||
[OK] a failing write leaves memory and the pragma alone
|
||||
/home/davide/Projects/GDR/FFF_vtt-m64/.devbox/nimble/pkgs2/db_connector-0.1.0-4f2e67d0e4b61af9ac5575509305660b473f01a4/db_connector/db_sqlite.nim(211) dbError
|
||||
/home/davide/Projects/GDR/FFF_vtt-m76/.devbox/nimble/pkgs2/db_connector-0.1.0-4f2e67d0e4b61af9ac5575509305660b473f01a4/db_connector/db_sqlite.nim(211) dbError
|
||||
Unhandled exception: UNIQUE constraint failed: wall.scene_id, wall.id [DbError]
|
||||
[FAILED] walls load in id order whatever the insertion order was
|
||||
[OK] a zero-length wall is invalid and writes nothing
|
||||
@@ -2065,7 +2074,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.Gg6RRD/t/w/tests/tworld'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/t/w/tests/tworld'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] a removal never renumbers and the next add never reuses the id
|
||||
|
||||
@@ -2084,7 +2093,7 @@ t: exit=1 expected_failed=1 ok
|
||||
[OK] undefined and null are the same as an absent field
|
||||
[OK] adds count from 1 and the counter advances
|
||||
[OK] a removal never renumbers and the next add never reuses the id
|
||||
/home/davide/Projects/GDR/FFF_vtt-m64/.devbox/nimble/pkgs2/db_connector-0.1.0-4f2e67d0e4b61af9ac5575509305660b473f01a4/db_connector/db_sqlite.nim(211) dbError
|
||||
/home/davide/Projects/GDR/FFF_vtt-m76/.devbox/nimble/pkgs2/db_connector-0.1.0-4f2e67d0e4b61af9ac5575509305660b473f01a4/db_connector/db_sqlite.nim(211) dbError
|
||||
Unhandled exception: UNIQUE constraint failed: wall.scene_id, wall.id [DbError]
|
||||
[FAILED] the id counter survives a reload, even when the newest wall was removed
|
||||
[FAILED] add, update, door set and remove round-trip through a reload
|
||||
@@ -2108,7 +2117,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.Gg6RRD/u/w/tests/tworld'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/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
|
||||
|
||||
@@ -2125,7 +2134,7 @@ u: exit=1 expected_failed=1 ok
|
||||
[OK] undefined and null are the same as an absent field
|
||||
[OK] adds count from 1 and the counter advances
|
||||
[OK] a removal never renumbers and the next add never reuses the id
|
||||
/home/davide/Projects/GDR/FFF_vtt-m64/.devbox/nimble/pkgs2/db_connector-0.1.0-4f2e67d0e4b61af9ac5575509305660b473f01a4/db_connector/db_sqlite.nim(211) dbError
|
||||
/home/davide/Projects/GDR/FFF_vtt-m76/.devbox/nimble/pkgs2/db_connector-0.1.0-4f2e67d0e4b61af9ac5575509305660b473f01a4/db_connector/db_sqlite.nim(211) dbError
|
||||
Unhandled exception: UNIQUE constraint failed: wall.scene_id, wall.id [DbError]
|
||||
[FAILED] the id counter survives a reload, even when the newest wall was removed
|
||||
[FAILED] add, update, door set and remove round-trip through a reload
|
||||
@@ -2149,7 +2158,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.Gg6RRD/v/w/tests/tworld'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/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
|
||||
|
||||
@@ -2181,10 +2190,10 @@ v: exit=1 expected_failed=1 ok
|
||||
[OK] the switch-set invariants reject door-only settings on a non-door (#55)
|
||||
[OK] storable is the last gate: a secret or locked non-door is refused
|
||||
[OK] a label is 1..64 code points, trimmed and free of control characters (#55)
|
||||
/home/davide/Projects/GDR/FFF_vtt-m64/.devbox/nimble/pkgs2/db_connector-0.1.0-4f2e67d0e4b61af9ac5575509305660b473f01a4/db_connector/db_sqlite.nim(211) dbError
|
||||
/home/davide/Projects/GDR/FFF_vtt-m76/.devbox/nimble/pkgs2/db_connector-0.1.0-4f2e67d0e4b61af9ac5575509305660b473f01a4/db_connector/db_sqlite.nim(211) dbError
|
||||
Unhandled exception: CHECK constraint failed: open = 0 OR door = 1 [DbError]
|
||||
[FAILED] a wall is never open: the stored row normalizes it
|
||||
/home/davide/Projects/GDR/FFF_vtt-m64/.devbox/nimble/pkgs2/db_connector-0.1.0-4f2e67d0e4b61af9ac5575509305660b473f01a4/db_connector/db_sqlite.nim(211) dbError
|
||||
/home/davide/Projects/GDR/FFF_vtt-m76/.devbox/nimble/pkgs2/db_connector-0.1.0-4f2e67d0e4b61af9ac5575509305660b473f01a4/db_connector/db_sqlite.nim(211) dbError
|
||||
Unhandled exception: CHECK constraint failed: open = 0 OR door = 1 [DbError]
|
||||
[FAILED] update keeps the row's id and open flag unless the door switch is cleared
|
||||
[OK] dot patching: only the given fields change
|
||||
@@ -2194,7 +2203,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.Gg6RRD/w/w/tests/tworld'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/w/w/tests/tworld'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] a wall is never open: the stored row normalizes it
|
||||
|
||||
@@ -2235,7 +2244,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.Gg6RRD/x/w/tests/tworld'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/x/w/tests/tworld'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] a zero-length wall is invalid and writes nothing
|
||||
|
||||
@@ -2276,7 +2285,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.Gg6RRD/y/w/tests/tworld'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/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
|
||||
|
||||
@@ -2297,7 +2306,7 @@ y: exit=1 expected_failed=1 ok
|
||||
[OK] add, update, door set and remove round-trip through a reload
|
||||
[OK] door.set refuses to open a secret or locked door, closing either is allowed (#56)
|
||||
[OK] nullable height and label use SQL literals and round-trip as none, not 0 or ''
|
||||
/home/davide/Projects/GDR/FFF_vtt-m64/.devbox/nimble/pkgs2/db_connector-0.1.0-4f2e67d0e4b61af9ac5575509305660b473f01a4/db_connector/db_sqlite.nim(211) dbError
|
||||
/home/davide/Projects/GDR/FFF_vtt-m76/.devbox/nimble/pkgs2/db_connector-0.1.0-4f2e67d0e4b61af9ac5575509305660b473f01a4/db_connector/db_sqlite.nim(211) dbError
|
||||
Unhandled exception: CHECK constraint failed: open = 0 OR door = 1 [DbError]
|
||||
[FAILED] authoring runs with synchronous=FULL and leaves NORMAL behind (Q12)
|
||||
[OK] a failing write leaves memory and the pragma alone
|
||||
@@ -2311,7 +2320,7 @@ y: exit=1 expected_failed=1 ok
|
||||
[OK] a wall is never open: the stored row normalizes it
|
||||
[OK] update keeps the row's id and open flag unless the door switch is cleared
|
||||
[OK] dot patching: only the given fields change
|
||||
/home/davide/Projects/GDR/FFF_vtt-m64/.devbox/nimble/pkgs2/db_connector-0.1.0-4f2e67d0e4b61af9ac5575509305660b473f01a4/db_connector/db_sqlite.nim(211) dbError
|
||||
/home/davide/Projects/GDR/FFF_vtt-m76/.devbox/nimble/pkgs2/db_connector-0.1.0-4f2e67d0e4b61af9ac5575509305660b473f01a4/db_connector/db_sqlite.nim(211) dbError
|
||||
Unhandled exception: CHECK constraint failed: open = 0 OR door = 1 [DbError]
|
||||
[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
|
||||
@@ -2319,7 +2328,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.Gg6RRD/z/w/tests/tworld'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/z/w/tests/tworld'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] unknown ids are not-found, wrong kinds are their own outcome
|
||||
|
||||
@@ -2360,7 +2369,7 @@ 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.Gg6RRD/z2/w/tests/tworld'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/z2/w/tests/tworld'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] add, update, door set and remove round-trip through a reload
|
||||
|
||||
@@ -2401,7 +2410,7 @@ z2: 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.Gg6RRD/s1/w/tests/tworld'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/s1/w/tests/tworld'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] presets expand to switches only through the one resolve path (#55)
|
||||
|
||||
@@ -2440,7 +2449,7 @@ s1: 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.Gg6RRD/s2/w/tests/tworld'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/s2/w/tests/tworld'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] storable is the last gate: a secret or locked non-door is refused
|
||||
|
||||
@@ -2481,7 +2490,7 @@ s2: 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.Gg6RRD/s3/w/tests/tworld'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/s3/w/tests/tworld'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] presets expand to switches only through the one resolve path (#55)
|
||||
|
||||
@@ -2537,7 +2546,7 @@ s3: 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.Gg6RRD/s4/w/tests/tgeometry'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/s4/w/tests/tgeometry'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] one-way: sight_dir names the blind side (left is the (-dy, dx) normal)
|
||||
|
||||
@@ -2558,7 +2567,7 @@ s4: exit=1 expected_failed=1 ok
|
||||
[OK] a removal never renumbers and the next add never reuses the id
|
||||
[OK] the id counter survives a reload, even when the newest wall was removed
|
||||
[OK] add, update, door set and remove round-trip through a reload
|
||||
/home/davide/Projects/GDR/FFF_vtt-m64/.devbox/nimble/pkgs2/db_connector-0.1.0-4f2e67d0e4b61af9ac5575509305660b473f01a4/db_connector/db_sqlite.nim(211) dbError
|
||||
/home/davide/Projects/GDR/FFF_vtt-m76/.devbox/nimble/pkgs2/db_connector-0.1.0-4f2e67d0e4b61af9ac5575509305660b473f01a4/db_connector/db_sqlite.nim(211) dbError
|
||||
AND sight_dir = 'both') [DbError]
|
||||
[FAILED] door.set refuses to open a secret or locked door, closing either is allowed (#56)
|
||||
[OK] nullable height and label use SQL literals and round-trip as none, not 0 or ''
|
||||
@@ -2580,7 +2589,7 @@ s4: 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.Gg6RRD/s5/w/tests/tworld'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/s5/w/tests/tworld'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] door.set refuses to open a secret or locked door, closing either is allowed (#56)
|
||||
|
||||
@@ -2596,7 +2605,7 @@ s5: exit=1 expected_failed=1 ok
|
||||
[FAILED] a geometry change retracts the marker and a re-earn gets a fresh id
|
||||
[OK] a placement change retracts too; height and label never do
|
||||
[OK] a solid wall with the switch on mints nothing; clearing the switch retracts
|
||||
Error: execution of an external program failed: '/tmp/fffmut.Gg6RRD/s6/w/tests/tmarkers'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/s6/w/tests/tmarkers'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] a geometry change retracts the marker and a re-earn gets a fresh id
|
||||
|
||||
@@ -2612,19 +2621,20 @@ s6: exit=1 expected_failed=1 ok
|
||||
[OK] a geometry change retracts the marker and a re-earn gets a fresh id
|
||||
[FAILED] a placement change retracts too; height and label never do
|
||||
[OK] a solid wall with the switch on mints nothing; clearing the switch retracts
|
||||
Error: execution of an external program failed: '/tmp/fffmut.Gg6RRD/s7/w/tests/tmarkers'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/s7/w/tests/tmarkers'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] an untouched marker survives a refresh: it is memory, not current sight
|
||||
|
||||
s7: exit=1 expected_failed=1 ok
|
||||
## aa: the egress ignores LOS, gm_only and ownership
|
||||
# diff server/views.nim -> mutated copy:
|
||||
# 268c268
|
||||
# 281c281
|
||||
# < if not pv[].visibleTo(t, 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] seen_by lists the players whose existing sight sees each token, ascending
|
||||
[OK] the GM never gets vision polygons or explored cells
|
||||
[FAILED] the set of tokens follows the visibility rule
|
||||
[OK] a player frame carries no GM-only field and no wall-like key
|
||||
@@ -2658,7 +2668,7 @@ s7: exit=1 expected_failed=1 ok
|
||||
[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
|
||||
Error: execution of an external program failed: '/tmp/fffmut.Gg6RRD/aa/w/tests/tviews'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/aa/w/tests/tviews'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] the set of tokens follows the visibility rule
|
||||
|
||||
@@ -2682,7 +2692,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.Gg6RRD/ab/w/tests/tvision'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/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
|
||||
|
||||
@@ -2706,19 +2716,20 @@ 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.Gg6RRD/ac/w/tests/tvision'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/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:
|
||||
# 698c698
|
||||
# 717c717
|
||||
# < result.add tokenGoneFrame(id)
|
||||
# ---
|
||||
# > discard
|
||||
[OK] every token, in token order, with controller and both names
|
||||
[OK] a GM-controlled token shows controller null
|
||||
[OK] seen_by lists the players whose existing sight sees each token, ascending
|
||||
[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
|
||||
@@ -2752,19 +2763,20 @@ ac: exit=1 expected_failed=1 ok
|
||||
[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
|
||||
Error: execution of an external program failed: '/tmp/fffmut.Gg6RRD/ad/w/tests/tviews'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/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:
|
||||
# 433c433
|
||||
# 449c449
|
||||
# < "statuses": statusKindsJson(v.statuses), "props": buckets, "cprops": cprops
|
||||
# ---
|
||||
# > "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] seen_by lists the players whose existing sight sees each token, ascending
|
||||
[OK] the GM never gets vision polygons or explored cells
|
||||
[OK] the set of tokens follows the visibility rule
|
||||
[FAILED] a player frame carries no GM-only field and no wall-like key
|
||||
@@ -2798,7 +2810,7 @@ ad: exit=1 expected_failed=1 ok
|
||||
[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
|
||||
Error: execution of an external program failed: '/tmp/fffmut.Gg6RRD/ae/w/tests/tviews'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/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
|
||||
|
||||
@@ -2824,14 +2836,14 @@ 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.Gg6RRD/af/w/tests/tvision'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/af/w/tests/tvision'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] moving adds cells and never forgets the old ones
|
||||
|
||||
af: exit=1 expected_failed=1 ok
|
||||
## ag: the chunk row stride is dropped
|
||||
# diff server/explored.nim -> mutated copy:
|
||||
# 56c56
|
||||
# 97c97
|
||||
# < ((cy mod ChunkCells) * ChunkCells) + (cx mod ChunkCells)
|
||||
# ---
|
||||
# > (cy mod ChunkCells) + (cx mod ChunkCells)
|
||||
@@ -2846,14 +2858,14 @@ 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.Gg6RRD/ag/w/tests/texplored'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/ag/w/tests/texplored'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] the chunk bitmap layout is pinned
|
||||
|
||||
ag: exit=1 expected_failed=1 ok
|
||||
## ah: a cell coordinate is used as a chunk coordinate
|
||||
# diff server/explored.nim -> mutated copy:
|
||||
# 46c46
|
||||
# 87c87
|
||||
# < cell div ChunkCells
|
||||
# ---
|
||||
# > cell
|
||||
@@ -2870,14 +2882,14 @@ 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.Gg6RRD/ah/w/tests/texplored'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/ah/w/tests/texplored'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] one chunk covers 64x64 cells
|
||||
|
||||
ah: exit=1 expected_failed=1 ok
|
||||
## ai: restore forgets the decoded cells
|
||||
# diff server/explored.nim -> mutated copy:
|
||||
# 146c146
|
||||
# 187c187
|
||||
# < result.mgetOrPut(pid, PlayerVision()).explored.incl idx
|
||||
# ---
|
||||
# > discard
|
||||
@@ -2900,14 +2912,14 @@ 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.Gg6RRD/ai/w/tests/texplored'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/ai/w/tests/texplored'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] restore: the stored cells come back exactly
|
||||
|
||||
ai: exit=1 expected_failed=1 ok
|
||||
## aj: explored chunks keyed by scene, not player
|
||||
# diff server/explored.nim -> mutated copy:
|
||||
# 127c127
|
||||
# 168c168
|
||||
# < db.exec(ps, c.playerId, sceneId, c.cx, c.cy, c.bits)
|
||||
# ---
|
||||
# > db.exec(ps, sceneId, sceneId, c.cx, c.cy, c.bits)
|
||||
@@ -2930,14 +2942,14 @@ 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.Gg6RRD/aj/w/tests/texplored'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/aj/w/tests/texplored'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] restore: two players' explored never mix
|
||||
|
||||
aj: exit=1 expected_failed=1 ok
|
||||
## ak: a chunk rewrite is ignored
|
||||
# diff server/explored.nim -> mutated copy:
|
||||
# 116c116
|
||||
# 157c157
|
||||
# < ON CONFLICT(player_id, scene_id, cx, cy) DO UPDATE SET bits = excluded.bits"""
|
||||
# ---
|
||||
# > ON CONFLICT(player_id, scene_id, cx, cy) DO NOTHING"""
|
||||
@@ -2952,14 +2964,14 @@ 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.Gg6RRD/ak/w/tests/texplored'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/ak/w/tests/texplored'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] a second write to the same chunk replaces the bitmap
|
||||
|
||||
ak: exit=1 expected_failed=1 ok
|
||||
## al: dirty chunks keyed by row only
|
||||
# diff server/explored.nim -> mutated copy:
|
||||
# 105c105
|
||||
# 146c146
|
||||
# < let key = ccy * sc.chunkCols + ccx
|
||||
# ---
|
||||
# > let key = ccy
|
||||
@@ -2974,19 +2986,20 @@ 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.Gg6RRD/al/w/tests/texplored'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/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:
|
||||
# 284c284
|
||||
# 297c297
|
||||
# < propsOwner: (if mine: objectOf(t.props[pbOwner]) else: nil),
|
||||
# ---
|
||||
# > propsOwner: t.props[pbOwner],
|
||||
[OK] every token, in token order, with controller and both names
|
||||
[OK] a GM-controlled token shows controller null
|
||||
[OK] seen_by lists the players whose existing sight sees each token, ascending
|
||||
[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
|
||||
@@ -3020,7 +3033,7 @@ al: exit=1 expected_failed=1 ok
|
||||
[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
|
||||
Error: execution of an external program failed: '/tmp/fffmut.Gg6RRD/am/w/tests/tviews'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/am/w/tests/tviews'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] a player who sees the token gets the public bucket only
|
||||
|
||||
@@ -3097,7 +3110,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.Gg6RRD/an/w/tests/tmoverules'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/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
|
||||
|
||||
@@ -3174,7 +3187,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.Gg6RRD/ao/w/tests/tmoverules'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/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
|
||||
@@ -3202,7 +3215,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.Gg6RRD/ap/w/tests/tprops'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/ap/w/tests/tprops'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] 64 keys per bucket, the 65th is refused and nothing changes
|
||||
|
||||
@@ -3279,7 +3292,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.Gg6RRD/aq/w/tests/tmoverules'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/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
|
||||
|
||||
@@ -3354,7 +3367,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.Gg6RRD/ar/w/tests/tmoverules'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/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
|
||||
|
||||
@@ -3431,7 +3444,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.Gg6RRD/as/w/tests/tmoverules'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/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
|
||||
|
||||
@@ -3460,7 +3473,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.Gg6RRD/at/w/tests/tprops'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/at/w/tests/tprops'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] 64 keys per bucket, the 65th is refused and nothing changes
|
||||
|
||||
@@ -3537,7 +3550,7 @@ 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.Gg6RRD/au/w/tests/tmoverules'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/au/w/tests/tmoverules'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] a grow that already fits does not move the token
|
||||
|
||||
@@ -3575,7 +3588,7 @@ au: exit=1 expected_failed=1 ok
|
||||
[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.Gg6RRD/av/w/tests/tcharacters'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/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
|
||||
@@ -3614,7 +3627,7 @@ av: exit=1 expected_failed=2 ok
|
||||
[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.Gg6RRD/aw/w/tests/tcharacters'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/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
|
||||
@@ -3653,7 +3666,7 @@ aw: exit=1 expected_failed=2 ok
|
||||
[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.Gg6RRD/ax/w/tests/tcharacters'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/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
|
||||
|
||||
@@ -3691,7 +3704,7 @@ ax: exit=1 expected_failed=1 ok
|
||||
[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.Gg6RRD/ay/w/tests/tcharacters'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/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)
|
||||
|
||||
@@ -3729,7 +3742,7 @@ ay: exit=1 expected_failed=1 ok
|
||||
[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.Gg6RRD/az/w/tests/tcharacters'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/az/w/tests/tcharacters'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] a character still figured by a token is in use (6.5)
|
||||
|
||||
@@ -3767,7 +3780,7 @@ az: exit=1 expected_failed=1 ok
|
||||
[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.Gg6RRD/b1/w/tests/tcharacters'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/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
|
||||
@@ -3830,7 +3843,7 @@ b1: exit=1 expected_failed=1 ok
|
||||
[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.Gg6RRD/b2/w/tests/tcharacters'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/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
|
||||
@@ -3838,12 +3851,13 @@ Error: execution of an external program failed: '/tmp/fffmut.Gg6RRD/b2/w/tests/t
|
||||
b2: exit=1 expected_failed=2 ok
|
||||
## b3: cprops carries the character owner bucket
|
||||
# diff server/views.nim -> mutated copy:
|
||||
# 287c287
|
||||
# 300c300
|
||||
# < 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] seen_by lists the players whose existing sight sees each token, ascending
|
||||
[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
|
||||
@@ -3879,19 +3893,20 @@ b2: exit=1 expected_failed=2 ok
|
||||
[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
|
||||
Error: execution of an external program failed: '/tmp/fffmut.Gg6RRD/b3/w/tests/tviews'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/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:
|
||||
# 290c290
|
||||
# 303c303
|
||||
# < 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] seen_by lists the players whose existing sight sees each token, ascending
|
||||
[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
|
||||
@@ -3925,15 +3940,15 @@ b3: exit=1 expected_failed=1 ok
|
||||
[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
|
||||
Error: execution of an external program failed: '/tmp/fffmut.Gg6RRD/b4/w/tests/tviews'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/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
|
||||
## c1: the tile gate ignores the explored set
|
||||
# diff server/tiles.nim -> mutated copy:
|
||||
# 123c123
|
||||
# < if sc.cellIndex(cx, cy) in explored: return true
|
||||
# 139c139
|
||||
# < if cy * sc.cols + cx in explored: return true
|
||||
# ---
|
||||
# > if true: return true
|
||||
[OK] canonical numbers: digits only, bounded, no leading zero
|
||||
@@ -3948,7 +3963,7 @@ b4: exit=1 expected_failed=1 ok
|
||||
[FAILED] a tile is allowed when any overlapping cell is explored
|
||||
[FAILED] the explored overlap respects the scene border
|
||||
[OK] a request built from one record stays internally consistent when the scene is swapped
|
||||
Error: execution of an external program failed: '/tmp/fffmut.Gg6RRD/c1/w/tests/ttiles'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/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
|
||||
@@ -3956,10 +3971,10 @@ Error: execution of an external program failed: '/tmp/fffmut.Gg6RRD/c1/w/tests/t
|
||||
c1: exit=1 expected_failed=2 ok
|
||||
## c2: the tile gate needs every overlapping cell
|
||||
# diff server/tiles.nim -> mutated copy:
|
||||
# 123c123
|
||||
# < if sc.cellIndex(cx, cy) in explored: return true
|
||||
# 139c139
|
||||
# < if cy * sc.cols + cx in explored: return true
|
||||
# ---
|
||||
# > if sc.cellIndex(cx, cy) notin explored: return false
|
||||
# > if cy * sc.cols + cx notin explored: return false
|
||||
[OK] canonical numbers: digits only, bounded, no leading zero
|
||||
[OK] a canonical URL parses to its three integers
|
||||
[OK] leading zero tile coordinates are malformed
|
||||
@@ -3972,7 +3987,7 @@ c1: exit=1 expected_failed=2 ok
|
||||
[FAILED] a tile is allowed when any overlapping cell is explored
|
||||
[FAILED] the explored overlap respects the scene border
|
||||
[FAILED] a request built from one record stays internally consistent when the scene is swapped
|
||||
Error: execution of an external program failed: '/tmp/fffmut.Gg6RRD/c2/w/tests/ttiles'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/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
|
||||
@@ -3980,7 +3995,7 @@ Error: execution of an external program failed: '/tmp/fffmut.Gg6RRD/c2/w/tests/t
|
||||
c2: exit=1 expected_failed=2 ok
|
||||
## c3: an out-of-grid tile coordinate is accepted
|
||||
# diff server/tiles.nim -> mutated copy:
|
||||
# 77c77
|
||||
# 93c93
|
||||
# < x >= 0 and y >= 0 and x < tileCols(sc) and y < tileRows(sc)
|
||||
# ---
|
||||
# > x >= 0 and y >= 0
|
||||
@@ -3996,14 +4011,14 @@ c2: exit=1 expected_failed=2 ok
|
||||
[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
|
||||
Error: execution of an external program failed: '/tmp/fffmut.Gg6RRD/c3/w/tests/ttiles'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/c3/w/tests/ttiles'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] a tile coordinate outside the grid is out of range
|
||||
|
||||
c3: exit=1 expected_failed=1 ok
|
||||
## c4: a leading-zero tile coordinate is canonical
|
||||
# diff server/tiles.nim -> mutated copy:
|
||||
# 55c55
|
||||
# 71c71
|
||||
# < if raw[0] == '0' and raw.len > 1: return false
|
||||
# ---
|
||||
# > discard
|
||||
@@ -4019,7 +4034,7 @@ c3: exit=1 expected_failed=1 ok
|
||||
[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
|
||||
Error: execution of an external program failed: '/tmp/fffmut.Gg6RRD/c4/w/tests/ttiles'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.hyr7SV/c4/w/tests/ttiles'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] leading zero tile coordinates are malformed
|
||||
|
||||
|
||||
Reference in New Issue
Block a user