results: rerun the slice 6 gates on the final tree (#21)
devbox run test: 273 Nim checks and 68 Node tests pass. devbox run mutation: control passes, 41 of 41 mutations (a-al) fail their expected tests, including the six new explored ones. Chunk write avg 0.015 ms / p99 0.037 ms; move ack with explored writes avg 0.79 ms / p99 2 ms.
This commit is contained in:
+200
-38
@@ -60,6 +60,18 @@
|
||||
[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 slice-5 DB migrates on: explored_chunk appears and the world survives
|
||||
[OK] the chunk bitmap layout is pinned
|
||||
[OK] one chunk covers 64x64 cells
|
||||
[OK] a dirty chunk carries the whole chunk, not just the new cells
|
||||
[OK] a chunk of a map edge keeps out-of-scene cells at zero
|
||||
[OK] two chunks in one chunk row are both written
|
||||
[OK] a second write to the same chunk replaces the bitmap
|
||||
[OK] a chunk row of the wrong size is refused by the schema
|
||||
[OK] restore: the stored cells come back exactly
|
||||
[OK] restore: two players' explored never mix
|
||||
[OK] restore: an empty store restores nothing and a removed player takes its chunks
|
||||
[OK] a mutation-scale chunk write stays inside the 4.3 commit budget
|
||||
[OK] open space is a circle
|
||||
[OK] wall blocks
|
||||
[OK] shared endpoint: no leak at the vertex
|
||||
@@ -301,7 +313,7 @@ control: exit=0 expected_failed=0 ok
|
||||
[FAILED] prototype scene, all tokens, doors closed and opened
|
||||
[FAILED] random wall fields, cell 32 and 25
|
||||
[OK] negative control: the oracle notices a missing and an invented cell
|
||||
Error: execution of an external program failed: '/tmp/fffmut.EhcyMp/a/w/tests/tgeometry'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.c3RXFT/a/w/tests/tgeometry'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] rays nudged past a corner: area just beyond a wall end is visible
|
||||
|
||||
@@ -345,7 +357,7 @@ a: exit=1 expected_failed=1 ok
|
||||
[OK] prototype scene, all tokens, doors closed and opened
|
||||
[OK] random wall fields, cell 32 and 25
|
||||
[OK] negative control: the oracle notices a missing and an invented cell
|
||||
Error: execution of an external program failed: '/tmp/fffmut.EhcyMp/b/w/tests/tgeometry'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.c3RXFT/b/w/tests/tgeometry'
|
||||
# test exit=1; expected tests failed: 2
|
||||
[FAILED] '<' apex: ray through the shared tip must not leak
|
||||
[FAILED] every segment endpoint is a polygon vertex (lower and upper end inclusive)
|
||||
@@ -390,7 +402,7 @@ b: exit=1 expected_failed=2 ok
|
||||
[FAILED] prototype scene, all tokens, doors closed and opened
|
||||
[OK] random wall fields, cell 32 and 25
|
||||
[OK] negative control: the oracle notices a missing and an invented cell
|
||||
Error: execution of an external program failed: '/tmp/fffmut.EhcyMp/c/w/tests/tgeometry'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.c3RXFT/c/w/tests/tgeometry'
|
||||
# test exit=1; expected tests failed: 2
|
||||
[FAILED] '<' apex: ray through the shared tip must not leak
|
||||
[FAILED] every segment endpoint is a polygon vertex (lower and upper end inclusive)
|
||||
@@ -435,7 +447,7 @@ c: exit=1 expected_failed=2 ok
|
||||
[OK] prototype scene, all tokens, doors closed and opened
|
||||
[OK] random wall fields, cell 32 and 25
|
||||
[OK] negative control: the oracle notices a missing and an invented cell
|
||||
Error: execution of an external program failed: '/tmp/fffmut.EhcyMp/d1/w/tests/tgeometry'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.c3RXFT/d1/w/tests/tgeometry'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] shared vertex: both arms required (mutation d1/d2)
|
||||
|
||||
@@ -479,7 +491,7 @@ d1: exit=1 expected_failed=1 ok
|
||||
[OK] prototype scene, all tokens, doors closed and opened
|
||||
[OK] random wall fields, cell 32 and 25
|
||||
[OK] negative control: the oracle notices a missing and an invented cell
|
||||
Error: execution of an external program failed: '/tmp/fffmut.EhcyMp/d2/w/tests/tgeometry'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.c3RXFT/d2/w/tests/tgeometry'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] shared vertex: both arms required (mutation d1/d2)
|
||||
|
||||
@@ -521,7 +533,7 @@ d2: exit=1 expected_failed=1 ok
|
||||
[FAILED] prototype scene, all tokens, doors closed and opened
|
||||
[FAILED] random wall fields, cell 32 and 25
|
||||
[FAILED] negative control: the oracle notices a missing and an invented cell
|
||||
Error: execution of an external program failed: '/tmp/fffmut.EhcyMp/e/w/tests/tgeometry'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.c3RXFT/e/w/tests/tgeometry'
|
||||
# test exit=1; expected tests failed: 4
|
||||
[FAILED] random visibility polygons: identical cell lists
|
||||
[FAILED] random simple polygons (star-shaped, concave): identical cell lists
|
||||
@@ -586,7 +598,7 @@ e: exit=1 expected_failed=4 ok
|
||||
[FAILED] GM manual clear inside a wall: player escapes sideways, cannot cross
|
||||
[OK] an unrelated wall change elsewhere does not re-block a GM-cleared token
|
||||
[OK] no escape hatch: a player cannot walk through any wall of a boxed room
|
||||
Error: execution of an external program failed: '/tmp/fffmut.EhcyMp/f/w/tests/tmoverules'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.c3RXFT/f/w/tests/tmoverules'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] overlapping 10 px off: may leave away from the wall, not cross it, not stay overlapped
|
||||
|
||||
@@ -648,7 +660,7 @@ f: exit=1 expected_failed=1 ok
|
||||
[FAILED] GM manual clear inside a wall: player escapes sideways, cannot cross
|
||||
[OK] an unrelated wall change elsewhere does not re-block a GM-cleared token
|
||||
[OK] no escape hatch: a player cannot walk through any wall of a boxed room
|
||||
Error: execution of an external program failed: '/tmp/fffmut.EhcyMp/g/w/tests/tmoverules'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.c3RXFT/g/w/tests/tmoverules'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] GM: ignores walls, step cap and blocked; bounds still apply
|
||||
|
||||
@@ -710,7 +722,7 @@ g: exit=1 expected_failed=1 ok
|
||||
[OK] GM manual clear inside a wall: player escapes sideways, cannot cross
|
||||
[OK] an unrelated wall change elsewhere does not re-block a GM-cleared token
|
||||
[OK] no escape hatch: a player cannot walk through any wall of a boxed room
|
||||
Error: execution of an external program failed: '/tmp/fffmut.EhcyMp/h/w/tests/tmoverules'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.c3RXFT/h/w/tests/tmoverules'
|
||||
# test exit=1; expected tests failed: 2
|
||||
[FAILED] corner clipping: path passes the wall end closer than r though both ends are clear
|
||||
[FAILED] leg of the path inside r of a non-start wall blocks even if start and end are clear
|
||||
@@ -771,13 +783,13 @@ h: exit=1 expected_failed=2 ok
|
||||
[OK] GM manual clear inside a wall: player escapes sideways, cannot cross
|
||||
[OK] an unrelated wall change elsewhere does not re-block a GM-cleared token
|
||||
[OK] no escape hatch: a player cannot walk through any wall of a boxed room
|
||||
Error: execution of an external program failed: '/tmp/fffmut.EhcyMp/i/w/tests/tmoverules'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.c3RXFT/i/w/tests/tmoverules'
|
||||
[FAILED] P1: probes longer than the cap get one fixed nack regardless of the scene
|
||||
[OK] P2: scenes differing only beyond the bound give identical replies over 3000 probes
|
||||
[OK] P3 negative control: a wall inside the disc IS visible through replies (the harness can fail)
|
||||
[OK] P4: probing cannot unflag or move a blocked token
|
||||
[OK] doors beyond the bound: opening or closing them changes no reply
|
||||
Error: execution of an external program failed: '/tmp/fffmut.EhcyMp/i/w/tests/tprobing'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.c3RXFT/i/w/tests/tprobing'
|
||||
# test exit=1; expected tests failed: 2
|
||||
[FAILED] step cap = scene default without vision, token vision radius with it
|
||||
[FAILED] P1: probes longer than the cap get one fixed nack regardless of the scene
|
||||
@@ -840,7 +852,7 @@ i: exit=1 expected_failed=2 ok
|
||||
[FAILED] GM manual clear inside a wall: player escapes sideways, cannot cross
|
||||
[OK] an unrelated wall change elsewhere does not re-block a GM-cleared token
|
||||
[OK] no escape hatch: a player cannot walk through any wall of a boxed room
|
||||
Error: execution of an external program failed: '/tmp/fffmut.EhcyMp/j/w/tests/tmoverules'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.c3RXFT/j/w/tests/tmoverules'
|
||||
# test exit=1; expected tests failed: 2
|
||||
[FAILED] wall added within r of the circle (centre not on it) sets blocked; 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
|
||||
@@ -903,7 +915,7 @@ j: exit=1 expected_failed=2 ok
|
||||
[OK] GM manual clear inside a wall: player escapes sideways, cannot cross
|
||||
[OK] an unrelated wall change elsewhere does not re-block a GM-cleared token
|
||||
[OK] no escape hatch: a player cannot walk through any wall of a boxed room
|
||||
Error: execution of an external program failed: '/tmp/fffmut.EhcyMp/k/w/tests/tmoverules'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.c3RXFT/k/w/tests/tmoverules'
|
||||
# test exit=1; expected tests failed: 2
|
||||
[FAILED] KEEP: opening one door / removing one wall while another overlaps -> still blocked; last one frees
|
||||
[FAILED] KEEP: wall update away from one of two overlapping walls keeps blocked
|
||||
@@ -964,7 +976,7 @@ k: exit=1 expected_failed=2 ok
|
||||
[FAILED] GM manual clear inside a wall: player escapes sideways, cannot cross
|
||||
[OK] an unrelated wall change elsewhere does not re-block a GM-cleared token
|
||||
[OK] no escape hatch: a player cannot walk through any wall of a boxed room
|
||||
Error: execution of an external program failed: '/tmp/fffmut.EhcyMp/l/w/tests/tmoverules'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.c3RXFT/l/w/tests/tmoverules'
|
||||
# test exit=1; expected tests failed: 3
|
||||
[FAILED] GM moves a stuck token clear -> free; to another wall-overlapping spot -> still blocked
|
||||
[FAILED] GM drops a token inside a wall -> blocked; a door counts only while closed
|
||||
@@ -1028,7 +1040,7 @@ l: exit=1 expected_failed=3 ok
|
||||
[OK] GM manual clear inside a wall: player escapes sideways, cannot cross
|
||||
[OK] an unrelated wall change elsewhere does not re-block a GM-cleared token
|
||||
[OK] no escape hatch: a player cannot walk through any wall of a boxed room
|
||||
Error: execution of an external program failed: '/tmp/fffmut.EhcyMp/m/w/tests/tmoverules'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.c3RXFT/m/w/tests/tmoverules'
|
||||
# test exit=1; expected tests failed: 3
|
||||
[FAILED] Q14: a door closed 10 px from a token: pushed to its side, clear by r, not blocked; GM-owned too
|
||||
[FAILED] push: centre on the door line -> side of the previous position; no history -> left of a->b
|
||||
@@ -1092,7 +1104,7 @@ m: exit=1 expected_failed=3 ok
|
||||
[OK] GM manual clear inside a wall: player escapes sideways, cannot cross
|
||||
[OK] an unrelated wall change elsewhere does not re-block a GM-cleared token
|
||||
[OK] no escape hatch: a player cannot walk through any wall of a boxed room
|
||||
Error: execution of an external program failed: '/tmp/fffmut.EhcyMp/n/w/tests/tmoverules'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.c3RXFT/n/w/tests/tmoverules'
|
||||
# test exit=1; expected tests failed: 2
|
||||
[FAILED] push: one side blocked by another wall -> the other side; out of bounds -> the other side
|
||||
[FAILED] push: both sides invalid -> blocked in place; door open -> free; GM can still move it
|
||||
@@ -1155,7 +1167,7 @@ n: exit=1 expected_failed=2 ok
|
||||
[OK] GM manual clear inside a wall: player escapes sideways, cannot cross
|
||||
[OK] an unrelated wall change elsewhere does not re-block a GM-cleared token
|
||||
[OK] no escape hatch: a player cannot walk through any wall of a boxed room
|
||||
Error: execution of an external program failed: '/tmp/fffmut.EhcyMp/o/w/tests/tmoverules'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.c3RXFT/o/w/tests/tmoverules'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] push: centre on the door line -> side of the previous position; no history -> left of a->b
|
||||
|
||||
@@ -1189,7 +1201,7 @@ o: exit=1 expected_failed=1 ok
|
||||
[OK] one wall carries id, a, b, kind, open and flags in the 6.1 shape
|
||||
[OK] `walls` is the full list plus the scene, `wall` is one upsert, `wall_gone` an id
|
||||
[OK] the fan-out frames carry no n: the sender stamps it per recipient
|
||||
Error: execution of an external program failed: '/tmp/fffmut.EhcyMp/p/w/tests/tprotocol'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.c3RXFT/p/w/tests/tprotocol'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] refill is continuous at 30/s, capped at the burst
|
||||
|
||||
@@ -1225,7 +1237,7 @@ p: exit=1 expected_failed=1 ok
|
||||
[OK] one wall carries id, a, b, kind, open and flags in the 6.1 shape
|
||||
[OK] `walls` is the full list plus the scene, `wall` is one upsert, `wall_gone` an id
|
||||
[OK] the fan-out frames carry no n: the sender stamps it per recipient
|
||||
Error: execution of an external program failed: '/tmp/fffmut.EhcyMp/q/w/tests/tprotocol'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.c3RXFT/q/w/tests/tprotocol'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] reqId boundaries: 0 and 2^31-1 pass, 2^31 and -1 are malformed
|
||||
|
||||
@@ -1261,7 +1273,7 @@ q: exit=1 expected_failed=1 ok
|
||||
[OK] one wall carries id, a, b, kind, open and flags in the 6.1 shape
|
||||
[OK] `walls` is the full list plus the scene, `wall` is one upsert, `wall_gone` an id
|
||||
[OK] the fan-out frames carry no n: the sender stamps it per recipient
|
||||
Error: execution of an external program failed: '/tmp/fffmut.EhcyMp/r/w/tests/tprotocol'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.c3RXFT/r/w/tests/tprotocol'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] nine malformed frames are tolerated, the tenth closes
|
||||
|
||||
@@ -1287,7 +1299,7 @@ r: exit=1 expected_failed=1 ok
|
||||
[OK] the malformed window is per connection and fires on the tenth frame
|
||||
[OK] a Pong is recorded on the right connection
|
||||
[OK] a snapshot hands out every live connection without holding the lock afterwards
|
||||
Error: execution of an external program failed: '/tmp/fffmut.EhcyMp/s/w/tests/tconns'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.c3RXFT/s/w/tests/tconns'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] the frame counter starts at 1 on each connection and is never global
|
||||
|
||||
@@ -1321,7 +1333,7 @@ s: exit=1 expected_failed=1 ok
|
||||
[OK] dot patching: only the given fields change
|
||||
[OK] unknown ids are not-found, wrong kinds are their own outcome
|
||||
[OK] the first wall of a fresh scene is id 1, not 0
|
||||
Error: execution of an external program failed: '/tmp/fffmut.EhcyMp/t/w/tests/tworld'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.c3RXFT/t/w/tests/tworld'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] a removal never renumbers and the next add never reuses the id
|
||||
|
||||
@@ -1353,7 +1365,7 @@ t: exit=1 expected_failed=1 ok
|
||||
[OK] dot patching: only the given fields change
|
||||
[OK] unknown ids are not-found, wrong kinds are their own outcome
|
||||
[OK] the first wall of a fresh scene is id 1, not 0
|
||||
Error: execution of an external program failed: '/tmp/fffmut.EhcyMp/u/w/tests/tworld'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.c3RXFT/u/w/tests/tworld'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] the id counter survives a reload, even when the newest wall was removed
|
||||
|
||||
@@ -1383,7 +1395,7 @@ u: exit=1 expected_failed=1 ok
|
||||
[OK] dot patching: only the given fields change
|
||||
[OK] unknown ids are not-found, wrong kinds are their own outcome
|
||||
[OK] the first wall of a fresh scene is id 1, not 0
|
||||
Error: execution of an external program failed: '/tmp/fffmut.EhcyMp/v/w/tests/tworld'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.c3RXFT/v/w/tests/tworld'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] the id counter survives a reload, even when the newest wall was removed
|
||||
|
||||
@@ -1413,7 +1425,7 @@ v: exit=1 expected_failed=1 ok
|
||||
[OK] dot patching: only the given fields change
|
||||
[OK] unknown ids are not-found, wrong kinds are their own outcome
|
||||
[OK] the first wall of a fresh scene is id 1, not 0
|
||||
Error: execution of an external program failed: '/tmp/fffmut.EhcyMp/w/w/tests/tworld'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.c3RXFT/w/w/tests/tworld'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] a wall is never open: the stored row normalizes it
|
||||
|
||||
@@ -1443,7 +1455,7 @@ w: exit=1 expected_failed=1 ok
|
||||
[OK] dot patching: only the given fields change
|
||||
[OK] unknown ids are not-found, wrong kinds are their own outcome
|
||||
[OK] the first wall of a fresh scene is id 1, not 0
|
||||
Error: execution of an external program failed: '/tmp/fffmut.EhcyMp/x/w/tests/tworld'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.c3RXFT/x/w/tests/tworld'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] a zero-length wall is invalid and writes nothing
|
||||
|
||||
@@ -1473,7 +1485,7 @@ x: exit=1 expected_failed=1 ok
|
||||
[OK] dot patching: only the given fields change
|
||||
[OK] unknown ids are not-found, wrong kinds are their own outcome
|
||||
[OK] the first wall of a fresh scene is id 1, not 0
|
||||
Error: execution of an external program failed: '/tmp/fffmut.EhcyMp/y/w/tests/tworld'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.c3RXFT/y/w/tests/tworld'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] both endpoints must be inside [0,w] x [0,h]; the border itself is allowed
|
||||
|
||||
@@ -1501,7 +1513,7 @@ y: exit=1 expected_failed=1 ok
|
||||
[OK] dot patching: only the given fields change
|
||||
[FAILED] unknown ids are not-found, wrong kinds are their own outcome
|
||||
[OK] the first wall of a fresh scene is id 1, not 0
|
||||
Error: execution of an external program failed: '/tmp/fffmut.EhcyMp/z/w/tests/tworld'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.c3RXFT/z/w/tests/tworld'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] unknown ids are not-found, wrong kinds are their own outcome
|
||||
|
||||
@@ -1531,7 +1543,7 @@ z: exit=1 expected_failed=1 ok
|
||||
[OK] dot patching: only the given fields change
|
||||
[OK] unknown ids are not-found, wrong kinds are their own outcome
|
||||
[OK] the first wall of a fresh scene is id 1, not 0
|
||||
Error: execution of an external program failed: '/tmp/fffmut.EhcyMp/z2/w/tests/tworld'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.c3RXFT/z2/w/tests/tworld'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] add, update, door set and remove round-trip through a reload
|
||||
|
||||
@@ -1559,14 +1571,14 @@ z2: exit=1 expected_failed=1 ok
|
||||
[OK] explored fresh is a list of [cx, cy]
|
||||
[OK] the vision payload uses integer pixels (6.4, Q16 FIXED)
|
||||
[OK] the hello scene block carries the 6.1 fields and no counts
|
||||
Error: execution of an external program failed: '/tmp/fffmut.EhcyMp/aa/w/tests/tviews'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.c3RXFT/aa/w/tests/tviews'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] the set of tokens follows the visibility rule
|
||||
|
||||
aa: exit=1 expected_failed=1 ok
|
||||
## ab: gm_only ignored by the view rule
|
||||
# diff server/vision.nim -> mutated copy:
|
||||
# 99d98
|
||||
# 100d99
|
||||
# < if t.gmOnly: return false
|
||||
[OK] only the player's own vision tokens produce one, in token order
|
||||
[OK] a player with no vision token has no polygons at all
|
||||
@@ -1583,14 +1595,14 @@ aa: exit=1 expected_failed=1 ok
|
||||
[OK] another token needs to be inside the polygon
|
||||
[FAILED] a gm_only token inside the LOS is not visible to anyone else
|
||||
[OK] a player with no vision token sees only what they control
|
||||
Error: execution of an external program failed: '/tmp/fffmut.EhcyMp/ab/w/tests/tvision'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.c3RXFT/ab/w/tests/tvision'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] a gm_only token inside the LOS is not visible to anyone else
|
||||
|
||||
ab: exit=1 expected_failed=1 ok
|
||||
## ac: a controlled token is not always visible
|
||||
# diff server/vision.nim -> mutated copy:
|
||||
# 98d97
|
||||
# 99d98
|
||||
# < if t.owner == playerId: return true
|
||||
[OK] only the player's own vision tokens produce one, in token order
|
||||
[OK] a player with no vision token has no polygons at all
|
||||
@@ -1607,7 +1619,7 @@ ab: exit=1 expected_failed=1 ok
|
||||
[OK] another token needs to be inside the polygon
|
||||
[OK] a gm_only token inside the LOS is not visible to anyone else
|
||||
[FAILED] a player with no vision token sees only what they control
|
||||
Error: execution of an external program failed: '/tmp/fffmut.EhcyMp/ac/w/tests/tvision'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.c3RXFT/ac/w/tests/tvision'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] a controlled token is always visible, gm_only included
|
||||
|
||||
@@ -1635,7 +1647,7 @@ ac: exit=1 expected_failed=1 ok
|
||||
[OK] explored fresh is a list of [cx, cy]
|
||||
[OK] the vision payload uses integer pixels (6.4, Q16 FIXED)
|
||||
[OK] the hello scene block carries the 6.1 fields and no counts
|
||||
Error: execution of an external program failed: '/tmp/fffmut.EhcyMp/ad/w/tests/tviews'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.c3RXFT/ad/w/tests/tviews'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] leaving view sends `token_gone` once, and never for a token that was never sent
|
||||
|
||||
@@ -1663,14 +1675,14 @@ ad: exit=1 expected_failed=1 ok
|
||||
[OK] explored fresh is a list of [cx, cy]
|
||||
[OK] the vision payload uses integer pixels (6.4, Q16 FIXED)
|
||||
[OK] the hello scene block carries the 6.1 fields and no counts
|
||||
Error: execution of an external program failed: '/tmp/fffmut.EhcyMp/ae/w/tests/tviews'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.c3RXFT/ae/w/tests/tviews'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] a player frame carries no GM-only field and no wall-like key
|
||||
|
||||
ae: exit=1 expected_failed=1 ok
|
||||
## af: explored forgets cells outside the current polygon
|
||||
# diff server/vision.nim -> mutated copy:
|
||||
# 72c72
|
||||
# 73c73
|
||||
# < for idx in added: pv.explored.incl idx
|
||||
# ---
|
||||
# > pv.explored = added
|
||||
@@ -1689,9 +1701,159 @@ ae: exit=1 expected_failed=1 ok
|
||||
[OK] another token needs to be inside the polygon
|
||||
[OK] a gm_only token inside the LOS is not visible to anyone else
|
||||
[OK] a player with no vision token sees only what they control
|
||||
Error: execution of an external program failed: '/tmp/fffmut.EhcyMp/af/w/tests/tvision'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.c3RXFT/af/w/tests/tvision'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] moving adds cells and never forgets the old ones
|
||||
|
||||
af: exit=1 expected_failed=1 ok
|
||||
## ag: the chunk row stride is dropped
|
||||
# diff server/explored.nim -> mutated copy:
|
||||
# 56c56
|
||||
# < ((cy mod ChunkCells) * ChunkCells) + (cx mod ChunkCells)
|
||||
# ---
|
||||
# > (cy mod ChunkCells) + (cx mod ChunkCells)
|
||||
[FAILED] the chunk bitmap layout is pinned
|
||||
[OK] one chunk covers 64x64 cells
|
||||
[FAILED] a dirty chunk carries the whole chunk, not just the new cells
|
||||
[OK] a chunk of a map edge keeps out-of-scene cells at zero
|
||||
[FAILED] two chunks in one chunk row are both written
|
||||
[FAILED] a second write to the same chunk replaces the bitmap
|
||||
[OK] a chunk row of the wrong size is refused by the schema
|
||||
[FAILED] restore: the stored cells come back exactly
|
||||
[OK] restore: two players' explored never mix
|
||||
[OK] restore: an empty store restores nothing and a removed player takes its chunks
|
||||
[OK] a mutation-scale chunk write stays inside the 4.3 commit budget
|
||||
Error: execution of an external program failed: '/tmp/fffmut.c3RXFT/ag/w/tests/texplored'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] the chunk bitmap layout is pinned
|
||||
|
||||
ag: exit=1 expected_failed=1 ok
|
||||
## ah: a cell coordinate is used as a chunk coordinate
|
||||
# diff server/explored.nim -> mutated copy:
|
||||
# 46c46
|
||||
# < cell div ChunkCells
|
||||
# ---
|
||||
# > cell
|
||||
[OK] the chunk bitmap layout is pinned
|
||||
[FAILED] one chunk covers 64x64 cells
|
||||
[FAILED] a dirty chunk carries the whole chunk, not just the new cells
|
||||
[OK] a chunk of a map edge keeps out-of-scene cells at zero
|
||||
[FAILED] two chunks in one chunk row are both written
|
||||
[FAILED] a second write to the same chunk replaces the bitmap
|
||||
[OK] a chunk row of the wrong size is refused by the schema
|
||||
[FAILED] restore: the stored cells come back exactly
|
||||
/nix/store/274jzpwhdklcga24bd9cxywba9apvpic-nim-unwrapped-2.2.12/nim/lib/pure/collections/tables.nim(232) raiseKeyError
|
||||
Unhandled exception: key not found: 3 [KeyError]
|
||||
[FAILED] restore: two players' explored never mix
|
||||
[OK] restore: an empty store restores nothing and a removed player takes its chunks
|
||||
[OK] a mutation-scale chunk write stays inside the 4.3 commit budget
|
||||
Error: execution of an external program failed: '/tmp/fffmut.c3RXFT/ah/w/tests/texplored'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] one chunk covers 64x64 cells
|
||||
|
||||
ah: exit=1 expected_failed=1 ok
|
||||
## ai: restore forgets the decoded cells
|
||||
# diff server/explored.nim -> mutated copy:
|
||||
# 146c146
|
||||
# < result.mgetOrPut(pid, PlayerVision()).explored.incl idx
|
||||
# ---
|
||||
# > discard
|
||||
[OK] the chunk bitmap layout is pinned
|
||||
[OK] one chunk covers 64x64 cells
|
||||
[OK] a dirty chunk carries the whole chunk, not just the new cells
|
||||
[OK] a chunk of a map edge keeps out-of-scene cells at zero
|
||||
/nix/store/274jzpwhdklcga24bd9cxywba9apvpic-nim-unwrapped-2.2.12/nim/lib/pure/collections/tables.nim(232) raiseKeyError
|
||||
Unhandled exception: key not found: 2 [KeyError]
|
||||
[FAILED] two chunks in one chunk row are both written
|
||||
/nix/store/274jzpwhdklcga24bd9cxywba9apvpic-nim-unwrapped-2.2.12/nim/lib/pure/collections/tables.nim(232) raiseKeyError
|
||||
Unhandled exception: key not found: 2 [KeyError]
|
||||
[FAILED] a second write to the same chunk replaces the bitmap
|
||||
[OK] a chunk row of the wrong size is refused by the schema
|
||||
/nix/store/274jzpwhdklcga24bd9cxywba9apvpic-nim-unwrapped-2.2.12/nim/lib/pure/collections/tables.nim(232) raiseKeyError
|
||||
Unhandled exception: key not found: 2 [KeyError]
|
||||
[FAILED] restore: the stored cells come back exactly
|
||||
/nix/store/274jzpwhdklcga24bd9cxywba9apvpic-nim-unwrapped-2.2.12/nim/lib/pure/collections/tables.nim(232) raiseKeyError
|
||||
Unhandled exception: key not found: 2 [KeyError]
|
||||
[FAILED] restore: two players' explored never mix
|
||||
[OK] restore: an empty store restores nothing and a removed player takes its chunks
|
||||
[OK] a mutation-scale chunk write stays inside the 4.3 commit budget
|
||||
Error: execution of an external program failed: '/tmp/fffmut.c3RXFT/ai/w/tests/texplored'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] restore: the stored cells come back exactly
|
||||
|
||||
ai: exit=1 expected_failed=1 ok
|
||||
## aj: explored chunks keyed by scene, not player
|
||||
# diff server/explored.nim -> mutated copy:
|
||||
# 127c127
|
||||
# < db.exec(ps, c.playerId, sceneId, c.cx, c.cy, c.bits)
|
||||
# ---
|
||||
# > db.exec(ps, sceneId, sceneId, c.cx, c.cy, c.bits)
|
||||
[OK] the chunk bitmap layout is pinned
|
||||
[OK] one chunk covers 64x64 cells
|
||||
[OK] a dirty chunk carries the whole chunk, not just the new cells
|
||||
[OK] a chunk of a map edge keeps out-of-scene cells at zero
|
||||
/nix/store/274jzpwhdklcga24bd9cxywba9apvpic-nim-unwrapped-2.2.12/nim/lib/pure/collections/tables.nim(232) raiseKeyError
|
||||
Unhandled exception: key not found: 2 [KeyError]
|
||||
[FAILED] two chunks in one chunk row are both written
|
||||
/nix/store/274jzpwhdklcga24bd9cxywba9apvpic-nim-unwrapped-2.2.12/nim/lib/pure/collections/tables.nim(232) raiseKeyError
|
||||
Unhandled exception: key not found: 2 [KeyError]
|
||||
[FAILED] a second write to the same chunk replaces the bitmap
|
||||
[OK] a chunk row of the wrong size is refused by the schema
|
||||
/nix/store/274jzpwhdklcga24bd9cxywba9apvpic-nim-unwrapped-2.2.12/nim/lib/pure/collections/tables.nim(232) raiseKeyError
|
||||
Unhandled exception: key not found: 2 [KeyError]
|
||||
[FAILED] restore: the stored cells come back exactly
|
||||
/nix/store/274jzpwhdklcga24bd9cxywba9apvpic-nim-unwrapped-2.2.12/nim/lib/pure/collections/tables.nim(232) raiseKeyError
|
||||
Unhandled exception: key not found: 2 [KeyError]
|
||||
[FAILED] restore: two players' explored never mix
|
||||
[FAILED] restore: an empty store restores nothing and a removed player takes its chunks
|
||||
[OK] a mutation-scale chunk write stays inside the 4.3 commit budget
|
||||
Error: execution of an external program failed: '/tmp/fffmut.c3RXFT/aj/w/tests/texplored'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] restore: two players' explored never mix
|
||||
|
||||
aj: exit=1 expected_failed=1 ok
|
||||
## ak: a chunk rewrite is ignored
|
||||
# diff server/explored.nim -> mutated copy:
|
||||
# 116c116
|
||||
# < ON CONFLICT(player_id, scene_id, cx, cy) DO UPDATE SET bits = excluded.bits"""
|
||||
# ---
|
||||
# > ON CONFLICT(player_id, scene_id, cx, cy) DO NOTHING"""
|
||||
[OK] the chunk bitmap layout is pinned
|
||||
[OK] one chunk covers 64x64 cells
|
||||
[OK] a dirty chunk carries the whole chunk, not just the new cells
|
||||
[OK] a chunk of a map edge keeps out-of-scene cells at zero
|
||||
[OK] two chunks in one chunk row are both written
|
||||
[FAILED] a second write to the same chunk replaces the bitmap
|
||||
[OK] a chunk row of the wrong size is refused by the schema
|
||||
[OK] restore: the stored cells come back exactly
|
||||
[OK] restore: two players' explored never mix
|
||||
[OK] restore: an empty store restores nothing and a removed player takes its chunks
|
||||
[OK] a mutation-scale chunk write stays inside the 4.3 commit budget
|
||||
Error: execution of an external program failed: '/tmp/fffmut.c3RXFT/ak/w/tests/texplored'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] a second write to the same chunk replaces the bitmap
|
||||
|
||||
ak: exit=1 expected_failed=1 ok
|
||||
## al: dirty chunks keyed by row only
|
||||
# diff server/explored.nim -> mutated copy:
|
||||
# 105c105
|
||||
# < let key = ccy * sc.chunkCols + ccx
|
||||
# ---
|
||||
# > let key = ccy
|
||||
[OK] the chunk bitmap layout is pinned
|
||||
[OK] one chunk covers 64x64 cells
|
||||
[OK] a dirty chunk carries the whole chunk, not just the new cells
|
||||
[OK] a chunk of a map edge keeps out-of-scene cells at zero
|
||||
[FAILED] two chunks in one chunk row are both written
|
||||
[OK] a second write to the same chunk replaces the bitmap
|
||||
[OK] a chunk row of the wrong size is refused by the schema
|
||||
[FAILED] restore: the stored cells come back exactly
|
||||
[OK] restore: two players' explored never mix
|
||||
[OK] restore: an empty store restores nothing and a removed player takes its chunks
|
||||
[OK] a mutation-scale chunk write stays inside the 4.3 commit budget
|
||||
Error: execution of an external program failed: '/tmp/fffmut.c3RXFT/al/w/tests/texplored'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] two chunks in one chunk row are both written
|
||||
|
||||
al: exit=1 expected_failed=1 ok
|
||||
exit=0
|
||||
|
||||
Reference in New Issue
Block a user