results: rerun the gates on the rebased tree (#36)

devbox run test: Nim suites and 149 node tests pass (the 16 registered group
evidence tests included). devbox run mutation: control and all 78 mutations pass,
including s1-s7 and the new e4/e5/f1-f3 from #32/#33/#35.

Refs #36.
This commit is contained in:
2026-11-20 22:13:04 +01:00
parent 1f11779658
commit a11782f00d
3 changed files with 273 additions and 96 deletions
+2 -2
View File
@@ -600,8 +600,8 @@ from the prototype, what was missing, what the M3 build added, and the tools it
**Rule:** DESIGN §13 (milestones and their accept criteria). **Rule:** DESIGN §13 (milestones and their accept criteria).
- **M3 accept result.** Measured 2026-11-20: `devbox run test` exit 0 (Nim suite all pass; 142 Node - **M3 accept result.** Measured 2026-11-20: `devbox run test` exit 0 (Nim suite all pass; 149 Node
harness tests) and `devbox run mutation` exit 0 (control passes, all 73 mutations fail at least one harness tests) and `devbox run mutation` exit 0 (control passes, all 78 mutations fail at least one
expected test). The nine groups map to their proving tests in `tools/groups.mjs`. Evidence is expected test). The nine groups map to their proving tests in `tools/groups.mjs`. Evidence is
executable, not a title substring (#36): `tools/groups.test.mjs` pins each test's exact title, a executable, not a title substring (#36): `tools/groups.test.mjs` pins each test's exact title, a
minimum assertion count and the calls its body must keep, and the last step of `devbox run test` minimum assertion count and the calls its body must keep, and the last step of `devbox run test`
+243 -89
View File
@@ -91,6 +91,8 @@
[OK] every impossible wall row is rejected by the database [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 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] 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
[OK] authoringTransaction rolls back a Defect and restores NORMAL
[OK] rebuilds nodes and string payloads [OK] rebuilds nodes and string payloads
[OK] mutating the source leaves the copy alone [OK] mutating the source leaves the copy alone
[OK] absent (nil) stays nil and null stays null [OK] absent (nil) stays nil and null stays null
@@ -239,6 +241,9 @@
[OK] an existing key can still be overwritten at the cap [OK] an existing key can still be overwritten at the cap
[OK] a key is 1..64 code points, trimmed, with no control characters [OK] a key is 1..64 code points, trimmed, with no control characters
[OK] a value is at most 8 KB of serialized JSON [OK] a value is at most 8 KB of serialized JSON
[OK] size: exactly 8 KB is accepted, one byte over is refused
[OK] keys: 64 per object is accepted, 65 is refused, and it is per object
[OK] depth: 8 containers is accepted, 9 is refused
[OK] absent and null mean three empty buckets [OK] absent and null mean three empty buckets
[OK] the three bucket names are the only ones accepted [OK] the three bucket names are the only ones accepted
[OK] the caps are enforced while parsing [OK] the caps are enforced while parsing
@@ -439,7 +444,7 @@ control: exit=0 expected_failed=0 ok
[FAILED] prototype scene, all tokens, doors closed and opened [FAILED] prototype scene, all tokens, doors closed and opened
[FAILED] random wall fields, cell 32 and 25 [FAILED] random wall fields, cell 32 and 25
[OK] negative control: the oracle notices a missing and an invented cell [OK] negative control: the oracle notices a missing and an invented cell
Error: execution of an external program failed: '/tmp/fffmut.cA4aoJ/a/w/tests/tgeometry' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/a/w/tests/tgeometry'
# test exit=1; expected tests failed: 1 # test exit=1; expected tests failed: 1
[FAILED] rays nudged past a corner: area just beyond a wall end is visible [FAILED] rays nudged past a corner: area just beyond a wall end is visible
@@ -486,7 +491,7 @@ a: exit=1 expected_failed=1 ok
[OK] prototype scene, all tokens, doors closed and opened [OK] prototype scene, all tokens, doors closed and opened
[OK] random wall fields, cell 32 and 25 [OK] random wall fields, cell 32 and 25
[OK] negative control: the oracle notices a missing and an invented cell [OK] negative control: the oracle notices a missing and an invented cell
Error: execution of an external program failed: '/tmp/fffmut.cA4aoJ/b/w/tests/tgeometry' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/b/w/tests/tgeometry'
# test exit=1; expected tests failed: 2 # test exit=1; expected tests failed: 2
[FAILED] '<' apex: ray through the shared tip must not leak [FAILED] '<' apex: ray through the shared tip must not leak
[FAILED] every segment endpoint is a polygon vertex (lower and upper end inclusive) [FAILED] every segment endpoint is a polygon vertex (lower and upper end inclusive)
@@ -534,7 +539,7 @@ b: exit=1 expected_failed=2 ok
[FAILED] prototype scene, all tokens, doors closed and opened [FAILED] prototype scene, all tokens, doors closed and opened
[OK] random wall fields, cell 32 and 25 [OK] random wall fields, cell 32 and 25
[OK] negative control: the oracle notices a missing and an invented cell [OK] negative control: the oracle notices a missing and an invented cell
Error: execution of an external program failed: '/tmp/fffmut.cA4aoJ/c/w/tests/tgeometry' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/c/w/tests/tgeometry'
# test exit=1; expected tests failed: 2 # test exit=1; expected tests failed: 2
[FAILED] '<' apex: ray through the shared tip must not leak [FAILED] '<' apex: ray through the shared tip must not leak
[FAILED] every segment endpoint is a polygon vertex (lower and upper end inclusive) [FAILED] every segment endpoint is a polygon vertex (lower and upper end inclusive)
@@ -582,7 +587,7 @@ c: exit=1 expected_failed=2 ok
[OK] prototype scene, all tokens, doors closed and opened [OK] prototype scene, all tokens, doors closed and opened
[OK] random wall fields, cell 32 and 25 [OK] random wall fields, cell 32 and 25
[OK] negative control: the oracle notices a missing and an invented cell [OK] negative control: the oracle notices a missing and an invented cell
Error: execution of an external program failed: '/tmp/fffmut.cA4aoJ/d1/w/tests/tgeometry' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/d1/w/tests/tgeometry'
# test exit=1; expected tests failed: 1 # test exit=1; expected tests failed: 1
[FAILED] shared vertex: both arms required (mutation d1/d2) [FAILED] shared vertex: both arms required (mutation d1/d2)
@@ -629,14 +634,14 @@ d1: exit=1 expected_failed=1 ok
[OK] prototype scene, all tokens, doors closed and opened [OK] prototype scene, all tokens, doors closed and opened
[OK] random wall fields, cell 32 and 25 [OK] random wall fields, cell 32 and 25
[OK] negative control: the oracle notices a missing and an invented cell [OK] negative control: the oracle notices a missing and an invented cell
Error: execution of an external program failed: '/tmp/fffmut.cA4aoJ/d2/w/tests/tgeometry' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/d2/w/tests/tgeometry'
# test exit=1; expected tests failed: 1 # test exit=1; expected tests failed: 1
[FAILED] shared vertex: both arms required (mutation d1/d2) [FAILED] shared vertex: both arms required (mutation d1/d2)
d2: exit=1 expected_failed=1 ok d2: exit=1 expected_failed=1 ok
## d3: scene.set accepts a patch with no field ## d3: scene.set accepts a patch with no field
# diff server/world.nim -> mutated copy: # diff server/world.nim -> mutated copy:
# 349c349 # 351c351
# < if not any: return none(ScenePatch) # < if not any: return none(ScenePatch)
# --- # ---
# > discard # > discard
@@ -670,7 +675,7 @@ d2: exit=1 expected_failed=1 ok
[FAILED] one field is enough; a patch with none is invalid [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 [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 [OK] field shapes: text by the 6.5 rule, numbers finite, extra an object
Error: execution of an external program failed: '/tmp/fffmut.cA4aoJ/d3/w/tests/tworld' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/d3/w/tests/tworld'
# test exit=1; expected tests failed: 1 # test exit=1; expected tests failed: 1
[FAILED] one field is enough; a patch with none is invalid [FAILED] one field is enough; a patch with none is invalid
@@ -715,7 +720,7 @@ d3: exit=1 expected_failed=1 ok
[FAILED] prototype scene, all tokens, doors closed and opened [FAILED] prototype scene, all tokens, doors closed and opened
[FAILED] random wall fields, cell 32 and 25 [FAILED] random wall fields, cell 32 and 25
[FAILED] negative control: the oracle notices a missing and an invented cell [FAILED] negative control: the oracle notices a missing and an invented cell
Error: execution of an external program failed: '/tmp/fffmut.cA4aoJ/e/w/tests/tgeometry' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/e/w/tests/tgeometry'
# test exit=1; expected tests failed: 4 # test exit=1; expected tests failed: 4
[FAILED] random visibility polygons: identical cell lists [FAILED] random visibility polygons: identical cell lists
[FAILED] random simple polygons (star-shaped, concave): identical cell lists [FAILED] random simple polygons (star-shaped, concave): identical cell lists
@@ -756,7 +761,7 @@ e: exit=1 expected_failed=4 ok
[FAILED] a character rename follows the snapshots of everyone who met it [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] player.remove hands the player's characters to the GM (DESIGN 3.2)
[OK] a character still figured by a token is in use (6.5) [OK] a character still figured by a token is in use (6.5)
Error: execution of an external program failed: '/tmp/fffmut.cA4aoJ/e1/w/tests/tcharacters' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/e1/w/tests/tcharacters'
# test exit=1; expected tests failed: 1 # test exit=1; expected tests failed: 1
[FAILED] a link change moves the snapshot to the character's names, link and knowledge (#29) [FAILED] a link change moves the snapshot to the character's names, link and knowledge (#29)
@@ -794,7 +799,7 @@ e1: exit=1 expected_failed=1 ok
[FAILED] a character rename follows the snapshots of everyone who met it [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] player.remove hands the player's characters to the GM (DESIGN 3.2)
[OK] a character still figured by a token is in use (6.5) [OK] a character still figured by a token is in use (6.5)
Error: execution of an external program failed: '/tmp/fffmut.cA4aoJ/e2/w/tests/tcharacters' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/e2/w/tests/tcharacters'
# test exit=1; expected tests failed: 1 # test exit=1; expected tests failed: 1
[FAILED] a character rename rewrites the live snapshots and the rows alike (#30, #27) [FAILED] a character rename rewrites the live snapshots and the rows alike (#30, #27)
@@ -832,11 +837,154 @@ e2: exit=1 expected_failed=1 ok
[OK] a character rename follows the snapshots of everyone who met it [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] player.remove hands the player's characters to the GM (DESIGN 3.2)
[OK] a character still figured by a token is in use (6.5) [OK] a character still figured by a token is in use (6.5)
Error: execution of an external program failed: '/tmp/fffmut.cA4aoJ/e3/w/tests/tcharacters' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/e3/w/tests/tcharacters'
# test exit=1; expected tests failed: 1 # test exit=1; expected tests failed: 1
[FAILED] linking through a patch hands the names over (#29) [FAILED] linking through a patch hands the names over (#29)
e3: exit=1 expected_failed=1 ok e3: exit=1 expected_failed=1 ok
## e4: a Defect skips the ordinary rollback
# diff server/db.nim -> mutated copy:
# 300c300
# < except Exception:
# ---
# > except CatchableError:
[OK] creates the file, sets WAL, synchronous NORMAL, busy_timeout, foreign_keys
[OK] fresh DB: applies every step, sets user_version and records history
[OK] re-open is a no-op: no step applied, history and timestamps untouched
[OK] history and user_version must agree
[OK] a DB from a newer server is refused, not downgraded
[OK] a failing step rolls back: no DDL, no history, version unchanged
[OK] a slice-2 DB migrates on: the scene is seeded, players and keys survive
[OK] a schema-4 DB migrates on: explored_chunk and entity_status appear, the world survives
[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/.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.3hC0a0/e4/w/tests/tdb'
# test exit=1; expected tests failed: 1
[FAILED] withTransaction rolls back a Defect and leaves the connection usable
e4: exit=1 expected_failed=1 ok
## e5: a Defect skips the authoring rollback
# diff server/world.nim -> mutated copy:
# 442c442
# < except Exception:
# ---
# > except CatchableError:
[OK] creates the file, sets WAL, synchronous NORMAL, busy_timeout, foreign_keys
[OK] fresh DB: applies every step, sets user_version and records history
[OK] re-open is a no-op: no step applied, history and timestamps untouched
[OK] history and user_version must agree
[OK] a DB from a newer server is refused, not downgraded
[OK] a failing step rolls back: no DDL, no history, version unchanged
[OK] a slice-2 DB migrates on: the scene is seeded, players and keys survive
[OK] a schema-4 DB migrates on: explored_chunk and entity_status appear, the world survives
[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
[OK] withTransaction rolls back a Defect and leaves the connection usable
/home/davide/Projects/GDR/FFF_vtt/.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.3hC0a0/e5/w/tests/tdb'
# test exit=1; expected tests failed: 1
[FAILED] authoringTransaction rolls back a Defect and restores NORMAL
e5: exit=1 expected_failed=1 ok
## f1: the opaque size cap is not enforced
# diff server/props.nim -> mutated copy:
# 88c88
# < if valueBytes(node) > MaxOpaqueObjectBytes: return olSize
# ---
# > if valueBytes(node) > MaxOpaqueObjectBytes + 100000: return olSize
[OK] 64 keys per bucket, the 65th is refused and nothing changes
[OK] an existing key can still be overwritten at the cap
[OK] a key is 1..64 code points, trimmed, with no control characters
[OK] a value is at most 8 KB of serialized JSON
[FAILED] size: exactly 8 KB is accepted, one byte over is refused
[OK] keys: 64 per object is accepted, 65 is refused, and it is per object
[OK] depth: 8 containers is accepted, 9 is refused
[OK] absent and null mean three empty buckets
[OK] the three bucket names are the only ones accepted
[OK] the caps are enforced while parsing
[OK] with no entries every key is accepted in every bucket
[OK] a registered key is enforced: kind and bucket
[OK] a schema with no bucket accepts the key anywhere
[OK] unsetting an absent key is allowed and reports it did nothing
[OK] buckets are independent: the same key may live in all three
[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.3hC0a0/f1/w/tests/tprops'
# test exit=1; expected tests failed: 1
[FAILED] size: exactly 8 KB is accepted, one byte over is refused
f1: exit=1 expected_failed=1 ok
## f2: the opaque key cap is not enforced
# diff server/props.nim -> mutated copy:
# 93c93
# < if n.len > MaxOpaqueObjectKeys: return olKeys
# ---
# > if false: return olKeys
[OK] 64 keys per bucket, the 65th is refused and nothing changes
[OK] an existing key can still be overwritten at the cap
[OK] a key is 1..64 code points, trimmed, with no control characters
[OK] a value is at most 8 KB of serialized JSON
[OK] size: exactly 8 KB is accepted, one byte over is refused
[FAILED] keys: 64 per object is accepted, 65 is refused, and it is per object
[OK] depth: 8 containers is accepted, 9 is refused
[OK] absent and null mean three empty buckets
[OK] the three bucket names are the only ones accepted
[OK] the caps are enforced while parsing
[OK] with no entries every key is accepted in every bucket
[OK] a registered key is enforced: kind and bucket
[OK] a schema with no bucket accepts the key anywhere
[OK] unsetting an absent key is allowed and reports it did nothing
[OK] buckets are independent: the same key may live in all three
[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.3hC0a0/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
f2: exit=1 expected_failed=1 ok
## f3: the opaque depth cap is not enforced
# diff server/props.nim -> mutated copy:
# 92c92
# < if depth > MaxOpaqueObjectDepth: return olDepth
# ---
# > if false: return olDepth
# 98c98
# < if depth > MaxOpaqueObjectDepth: return olDepth
# ---
# > if false: return olDepth
[OK] 64 keys per bucket, the 65th is refused and nothing changes
[OK] an existing key can still be overwritten at the cap
[OK] a key is 1..64 code points, trimmed, with no control characters
[OK] a value is at most 8 KB of serialized JSON
[OK] size: exactly 8 KB is accepted, one byte over is refused
[OK] keys: 64 per object is accepted, 65 is refused, and it is per object
[FAILED] depth: 8 containers is accepted, 9 is refused
[OK] absent and null mean three empty buckets
[OK] the three bucket names are the only ones accepted
[OK] the caps are enforced while parsing
[OK] with no entries every key is accepted in every bucket
[OK] a registered key is enforced: kind and bucket
[OK] a schema with no bucket accepts the key anywhere
[OK] unsetting an absent key is allowed and reports it did nothing
[OK] buckets are independent: the same key may live in all three
[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.3hC0a0/f3/w/tests/tprops'
# test exit=1; expected tests failed: 1
[FAILED] depth: 8 containers is accepted, 9 is refused
f3: exit=1 expected_failed=1 ok
## f: escape rule without the crossing check ## f: escape rule without the crossing check
# diff server/moverules.nim -> mutated copy: # diff server/moverules.nim -> mutated copy:
# 147c147 # 147c147
@@ -909,7 +1057,7 @@ e3: exit=1 expected_failed=1 ok
[OK] a GM-sourced lock refuses player moves without touching the walls entries [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] 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) [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.cA4aoJ/f/w/tests/tmoverules' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/f/w/tests/tmoverules'
# test exit=1; expected tests failed: 1 # test exit=1; expected tests failed: 1
[FAILED] overlapping 10 px off: may leave away from the wall, not cross it, not stay overlapped [FAILED] overlapping 10 px off: may leave away from the wall, not cross it, not stay overlapped
@@ -986,7 +1134,7 @@ f: exit=1 expected_failed=1 ok
[OK] a GM-sourced lock refuses player moves without touching the walls entries [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] 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) [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.cA4aoJ/g/w/tests/tmoverules' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/g/w/tests/tmoverules'
# test exit=1; expected tests failed: 1 # test exit=1; expected tests failed: 1
[FAILED] GM: ignores walls, step cap and the lock; bounds still apply [FAILED] GM: ignores walls, step cap and the lock; bounds still apply
@@ -1063,7 +1211,7 @@ g: exit=1 expected_failed=1 ok
[OK] a GM-sourced lock refuses player moves without touching the walls entries [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] 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) [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.cA4aoJ/h/w/tests/tmoverules' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/h/w/tests/tmoverules'
# test exit=1; expected tests failed: 2 # test exit=1; expected tests failed: 2
[FAILED] corner clipping: path passes the wall end closer than r though both ends are clear [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 [FAILED] leg of the path inside r of a non-start wall blocks even if start and end are clear
@@ -1139,13 +1287,13 @@ h: exit=1 expected_failed=2 ok
[OK] a GM-sourced lock refuses player moves without touching the walls entries [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] 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) [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.cA4aoJ/i/w/tests/tmoverules' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/i/w/tests/tmoverules'
[FAILED] P1: probes longer than the cap get one fixed nack regardless of the scene [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] 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] 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] P4: probing cannot unlock or move a locked token
[OK] doors beyond the bound: opening or closing them changes no reply [OK] doors beyond the bound: opening or closing them changes no reply
Error: execution of an external program failed: '/tmp/fffmut.cA4aoJ/i/w/tests/tprobing' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/i/w/tests/tprobing'
# test exit=1; expected tests failed: 2 # test exit=1; expected tests failed: 2
[FAILED] step cap = scene default without vision, token vision radius with it [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 [FAILED] P1: probes longer than the cap get one fixed nack regardless of the scene
@@ -1223,7 +1371,7 @@ i: exit=1 expected_failed=2 ok
[OK] a GM-sourced lock refuses player moves without touching the walls entries [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 [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) [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.cA4aoJ/j/w/tests/tmoverules' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/j/w/tests/tmoverules'
# test exit=1; expected tests failed: 2 # 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] 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 [FAILED] Q14: a door closed 10 px from a token: pushed to its side, clear by r, not blocked; GM-owned too
@@ -1301,7 +1449,7 @@ j: exit=1 expected_failed=2 ok
[OK] a GM-sourced lock refuses player moves without touching the walls entries [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] 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) [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.cA4aoJ/k/w/tests/tmoverules' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/k/w/tests/tmoverules'
# test exit=1; expected tests failed: 2 # 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: 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 [FAILED] KEEP: wall update away from one of two overlapping walls keeps blocked
@@ -1377,7 +1525,7 @@ k: exit=1 expected_failed=2 ok
[OK] a GM-sourced lock refuses player moves without touching the walls entries [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] 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) [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.cA4aoJ/l/w/tests/tmoverules' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/l/w/tests/tmoverules'
# test exit=1; expected tests failed: 3 # test exit=1; expected tests failed: 3
[FAILED] GM moves a stuck token clear -> free; to another wall-overlapping spot -> still blocked [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 [FAILED] GM drops a token inside a wall -> blocked; a door counts only while closed
@@ -1456,7 +1604,7 @@ l: exit=1 expected_failed=3 ok
[OK] a GM-sourced lock refuses player moves without touching the walls entries [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] 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) [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.cA4aoJ/m/w/tests/tmoverules' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/m/w/tests/tmoverules'
# test exit=1; expected tests failed: 3 # 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] 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 [FAILED] push: centre on the door line -> side of the previous position; no history -> left of a->b
@@ -1535,7 +1683,7 @@ m: exit=1 expected_failed=3 ok
[OK] a GM-sourced lock refuses player moves without touching the walls entries [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] 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) [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.cA4aoJ/n/w/tests/tmoverules' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/n/w/tests/tmoverules'
# test exit=1; expected tests failed: 2 # 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: 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 [FAILED] push: both sides invalid -> squeezed in place; door open -> still squeezed (KEEP); GM can move it
@@ -1617,14 +1765,14 @@ n: exit=1 expected_failed=2 ok
[OK] a GM-sourced lock refuses player moves without touching the walls entries [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] 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) [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.cA4aoJ/o/w/tests/tmoverules' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/o/w/tests/tmoverules'
# test exit=1; expected tests failed: 1 # 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 [FAILED] push: centre on the door line -> side of the previous position; no history -> left of a->b
o: exit=1 expected_failed=1 ok o: exit=1 expected_failed=1 ok
## p: token bucket never refills ## p: token bucket never refills
# diff server/protocol.nim -> mutated copy: # diff server/protocol.nim -> mutated copy:
# 275d274 # 278d277
# < r.tokens = min(r.burst, r.tokens + float(elapsed) * r.perSecond / 1000.0) # < r.tokens = min(r.burst, r.tokens + float(elapsed) * r.perSecond / 1000.0)
[OK] a well-formed intent parses and keeps its reqId and node [OK] a well-formed intent parses and keeps its reqId and node
[OK] reqId boundaries: 0 and 2^31-1 pass, 2^31 and -1 are malformed [OK] reqId boundaries: 0 and 2^31-1 pass, 2^31 and -1 are malformed
@@ -1651,14 +1799,14 @@ o: exit=1 expected_failed=1 ok
[OK] one wall carries the typed record plus the derived kind in the proto-2 shape [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] `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 [OK] the fan-out frames carry no n: the sender stamps it per recipient
Error: execution of an external program failed: '/tmp/fffmut.cA4aoJ/p/w/tests/tprotocol' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/p/w/tests/tprotocol'
# test exit=1; expected tests failed: 1 # test exit=1; expected tests failed: 1
[FAILED] refill is continuous at 30/s, capped at the burst [FAILED] refill is continuous at 30/s, capped at the burst
p: exit=1 expected_failed=1 ok p: exit=1 expected_failed=1 ok
## q: reqId upper bound dropped ## q: reqId upper bound dropped
# diff server/protocol.nim -> mutated copy: # diff server/protocol.nim -> mutated copy:
# 141c141 # 144c144
# < if reqId < 0 or reqId > MaxReqId: return # < if reqId < 0 or reqId > MaxReqId: return
# --- # ---
# > if reqId < 0: return # > if reqId < 0: return
@@ -1687,14 +1835,14 @@ p: exit=1 expected_failed=1 ok
[OK] one wall carries the typed record plus the derived kind in the proto-2 shape [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] `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 [OK] the fan-out frames carry no n: the sender stamps it per recipient
Error: execution of an external program failed: '/tmp/fffmut.cA4aoJ/q/w/tests/tprotocol' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/q/w/tests/tprotocol'
# test exit=1; expected tests failed: 1 # test exit=1; expected tests failed: 1
[FAILED] reqId boundaries: 0 and 2^31-1 pass, 2^31 and -1 are malformed [FAILED] reqId boundaries: 0 and 2^31-1 pass, 2^31 and -1 are malformed
q: exit=1 expected_failed=1 ok q: exit=1 expected_failed=1 ok
## r: malformed flood never fires ## r: malformed flood never fires
# diff server/protocol.nim -> mutated copy: # diff server/protocol.nim -> mutated copy:
# 296c296 # 299c299
# < result = f.count >= MalformedFloodLimit and (nowMs - oldest) <= MalformedFloodWindowMs # < result = f.count >= MalformedFloodLimit and (nowMs - oldest) <= MalformedFloodWindowMs
# --- # ---
# > result = f.count > MalformedFloodLimit and (nowMs - oldest) <= MalformedFloodWindowMs # > result = f.count > MalformedFloodLimit and (nowMs - oldest) <= MalformedFloodWindowMs
@@ -1723,7 +1871,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] 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] `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 [OK] the fan-out frames carry no n: the sender stamps it per recipient
Error: execution of an external program failed: '/tmp/fffmut.cA4aoJ/r/w/tests/tprotocol' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/r/w/tests/tprotocol'
# test exit=1; expected tests failed: 1 # test exit=1; expected tests failed: 1
[FAILED] nine malformed frames are tolerated, the tenth closes [FAILED] nine malformed frames are tolerated, the tenth closes
@@ -1749,14 +1897,14 @@ r: exit=1 expected_failed=1 ok
[OK] the malformed window is per connection and fires on the tenth frame [OK] the malformed window is per connection and fires on the tenth frame
[OK] a Pong is recorded on the right connection [OK] a Pong is recorded on the right connection
[OK] a snapshot hands out every live connection without holding the lock afterwards [OK] a snapshot hands out every live connection without holding the lock afterwards
Error: execution of an external program failed: '/tmp/fffmut.cA4aoJ/s/w/tests/tconns' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/s/w/tests/tconns'
# test exit=1; expected tests failed: 1 # test exit=1; expected tests failed: 1
[FAILED] the frame counter starts at 1 on each connection and is never global [FAILED] the frame counter starts at 1 on each connection and is never global
s: exit=1 expected_failed=1 ok s: exit=1 expected_failed=1 ok
## t: wall removal renumbers next_wall_id ## t: wall removal renumbers next_wall_id
# diff server/world.nim -> mutated copy: # diff server/world.nim -> mutated copy:
# 521c521 # 528c528
# < sc.walls.delete idx.get # < sc.walls.delete idx.get
# --- # ---
# > sc.walls.delete idx.get; sc.nextWallId = sc.walls.len + 1 # > sc.walls.delete idx.get; sc.nextWallId = sc.walls.len + 1
@@ -1794,14 +1942,14 @@ s: exit=1 expected_failed=1 ok
[OK] one field is enough; a patch with none is invalid [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] 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 [OK] field shapes: text by the 6.5 rule, numbers finite, extra an object
Error: execution of an external program failed: '/tmp/fffmut.cA4aoJ/t/w/tests/tworld' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/t/w/tests/tworld'
# test exit=1; expected tests failed: 1 # test exit=1; expected tests failed: 1
[FAILED] a removal never renumbers and the next add never reuses the id [FAILED] a removal never renumbers and the next add never reuses the id
t: exit=1 expected_failed=1 ok t: exit=1 expected_failed=1 ok
## u: the id counter is not loaded from the DB ## u: the id counter is not loaded from the DB
# diff server/world.nim -> mutated copy: # diff server/world.nim -> mutated copy:
# 588c588 # 595c595
# < nextWallId: parseInt(row[10]), # < nextWallId: parseInt(row[10]),
# --- # ---
# > nextWallId: 1, # > nextWallId: 1,
@@ -1837,14 +1985,14 @@ t: exit=1 expected_failed=1 ok
[OK] one field is enough; a patch with none is invalid [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] 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 [OK] field shapes: text by the 6.5 rule, numbers finite, extra an object
Error: execution of an external program failed: '/tmp/fffmut.cA4aoJ/u/w/tests/tworld' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/u/w/tests/tworld'
# test exit=1; expected tests failed: 1 # test exit=1; expected tests failed: 1
[FAILED] the id counter survives a reload, even when the newest wall was removed [FAILED] the id counter survives a reload, even when the newest wall was removed
u: exit=1 expected_failed=1 ok u: exit=1 expected_failed=1 ok
## v: the id counter is never written to the DB ## v: the id counter is never written to the DB
# diff server/world.nim -> mutated copy: # diff server/world.nim -> mutated copy:
# 492d491 # 499d498
# < db.exec(sql"UPDATE scene SET next_wall_id = ? WHERE id = ?", stored.id + 1, sc.id) # < db.exec(sql"UPDATE scene SET next_wall_id = ? WHERE id = ?", stored.id + 1, sc.id)
[OK] the migration seeds scene 1 with the v1 defaults, no walls, next_wall_id 1 [OK] the migration seeds scene 1 with the v1 defaults, no walls, next_wall_id 1
[OK] an unknown scene id is not there (the wire answers not-found) [OK] an unknown scene id is not there (the wire answers not-found)
@@ -1878,14 +2026,14 @@ u: exit=1 expected_failed=1 ok
[OK] one field is enough; a patch with none is invalid [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] 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 [OK] field shapes: text by the 6.5 rule, numbers finite, extra an object
Error: execution of an external program failed: '/tmp/fffmut.cA4aoJ/v/w/tests/tworld' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/v/w/tests/tworld'
# test exit=1; expected tests failed: 1 # test exit=1; expected tests failed: 1
[FAILED] the id counter survives a reload, even when the newest wall was removed [FAILED] the id counter survives a reload, even when the newest wall was removed
v: exit=1 expected_failed=1 ok v: exit=1 expected_failed=1 ok
## w: a wall may stay open ## w: a wall may stay open
# diff server/world.nim -> mutated copy: # diff server/world.nim -> mutated copy:
# 382c382 # 384c384
# < if not result.door: # < if not result.door:
# --- # ---
# > if false: # > if false:
@@ -1923,14 +2071,14 @@ v: exit=1 expected_failed=1 ok
[OK] one field is enough; a patch with none is invalid [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] 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 [OK] field shapes: text by the 6.5 rule, numbers finite, extra an object
Error: execution of an external program failed: '/tmp/fffmut.cA4aoJ/w/w/tests/tworld' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/w/w/tests/tworld'
# test exit=1; expected tests failed: 1 # test exit=1; expected tests failed: 1
[FAILED] a wall is never open: the stored row normalizes it [FAILED] a wall is never open: the stored row normalizes it
w: exit=1 expected_failed=1 ok w: exit=1 expected_failed=1 ok
## x: zero-length walls accepted ## x: zero-length walls accepted
# diff server/world.nim -> mutated copy: # diff server/world.nim -> mutated copy:
# 372c372 # 374c374
# < (rec.a.x != rec.b.x or rec.a.y != rec.b.y) and inBounds(sc, rec.a) and inBounds(sc, rec.b) and # < (rec.a.x != rec.b.x or rec.a.y != rec.b.y) and inBounds(sc, rec.a) and inBounds(sc, rec.b) and
# --- # ---
# > inBounds(sc, rec.a) and inBounds(sc, rec.b) and # > inBounds(sc, rec.a) and inBounds(sc, rec.b) and
@@ -1964,14 +2112,14 @@ w: exit=1 expected_failed=1 ok
[OK] one field is enough; a patch with none is invalid [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] 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 [OK] field shapes: text by the 6.5 rule, numbers finite, extra an object
Error: execution of an external program failed: '/tmp/fffmut.cA4aoJ/x/w/tests/tworld' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/x/w/tests/tworld'
# test exit=1; expected tests failed: 1 # test exit=1; expected tests failed: 1
[FAILED] a zero-length wall is invalid and writes nothing [FAILED] a zero-length wall is invalid and writes nothing
x: exit=1 expected_failed=1 ok x: exit=1 expected_failed=1 ok
## y: wall endpoints unchecked against the world bounds ## y: wall endpoints unchecked against the world bounds
# diff server/world.nim -> mutated copy: # diff server/world.nim -> mutated copy:
# 366c366 # 368c368
# < p.x >= 0 and p.y >= 0 and p.x <= sc.w and p.y <= sc.h # written so NaN fails # < p.x >= 0 and p.y >= 0 and p.x <= sc.w and p.y <= sc.h # written so NaN fails
# --- # ---
# > p.x >= 0 and p.y >= 0 # written so NaN fails # > p.x >= 0 and p.y >= 0 # written so NaN fails
@@ -2005,14 +2153,14 @@ x: exit=1 expected_failed=1 ok
[OK] one field is enough; a patch with none is invalid [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] 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 [OK] field shapes: text by the 6.5 rule, numbers finite, extra an object
Error: execution of an external program failed: '/tmp/fffmut.cA4aoJ/y/w/tests/tworld' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/y/w/tests/tworld'
# test exit=1; expected tests failed: 1 # test exit=1; expected tests failed: 1
[FAILED] both endpoints must be inside [0,w] x [0,h]; the border itself is allowed [FAILED] both endpoints must be inside [0,w] x [0,h]; the border itself is allowed
y: exit=1 expected_failed=1 ok y: exit=1 expected_failed=1 ok
## z: door.set accepted on a plain wall ## z: door.set accepted on a plain wall
# diff server/world.nim -> mutated copy: # diff server/world.nim -> mutated copy:
# 531d530 # 538d537
# < if current.door == false: return waNotDoor # < if current.door == false: return waNotDoor
[OK] the migration seeds scene 1 with the v1 defaults, no walls, next_wall_id 1 [OK] the migration seeds scene 1 with the v1 defaults, no walls, next_wall_id 1
[OK] an unknown scene id is not there (the wire answers not-found) [OK] an unknown scene id is not there (the wire answers not-found)
@@ -2048,14 +2196,14 @@ y: exit=1 expected_failed=1 ok
[OK] one field is enough; a patch with none is invalid [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] 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 [OK] field shapes: text by the 6.5 rule, numbers finite, extra an object
Error: execution of an external program failed: '/tmp/fffmut.cA4aoJ/z/w/tests/tworld' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/z/w/tests/tworld'
# test exit=1; expected tests failed: 1 # test exit=1; expected tests failed: 1
[FAILED] unknown ids are not-found, wrong kinds are their own outcome [FAILED] unknown ids are not-found, wrong kinds are their own outcome
z: exit=1 expected_failed=1 ok z: exit=1 expected_failed=1 ok
## z2: persisted open state loaded inverted ## z2: persisted open state loaded inverted
# diff server/world.nim -> mutated copy: # diff server/world.nim -> mutated copy:
# 561c561 # 568c568
# < open: row[12] == "1", # < open: row[12] == "1",
# --- # ---
# > open: row[12] == "0", # > open: row[12] == "0",
@@ -2089,7 +2237,7 @@ z: exit=1 expected_failed=1 ok
[OK] one field is enough; a patch with none is invalid [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] 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 [OK] field shapes: text by the 6.5 rule, numbers finite, extra an object
Error: execution of an external program failed: '/tmp/fffmut.cA4aoJ/z2/w/tests/tworld' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/z2/w/tests/tworld'
# test exit=1; expected tests failed: 1 # test exit=1; expected tests failed: 1
[FAILED] add, update, door set and remove round-trip through a reload [FAILED] add, update, door set and remove round-trip through a reload
@@ -2130,7 +2278,7 @@ z2: exit=1 expected_failed=1 ok
[OK] one field is enough; a patch with none is invalid [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] 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 [OK] field shapes: text by the 6.5 rule, numbers finite, extra an object
Error: execution of an external program failed: '/tmp/fffmut.cA4aoJ/s1/w/tests/tworld' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/s1/w/tests/tworld'
# test exit=1; expected tests failed: 1 # test exit=1; expected tests failed: 1
[FAILED] presets expand to switches only through the one resolve path (#55) [FAILED] presets expand to switches only through the one resolve path (#55)
@@ -2169,7 +2317,7 @@ s1: exit=1 expected_failed=1 ok
[OK] one field is enough; a patch with none is invalid [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] 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 [OK] field shapes: text by the 6.5 rule, numbers finite, extra an object
Error: execution of an external program failed: '/tmp/fffmut.cA4aoJ/s2/w/tests/tworld' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/s2/w/tests/tworld'
# test exit=1; expected tests failed: 1 # test exit=1; expected tests failed: 1
[FAILED] storable is the last gate: a secret or locked non-door is refused [FAILED] storable is the last gate: a secret or locked non-door is refused
@@ -2210,7 +2358,7 @@ s2: exit=1 expected_failed=1 ok
[OK] one field is enough; a patch with none is invalid [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] 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 [OK] field shapes: text by the 6.5 rule, numbers finite, extra an object
Error: execution of an external program failed: '/tmp/fffmut.cA4aoJ/s3/w/tests/tworld' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/s3/w/tests/tworld'
# test exit=1; expected tests failed: 1 # test exit=1; expected tests failed: 1
[FAILED] presets expand to switches only through the one resolve path (#55) [FAILED] presets expand to switches only through the one resolve path (#55)
@@ -2257,14 +2405,14 @@ s3: exit=1 expected_failed=1 ok
[OK] prototype scene, all tokens, doors closed and opened [OK] prototype scene, all tokens, doors closed and opened
[OK] random wall fields, cell 32 and 25 [OK] random wall fields, cell 32 and 25
[OK] negative control: the oracle notices a missing and an invented cell [OK] negative control: the oracle notices a missing and an invented cell
Error: execution of an external program failed: '/tmp/fffmut.cA4aoJ/s4/w/tests/tgeometry' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/s4/w/tests/tgeometry'
# test exit=1; expected tests failed: 1 # test exit=1; expected tests failed: 1
[FAILED] one-way: sight_dir names the blind side (left is the (-dy, dx) normal) [FAILED] one-way: sight_dir names the blind side (left is the (-dy, dx) normal)
s4: exit=1 expected_failed=1 ok s4: exit=1 expected_failed=1 ok
## s5: an opening secret or locked door is accepted ## s5: an opening secret or locked door is accepted
# diff server/world.nim -> mutated copy: # diff server/world.nim -> mutated copy:
# 532c532 # 539c539
# < if open and (current.secret or current.locked): return waInvalid # < if open and (current.secret or current.locked): return waInvalid
# --- # ---
# > discard # > discard
@@ -2300,7 +2448,7 @@ s4: exit=1 expected_failed=1 ok
[OK] one field is enough; a patch with none is invalid [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] 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 [OK] field shapes: text by the 6.5 rule, numbers finite, extra an object
Error: execution of an external program failed: '/tmp/fffmut.cA4aoJ/s5/w/tests/tworld' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/s5/w/tests/tworld'
# test exit=1; expected tests failed: 1 # test exit=1; expected tests failed: 1
[FAILED] door.set refuses to open a secret or locked door, closing either is allowed (#56) [FAILED] door.set refuses to open a secret or locked door, closing either is allowed (#56)
@@ -2316,7 +2464,7 @@ s5: exit=1 expected_failed=1 ok
[FAILED] a geometry change retracts the marker and a re-earn gets a fresh id [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 placement change retracts too; height and label never do
[OK] a solid wall with the switch on mints nothing; clearing the switch retracts [OK] a solid wall with the switch on mints nothing; clearing the switch retracts
Error: execution of an external program failed: '/tmp/fffmut.cA4aoJ/s6/w/tests/tmarkers' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/s6/w/tests/tmarkers'
# test exit=1; expected tests failed: 1 # test exit=1; expected tests failed: 1
[FAILED] a geometry change retracts the marker and a re-earn gets a fresh id [FAILED] a geometry change retracts the marker and a re-earn gets a fresh id
@@ -2332,7 +2480,7 @@ s6: exit=1 expected_failed=1 ok
[OK] a geometry change retracts the marker and a re-earn gets a fresh id [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 [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 [OK] a solid wall with the switch on mints nothing; clearing the switch retracts
Error: execution of an external program failed: '/tmp/fffmut.cA4aoJ/s7/w/tests/tmarkers' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/s7/w/tests/tmarkers'
# test exit=1; expected tests failed: 1 # test exit=1; expected tests failed: 1
[FAILED] an untouched marker survives a refresh: it is memory, not current sight [FAILED] an untouched marker survives a refresh: it is memory, not current sight
@@ -2378,7 +2526,7 @@ s7: exit=1 expected_failed=1 ok
[OK] a player never receives another player's list [OK] a player never receives another player's list
[OK] a Context is six addresses: in-place changes are visible through the borrow [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] building a Context and egressing does not scale with the explored sets
Error: execution of an external program failed: '/tmp/fffmut.cA4aoJ/aa/w/tests/tviews' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/aa/w/tests/tviews'
# test exit=1; expected tests failed: 1 # test exit=1; expected tests failed: 1
[FAILED] the set of tokens follows the visibility rule [FAILED] the set of tokens follows the visibility rule
@@ -2402,7 +2550,7 @@ aa: exit=1 expected_failed=1 ok
[OK] another token needs to be inside the polygon [OK] another token needs to be inside the polygon
[FAILED] a gm_only token inside the LOS is not visible to anyone else [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 [OK] a player with no vision token sees only what they control
Error: execution of an external program failed: '/tmp/fffmut.cA4aoJ/ab/w/tests/tvision' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/ab/w/tests/tvision'
# test exit=1; expected tests failed: 1 # test exit=1; expected tests failed: 1
[FAILED] a gm_only token inside the LOS is not visible to anyone else [FAILED] a gm_only token inside the LOS is not visible to anyone else
@@ -2426,7 +2574,7 @@ ab: exit=1 expected_failed=1 ok
[OK] another token needs to be inside the polygon [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 gm_only token inside the LOS is not visible to anyone else
[FAILED] a player with no vision token sees only what they control [FAILED] a player with no vision token sees only what they control
Error: execution of an external program failed: '/tmp/fffmut.cA4aoJ/ac/w/tests/tvision' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/ac/w/tests/tvision'
# test exit=1; expected tests failed: 1 # test exit=1; expected tests failed: 1
[FAILED] a controlled token is always visible, gm_only included [FAILED] a controlled token is always visible, gm_only included
@@ -2472,7 +2620,7 @@ ac: exit=1 expected_failed=1 ok
[OK] a player never receives another player's list [OK] a player never receives another player's list
[OK] a Context is six addresses: in-place changes are visible through the borrow [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] building a Context and egressing does not scale with the explored sets
Error: execution of an external program failed: '/tmp/fffmut.cA4aoJ/ad/w/tests/tviews' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/ad/w/tests/tviews'
# test exit=1; expected tests failed: 1 # test exit=1; expected tests failed: 1
[FAILED] leaving view sends `token_gone` once, and never for a token that was never sent [FAILED] leaving view sends `token_gone` once, and never for a token that was never sent
@@ -2518,7 +2666,7 @@ ad: exit=1 expected_failed=1 ok
[OK] a player never receives another player's list [OK] a player never receives another player's list
[OK] a Context is six addresses: in-place changes are visible through the borrow [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] building a Context and egressing does not scale with the explored sets
Error: execution of an external program failed: '/tmp/fffmut.cA4aoJ/ae/w/tests/tviews' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/ae/w/tests/tviews'
# test exit=1; expected tests failed: 1 # test exit=1; expected tests failed: 1
[FAILED] a player frame carries no GM-only field and no wall-like key [FAILED] a player frame carries no GM-only field and no wall-like key
@@ -2544,7 +2692,7 @@ ae: exit=1 expected_failed=1 ok
[OK] another token needs to be inside the polygon [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 gm_only token inside the LOS is not visible to anyone else
[OK] a player with no vision token sees only what they control [OK] a player with no vision token sees only what they control
Error: execution of an external program failed: '/tmp/fffmut.cA4aoJ/af/w/tests/tvision' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/af/w/tests/tvision'
# test exit=1; expected tests failed: 1 # test exit=1; expected tests failed: 1
[FAILED] moving adds cells and never forgets the old ones [FAILED] moving adds cells and never forgets the old ones
@@ -2566,7 +2714,7 @@ af: exit=1 expected_failed=1 ok
[OK] restore: two players' explored never mix [OK] restore: two players' explored never mix
[OK] restore: an empty store restores nothing and a removed player takes its chunks [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 [OK] a mutation-scale chunk write stays inside the 4.3 commit budget
Error: execution of an external program failed: '/tmp/fffmut.cA4aoJ/ag/w/tests/texplored' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/ag/w/tests/texplored'
# test exit=1; expected tests failed: 1 # test exit=1; expected tests failed: 1
[FAILED] the chunk bitmap layout is pinned [FAILED] the chunk bitmap layout is pinned
@@ -2590,7 +2738,7 @@ ag: exit=1 expected_failed=1 ok
[FAILED] restore: two players' explored never mix [FAILED] restore: two players' explored never mix
[OK] restore: an empty store restores nothing and a removed player takes its chunks [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 [OK] a mutation-scale chunk write stays inside the 4.3 commit budget
Error: execution of an external program failed: '/tmp/fffmut.cA4aoJ/ah/w/tests/texplored' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/ah/w/tests/texplored'
# test exit=1; expected tests failed: 1 # test exit=1; expected tests failed: 1
[FAILED] one chunk covers 64x64 cells [FAILED] one chunk covers 64x64 cells
@@ -2620,7 +2768,7 @@ ah: exit=1 expected_failed=1 ok
[FAILED] restore: two players' explored never mix [FAILED] restore: two players' explored never mix
[OK] restore: an empty store restores nothing and a removed player takes its chunks [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 [OK] a mutation-scale chunk write stays inside the 4.3 commit budget
Error: execution of an external program failed: '/tmp/fffmut.cA4aoJ/ai/w/tests/texplored' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/ai/w/tests/texplored'
# test exit=1; expected tests failed: 1 # test exit=1; expected tests failed: 1
[FAILED] restore: the stored cells come back exactly [FAILED] restore: the stored cells come back exactly
@@ -2650,7 +2798,7 @@ ai: exit=1 expected_failed=1 ok
[FAILED] restore: two players' explored never mix [FAILED] restore: two players' explored never mix
[FAILED] restore: an empty store restores nothing and a removed player takes its chunks [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 [OK] a mutation-scale chunk write stays inside the 4.3 commit budget
Error: execution of an external program failed: '/tmp/fffmut.cA4aoJ/aj/w/tests/texplored' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/aj/w/tests/texplored'
# test exit=1; expected tests failed: 1 # test exit=1; expected tests failed: 1
[FAILED] restore: two players' explored never mix [FAILED] restore: two players' explored never mix
@@ -2672,7 +2820,7 @@ aj: exit=1 expected_failed=1 ok
[OK] restore: two players' explored never mix [OK] restore: two players' explored never mix
[OK] restore: an empty store restores nothing and a removed player takes its chunks [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 [OK] a mutation-scale chunk write stays inside the 4.3 commit budget
Error: execution of an external program failed: '/tmp/fffmut.cA4aoJ/ak/w/tests/texplored' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/ak/w/tests/texplored'
# test exit=1; expected tests failed: 1 # test exit=1; expected tests failed: 1
[FAILED] a second write to the same chunk replaces the bitmap [FAILED] a second write to the same chunk replaces the bitmap
@@ -2694,7 +2842,7 @@ ak: exit=1 expected_failed=1 ok
[OK] restore: two players' explored never mix [OK] restore: two players' explored never mix
[OK] restore: an empty store restores nothing and a removed player takes its chunks [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 [OK] a mutation-scale chunk write stays inside the 4.3 commit budget
Error: execution of an external program failed: '/tmp/fffmut.cA4aoJ/al/w/tests/texplored' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/al/w/tests/texplored'
# test exit=1; expected tests failed: 1 # test exit=1; expected tests failed: 1
[FAILED] two chunks in one chunk row are both written [FAILED] two chunks in one chunk row are both written
@@ -2740,7 +2888,7 @@ al: exit=1 expected_failed=1 ok
[OK] a player never receives another player's list [OK] a player never receives another player's list
[OK] a Context is six addresses: in-place changes are visible through the borrow [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] building a Context and egressing does not scale with the explored sets
Error: execution of an external program failed: '/tmp/fffmut.cA4aoJ/am/w/tests/tviews' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/am/w/tests/tviews'
# test exit=1; expected tests failed: 1 # test exit=1; expected tests failed: 1
[FAILED] a player who sees the token gets the public bucket only [FAILED] a player who sees the token gets the public bucket only
@@ -2817,7 +2965,7 @@ am: exit=1 expected_failed=1 ok
[OK] a GM-sourced lock refuses player moves without touching the walls entries [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 [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) [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.cA4aoJ/an/w/tests/tmoverules' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/an/w/tests/tmoverules'
# test exit=1; expected tests failed: 1 # 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 [FAILED] wall added within r of the circle (centre not on it) sets stuck; exactly r does not
@@ -2894,7 +3042,7 @@ an: exit=1 expected_failed=1 ok
[OK] a GM-sourced lock refuses player moves without touching the walls entries [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] 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) [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.cA4aoJ/ao/w/tests/tmoverules' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/ao/w/tests/tmoverules'
# test exit=1; expected tests failed: 2 # test exit=1; expected tests failed: 2
[FAILED] a squeeze from a failed grow clears when a later shrink ends the overlap [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 [FAILED] a shrink that still overlaps keeps the stuck entry
@@ -2902,12 +3050,15 @@ Error: execution of an external program failed: '/tmp/fffmut.cA4aoJ/ao/w/tests/t
ao: exit=1 expected_failed=2 ok ao: exit=1 expected_failed=2 ok
## ap: the property cap is not enforced ## ap: the property cap is not enforced
# diff server/props.nim -> mutated copy: # diff server/props.nim -> mutated copy:
# 105d104 # 150d149
# < if not p[bucket].hasKey(key) and p[bucket].len >= MaxPropKeys: return false # < if not p[bucket].hasKey(key) and p[bucket].len >= MaxPropKeys: return false
[FAILED] 64 keys per bucket, the 65th is refused and nothing changes [FAILED] 64 keys per bucket, the 65th is refused and nothing changes
[OK] an existing key can still be overwritten at the cap [OK] an existing key can still be overwritten at the cap
[OK] a key is 1..64 code points, trimmed, with no control characters [OK] a key is 1..64 code points, trimmed, with no control characters
[OK] a value is at most 8 KB of serialized JSON [OK] a value is at most 8 KB of serialized JSON
[OK] size: exactly 8 KB is accepted, one byte over is refused
[OK] keys: 64 per object is accepted, 65 is refused, and it is per object
[OK] depth: 8 containers is accepted, 9 is refused
[OK] absent and null mean three empty buckets [OK] absent and null mean three empty buckets
[OK] the three bucket names are the only ones accepted [OK] the three bucket names are the only ones accepted
[FAILED] the caps are enforced while parsing [FAILED] the caps are enforced while parsing
@@ -2919,7 +3070,7 @@ ao: exit=1 expected_failed=2 ok
[OK] propsJson carries all three buckets, always as objects [OK] propsJson carries all three buckets, always as objects
[OK] clone gives fresh buckets: editing the copy cannot reach the original [OK] clone gives fresh buckets: editing the copy cannot reach the original
[OK] normalize repairs nil buckets [OK] normalize repairs nil buckets
Error: execution of an external program failed: '/tmp/fffmut.cA4aoJ/ap/w/tests/tprops' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/ap/w/tests/tprops'
# test exit=1; expected tests failed: 1 # test exit=1; expected tests failed: 1
[FAILED] 64 keys per bucket, the 65th is refused and nothing changes [FAILED] 64 keys per bucket, the 65th is refused and nothing changes
@@ -2996,7 +3147,7 @@ ap: exit=1 expected_failed=1 ok
[OK] a GM-sourced lock refuses player moves without touching the walls entries [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] 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) [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.cA4aoJ/aq/w/tests/tmoverules' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/aq/w/tests/tmoverules'
# test exit=1; expected tests failed: 1 # test exit=1; expected tests failed: 1
[FAILED] grow inside r of a wall pushes it out by the minimal perpendicular distance [FAILED] grow inside r of a wall pushes it out by the minimal perpendicular distance
@@ -3071,7 +3222,7 @@ aq: exit=1 expected_failed=1 ok
[OK] a GM-sourced lock refuses player moves without touching the walls entries [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] 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) [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.cA4aoJ/ar/w/tests/tmoverules' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/ar/w/tests/tmoverules'
# test exit=1; expected tests failed: 1 # test exit=1; expected tests failed: 1
[FAILED] grow with no room on either side squeezes the token and leaves it in place [FAILED] grow with no room on either side squeezes the token and leaves it in place
@@ -3148,14 +3299,14 @@ ar: exit=1 expected_failed=1 ok
[OK] a GM-sourced lock refuses player moves without touching the walls entries [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] 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) [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.cA4aoJ/as/w/tests/tmoverules' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/as/w/tests/tmoverules'
# test exit=1; expected tests failed: 1 # test exit=1; expected tests failed: 1
[FAILED] push: both sides invalid -> squeezed in place; door open -> still squeezed (KEEP); GM can move it [FAILED] push: both sides invalid -> squeezed in place; door open -> still squeezed (KEEP); GM can move it
as: exit=1 expected_failed=1 ok as: exit=1 expected_failed=1 ok
## at: one bucket budget shared by all buckets ## at: one bucket budget shared by all buckets
# diff server/props.nim -> mutated copy: # diff server/props.nim -> mutated copy:
# 105c105 # 150c150
# < if not p[bucket].hasKey(key) and p[bucket].len >= MaxPropKeys: return false # < if not p[bucket].hasKey(key) and p[bucket].len >= MaxPropKeys: return false
# --- # ---
# > if not p[bucket].hasKey(key) and p[pbPublic].len >= MaxPropKeys: return false # > if not p[bucket].hasKey(key) and p[pbPublic].len >= MaxPropKeys: return false
@@ -3163,6 +3314,9 @@ as: exit=1 expected_failed=1 ok
[OK] an existing key can still be overwritten at the cap [OK] an existing key can still be overwritten at the cap
[OK] a key is 1..64 code points, trimmed, with no control characters [OK] a key is 1..64 code points, trimmed, with no control characters
[OK] a value is at most 8 KB of serialized JSON [OK] a value is at most 8 KB of serialized JSON
[OK] size: exactly 8 KB is accepted, one byte over is refused
[OK] keys: 64 per object is accepted, 65 is refused, and it is per object
[OK] depth: 8 containers is accepted, 9 is refused
[OK] absent and null mean three empty buckets [OK] absent and null mean three empty buckets
[OK] the three bucket names are the only ones accepted [OK] the three bucket names are the only ones accepted
[OK] the caps are enforced while parsing [OK] the caps are enforced while parsing
@@ -3174,7 +3328,7 @@ as: exit=1 expected_failed=1 ok
[OK] propsJson carries all three buckets, always as objects [OK] propsJson carries all three buckets, always as objects
[OK] clone gives fresh buckets: editing the copy cannot reach the original [OK] clone gives fresh buckets: editing the copy cannot reach the original
[OK] normalize repairs nil buckets [OK] normalize repairs nil buckets
Error: execution of an external program failed: '/tmp/fffmut.cA4aoJ/at/w/tests/tprops' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/at/w/tests/tprops'
# test exit=1; expected tests failed: 1 # test exit=1; expected tests failed: 1
[FAILED] 64 keys per bucket, the 65th is refused and nothing changes [FAILED] 64 keys per bucket, the 65th is refused and nothing changes
@@ -3251,7 +3405,7 @@ at: exit=1 expected_failed=1 ok
[OK] a GM-sourced lock refuses player moves without touching the walls entries [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] 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) [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.cA4aoJ/au/w/tests/tmoverules' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/au/w/tests/tmoverules'
# test exit=1; expected tests failed: 1 # test exit=1; expected tests failed: 1
[FAILED] a grow that already fits does not move the token [FAILED] a grow that already fits does not move the token
@@ -3289,7 +3443,7 @@ au: exit=1 expected_failed=1 ok
[FAILED] a character rename follows the snapshots of everyone who met it [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] player.remove hands the player's characters to the GM (DESIGN 3.2)
[OK] a character still figured by a token is in use (6.5) [OK] a character still figured by a token is in use (6.5)
Error: execution of an external program failed: '/tmp/fffmut.cA4aoJ/av/w/tests/tcharacters' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/av/w/tests/tcharacters'
# test exit=1; expected tests failed: 2 # test exit=1; expected tests failed: 2
[FAILED] a character owner sees the actual name without any reveal row [FAILED] a character owner sees the actual name without any reveal row
[FAILED] a linked token borrows the character's names, so one reveal covers all of them [FAILED] a linked token borrows the character's names, so one reveal covers all of them
@@ -3328,7 +3482,7 @@ av: exit=1 expected_failed=2 ok
[OK] a character rename follows the snapshots of everyone who met it [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] player.remove hands the player's characters to the GM (DESIGN 3.2)
[OK] a character still figured by a token is in use (6.5) [OK] a character still figured by a token is in use (6.5)
Error: execution of an external program failed: '/tmp/fffmut.cA4aoJ/aw/w/tests/tcharacters' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/aw/w/tests/tcharacters'
# test exit=1; expected tests failed: 2 # test exit=1; expected tests failed: 2
[FAILED] a first sighting records what the player knows right now [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 [FAILED] a rename follows the subject, and a player who was never told keeps not knowing
@@ -3367,7 +3521,7 @@ aw: exit=1 expected_failed=2 ok
[OK] a character rename follows the snapshots of everyone who met it [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] player.remove hands the player's characters to the GM (DESIGN 3.2)
[OK] a character still figured by a token is in use (6.5) [OK] a character still figured by a token is in use (6.5)
Error: execution of an external program failed: '/tmp/fffmut.cA4aoJ/ax/w/tests/tcharacters' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/ax/w/tests/tcharacters'
# test exit=1; expected tests failed: 1 # test exit=1; expected tests failed: 1
[FAILED] a rename follows the subject, and a player who was never told keeps not knowing [FAILED] a rename follows the subject, and a player who was never told keeps not knowing
@@ -3405,7 +3559,7 @@ ax: exit=1 expected_failed=1 ok
[OK] a character rename follows the snapshots of everyone who met it [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] 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) [FAILED] a character still figured by a token is in use (6.5)
Error: execution of an external program failed: '/tmp/fffmut.cA4aoJ/ay/w/tests/tcharacters' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/ay/w/tests/tcharacters'
# test exit=1; expected tests failed: 1 # test exit=1; expected tests failed: 1
[FAILED] a linked token carries no names of its own (they belong to the character) [FAILED] a linked token carries no names of its own (they belong to the character)
@@ -3443,7 +3597,7 @@ ay: exit=1 expected_failed=1 ok
[OK] a character rename follows the snapshots of everyone who met it [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] 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) [FAILED] a character still figured by a token is in use (6.5)
Error: execution of an external program failed: '/tmp/fffmut.cA4aoJ/az/w/tests/tcharacters' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/az/w/tests/tcharacters'
# test exit=1; expected tests failed: 1 # test exit=1; expected tests failed: 1
[FAILED] a character still figured by a token is in use (6.5) [FAILED] a character still figured by a token is in use (6.5)
@@ -3481,7 +3635,7 @@ az: exit=1 expected_failed=1 ok
[OK] a character rename follows the snapshots of everyone who met it [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) [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) [OK] a character still figured by a token is in use (6.5)
Error: execution of an external program failed: '/tmp/fffmut.cA4aoJ/b1/w/tests/tcharacters' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/b1/w/tests/tcharacters'
[OK] 12 characters from the documented alphabet [OK] 12 characters from the documented alphabet
[OK] freshId never returns an id that is taken [OK] freshId never returns an id that is taken
[OK] a name is trimmed, non-empty and free of control characters [OK] a name is trimmed, non-empty and free of control characters
@@ -3544,7 +3698,7 @@ b1: exit=1 expected_failed=1 ok
[FAILED] a character rename follows the snapshots of everyone who met it [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] player.remove hands the player's characters to the GM (DESIGN 3.2)
[OK] a character still figured by a token is in use (6.5) [OK] a character still figured by a token is in use (6.5)
Error: execution of an external program failed: '/tmp/fffmut.cA4aoJ/b2/w/tests/tcharacters' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/b2/w/tests/tcharacters'
# test exit=1; expected tests failed: 2 # 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 rewrites the live snapshots and the rows alike (#30, #27)
[FAILED] a character rename follows the snapshots of everyone who met it [FAILED] a character rename follows the snapshots of everyone who met it
@@ -3593,7 +3747,7 @@ b2: exit=1 expected_failed=2 ok
[OK] a player never receives another player's list [OK] a player never receives another player's list
[OK] a Context is six addresses: in-place changes are visible through the borrow [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] building a Context and egressing does not scale with the explored sets
Error: execution of an external program failed: '/tmp/fffmut.cA4aoJ/b3/w/tests/tviews' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/b3/w/tests/tviews'
# test exit=1; expected tests failed: 1 # test exit=1; expected tests failed: 1
[FAILED] cprops carries the character's public bucket to a non-owner, and never the owner bucket [FAILED] cprops carries the character's public bucket to a non-owner, and never the owner bucket
@@ -3639,7 +3793,7 @@ b3: exit=1 expected_failed=1 ok
[OK] a player never receives another player's list [OK] a player never receives another player's list
[OK] a Context is six addresses: in-place changes are visible through the borrow [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] building a Context and egressing does not scale with the explored sets
Error: execution of an external program failed: '/tmp/fffmut.cA4aoJ/b4/w/tests/tviews' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/b4/w/tests/tviews'
# test exit=1; expected tests failed: 1 # test exit=1; expected tests failed: 1
[FAILED] a player gets only its own characters, without owner, reveal_all or revealed [FAILED] a player gets only its own characters, without owner, reveal_all or revealed
@@ -3662,7 +3816,7 @@ b4: exit=1 expected_failed=1 ok
[FAILED] a tile is allowed when any overlapping cell is explored [FAILED] a tile is allowed when any overlapping cell is explored
[FAILED] the explored overlap respects the scene border [FAILED] the explored overlap respects the scene border
[OK] a request built from one record stays internally consistent when the scene is swapped [OK] a request built from one record stays internally consistent when the scene is swapped
Error: execution of an external program failed: '/tmp/fffmut.cA4aoJ/c1/w/tests/ttiles' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/c1/w/tests/ttiles'
# test exit=1; expected tests failed: 2 # test exit=1; expected tests failed: 2
[FAILED] an unexplored tile is refused [FAILED] an unexplored tile is refused
[FAILED] a tile is allowed when any overlapping cell is explored [FAILED] a tile is allowed when any overlapping cell is explored
@@ -3686,7 +3840,7 @@ c1: exit=1 expected_failed=2 ok
[FAILED] a tile is allowed when any overlapping cell is explored [FAILED] a tile is allowed when any overlapping cell is explored
[FAILED] the explored overlap respects the scene border [FAILED] the explored overlap respects the scene border
[FAILED] a request built from one record stays internally consistent when the scene is swapped [FAILED] a request built from one record stays internally consistent when the scene is swapped
Error: execution of an external program failed: '/tmp/fffmut.cA4aoJ/c2/w/tests/ttiles' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/c2/w/tests/ttiles'
# test exit=1; expected tests failed: 2 # test exit=1; expected tests failed: 2
[FAILED] an unexplored tile is refused [FAILED] an unexplored tile is refused
[FAILED] a tile is allowed when any overlapping cell is explored [FAILED] a tile is allowed when any overlapping cell is explored
@@ -3710,7 +3864,7 @@ c2: exit=1 expected_failed=2 ok
[OK] a tile is allowed when any overlapping cell is explored [OK] a tile is allowed when any overlapping cell is explored
[OK] the explored overlap respects the scene border [OK] the explored overlap respects the scene border
[OK] a request built from one record stays internally consistent when the scene is swapped [OK] a request built from one record stays internally consistent when the scene is swapped
Error: execution of an external program failed: '/tmp/fffmut.cA4aoJ/c3/w/tests/ttiles' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/c3/w/tests/ttiles'
# test exit=1; expected tests failed: 1 # test exit=1; expected tests failed: 1
[FAILED] a tile coordinate outside the grid is out of range [FAILED] a tile coordinate outside the grid is out of range
@@ -3733,7 +3887,7 @@ c3: exit=1 expected_failed=1 ok
[OK] a tile is allowed when any overlapping cell is explored [OK] a tile is allowed when any overlapping cell is explored
[OK] the explored overlap respects the scene border [OK] the explored overlap respects the scene border
[OK] a request built from one record stays internally consistent when the scene is swapped [OK] a request built from one record stays internally consistent when the scene is swapped
Error: execution of an external program failed: '/tmp/fffmut.cA4aoJ/c4/w/tests/ttiles' Error: execution of an external program failed: '/tmp/fffmut.3hC0a0/c4/w/tests/ttiles'
# test exit=1; expected tests failed: 1 # test exit=1; expected tests failed: 1
[FAILED] leading zero tile coordinates are malformed [FAILED] leading zero tile coordinates are malformed
+28 -5
View File
@@ -111,7 +111,23 @@
... [OK] equal only for identical strings, including the empty case ... [OK] equal only for identical strings, including the empty case
Success: Execution finished Success: Execution finished
Compiling /home/davide/Projects/GDR/FFF_vtt-b36/tests/tdb (from package fff_vtt) using c backend Compiling /home/davide/Projects/GDR/FFF_vtt-b36/tests/tdb (from package fff_vtt) using c backend
Nim Output [Suite] open Nim Output /home/davide/Projects/GDR/FFF_vtt-b36/tests/tdb.nim(396, 1) template/generic instantiation of `suite` from here
... /home/davide/Projects/GDR/FFF_vtt-b36/tests/tdb.nim(403, 3) template/generic instantiation of `test` from here
... /home/davide/Projects/GDR/FFF_vtt-b36/tests/tdb.nim(412, 9) template/generic instantiation of `withTransaction` from here
... /home/davide/Projects/GDR/FFF_vtt-b36/server/db.nim(298, 12) Warning: unreachable code after 'return' statement or '{.noReturn.}' proc [UnreachableCode]
... /home/davide/Projects/GDR/FFF_vtt-b36/tests/tdb.nim(396, 1) template/generic instantiation of `suite` from here
... /home/davide/Projects/GDR/FFF_vtt-b36/tests/tdb.nim(403, 3) template/generic instantiation of `test` from here
... /home/davide/Projects/GDR/FFF_vtt-b36/tests/tdb.nim(412, 9) template/generic instantiation of `withTransaction` from here
... /home/davide/Projects/GDR/FFF_vtt-b36/server/db.nim(299, 10) Warning: unreachable code after 'return' statement or '{.noReturn.}' proc [UnreachableCode]
... /home/davide/Projects/GDR/FFF_vtt-b36/tests/tdb.nim(396, 1) template/generic instantiation of `suite` from here
... /home/davide/Projects/GDR/FFF_vtt-b36/tests/tdb.nim(425, 3) template/generic instantiation of `test` from here
... /home/davide/Projects/GDR/FFF_vtt-b36/tests/tdb.nim(434, 9) template/generic instantiation of `authoringTransaction` from here
... /home/davide/Projects/GDR/FFF_vtt-b36/server/world.nim(440, 14) Warning: unreachable code after 'return' statement or '{.noReturn.}' proc [UnreachableCode]
... /home/davide/Projects/GDR/FFF_vtt-b36/tests/tdb.nim(396, 1) template/generic instantiation of `suite` from here
... /home/davide/Projects/GDR/FFF_vtt-b36/tests/tdb.nim(425, 3) template/generic instantiation of `test` from here
... /home/davide/Projects/GDR/FFF_vtt-b36/tests/tdb.nim(434, 9) template/generic instantiation of `authoringTransaction` from here
... /home/davide/Projects/GDR/FFF_vtt-b36/server/world.nim(441, 12) Warning: unreachable code after 'return' statement or '{.noReturn.}' proc [UnreachableCode]
... [Suite] open
... [OK] creates the file, sets WAL, synchronous NORMAL, busy_timeout, foreign_keys ... [OK] creates the file, sets WAL, synchronous NORMAL, busy_timeout, foreign_keys
... [Suite] migrate ... [Suite] migrate
... [OK] fresh DB: applies every step, sets user_version and records history ... [OK] fresh DB: applies every step, sets user_version and records history
@@ -125,6 +141,9 @@
... [OK] every impossible wall row is rejected by the database ... [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 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] a malformed props_gm refuses step 8 and leaves the schema-7 DB untouched
... [Suite] transaction unwind (#32)
... [OK] withTransaction rolls back a Defect and leaves the connection usable
... [OK] authoringTransaction rolls back a Defect and restores NORMAL
Success: Execution finished Success: Execution finished
Compiling /home/davide/Projects/GDR/FFF_vtt-b36/tests/tdetach (from package fff_vtt) using c backend Compiling /home/davide/Projects/GDR/FFF_vtt-b36/tests/tdetach (from package fff_vtt) using c backend
Nim Output [Suite] detachedJson Nim Output [Suite] detachedJson
@@ -158,7 +177,7 @@
... [OK] restore: two players' explored never mix ... [OK] restore: two players' explored never mix
... [OK] restore: an empty store restores nothing and a removed player takes its chunks ... [OK] restore: an empty store restores nothing and a removed player takes its chunks
... [Suite] cost ... [Suite] cost
... chunk write: avg 0.016 ms, p99 0.033 ms over 200 commits ... chunk write: avg 0.016 ms, p99 0.098 ms over 200 commits
... [OK] a mutation-scale chunk write stays inside the 4.3 commit budget ... [OK] a mutation-scale chunk write stays inside the 4.3 commit budget
Success: Execution finished Success: Execution finished
Compiling /home/davide/Projects/GDR/FFF_vtt-b36/tests/tgeometry (from package fff_vtt) using c backend Compiling /home/davide/Projects/GDR/FFF_vtt-b36/tests/tgeometry (from package fff_vtt) using c backend
@@ -329,6 +348,10 @@
... [OK] an existing key can still be overwritten at the cap ... [OK] an existing key can still be overwritten at the cap
... [OK] a key is 1..64 code points, trimmed, with no control characters ... [OK] a key is 1..64 code points, trimmed, with no control characters
... [OK] a value is at most 8 KB of serialized JSON ... [OK] a value is at most 8 KB of serialized JSON
... [Suite] opaque object caps (6.1, FIXED owner-delegated by #35)
... [OK] size: exactly 8 KB is accepted, one byte over is refused
... [OK] keys: 64 per object is accepted, 65 is refused, and it is per object
... [OK] depth: 8 containers is accepted, 9 is refused
... [Suite] parseProps (the `props` field of token.create) ... [Suite] parseProps (the `props` field of token.create)
... [OK] absent and null mean three empty buckets ... [OK] absent and null mean three empty buckets
... [OK] the three bucket names are the only ones accepted ... [OK] the three bucket names are the only ones accepted
@@ -479,9 +502,9 @@
... [OK] a player never receives another player's list ... [OK] a player never receives another player's list
... [Suite] egress borrows the world instead of copying it (#28) ... [Suite] egress borrows the world instead of copying it (#28)
... [OK] a Context is six addresses: in-place changes are visible through the borrow ... [OK] a Context is six addresses: in-place changes are visible through the borrow
... #28 context build, 262144 cells x 6 players: 0.007 us ... #28 context build, 262144 cells x 6 players: 0.008 us
... #28 egress, 262144 cells x 6 players x 40 entries: GM 0.824 ms, player 0.332 ms ... #28 egress, 262144 cells x 6 players x 40 entries: GM 0.794 ms, player 0.324 ms
... #28 egress, 16384 cells x 6 players x 40 entries: GM 0.862 ms ... #28 egress, 16384 cells x 6 players x 40 entries: GM 0.793 ms
... [OK] building a Context and egressing does not scale with the explored sets ... [OK] building a Context and egressing does not scale with the explored sets
Success: Execution finished Success: Execution finished
Compiling /home/davide/Projects/GDR/FFF_vtt-b36/tests/tvision (from package fff_vtt) using c backend Compiling /home/davide/Projects/GDR/FFF_vtt-b36/tests/tvision (from package fff_vtt) using c backend