results: slice 5 test and mutation logs (#20)
This commit is contained in:
+71
-1
@@ -86,7 +86,7 @@
|
||||
... [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 to slice 3: the scene is seeded, players and keys survive
|
||||
... [OK] a slice-2 DB migrates on: the scene is seeded, players and keys survive
|
||||
Success: Execution finished
|
||||
Compiling /home/davide/Projects/GDR/FFF_vtt/tests/testutil (from package fff_vtt) using c backend
|
||||
Success: Execution finished
|
||||
@@ -241,6 +241,7 @@
|
||||
... [OK] a second connection has its own window
|
||||
... [Suite] server frames (6.1)
|
||||
... [OK] hello carries proto, role, me and n; an unnamed player's name is null
|
||||
... [OK] a named recipient's hello carries the scene block, and the GM also `extra`
|
||||
... [OK] ack ok carries its result fields and never a code
|
||||
... [OK] a refusal is a static code and no state
|
||||
... [OK] the uniform move refusal carries pos and no code (5.5, T9)
|
||||
@@ -257,6 +258,75 @@
|
||||
... [OK] doors are every 10th wall, all closed; walls stay inside the world (+- jitter)
|
||||
... [OK] walls are non-degenerate and axis-ish segments of room-edge length
|
||||
Success: Execution finished
|
||||
Compiling /home/davide/Projects/GDR/FFF_vtt/tests/ttokens (from package fff_vtt) using c backend
|
||||
Nim Output [Suite] ids (DESIGN 8, FIXED #3: random, opaque, 12 chars)
|
||||
... [OK] 12 characters from the documented alphabet
|
||||
... [OK] freshId never returns an id that is taken
|
||||
... [Suite] names and kinds (DESIGN 6.5: 1..64 code points, trimmed, no control characters)
|
||||
... [OK] a name is trimmed, non-empty and free of control characters
|
||||
... [OK] kind is a short free string
|
||||
... [OK] vision_radius is a positive finite number or null
|
||||
... [Suite] the `vision` flag (Q7, DESIGN 8)
|
||||
... [OK] only a true boolean flag counts
|
||||
... [OK] the range is the token's own radius when it has vision, else the scene default
|
||||
... [OK] the effective radius is the scene default in this slice
|
||||
... [Suite] persistence (write-through, restart-identical)
|
||||
... [OK] create assigns the id, stores every column and reloads identically
|
||||
... [OK] a controller round-trips, and a move rewrites only the position
|
||||
... [OK] update replaces the whole row and keeps the id
|
||||
... [OK] remove deletes the row; a second remove reports nothing
|
||||
... [OK] player.remove hands the player's tokens to the GM (DESIGN 3.2)
|
||||
... [OK] tokens load in creation order
|
||||
... [Suite] validation (DESIGN 6.1)
|
||||
... [OK] an out-of-bounds position writes nothing
|
||||
... [OK] an empty name writes nothing
|
||||
... [OK] the same id is never handed out twice by the caller-supplied taken list
|
||||
... [OK] a lookup by id is exact
|
||||
Success: Execution finished
|
||||
Compiling /home/davide/Projects/GDR/FFF_vtt/tests/tviews (from package fff_vtt) using c backend
|
||||
Nim Output [Suite] GM view (3.1: everything, with the GM-only extras)
|
||||
... [OK] every token, in token order, with controller and both names
|
||||
... [OK] a GM-controlled token shows controller null
|
||||
... [OK] the GM never gets vision polygons or explored cells
|
||||
... [Suite] player view (3.1: controlled always, LOS + not gm_only otherwise)
|
||||
... [OK] the set of tokens follows the visibility rule
|
||||
... [OK] a player frame carries no GM-only field and no wall-like key
|
||||
... [OK] the controller gets `mine`, the owner bucket and its vision_radius
|
||||
... [OK] a scan of every player frame finds no wall-ish or GM-only key
|
||||
... [Suite] diff (6.4: only what changed)
|
||||
... [OK] the first pass sends the resync order, then nothing changes and nothing is sent
|
||||
... [OK] a token that moved sends one `token` frame with the new position
|
||||
... [OK] leaving view sends `token_gone` once, and never for a token that was never sent
|
||||
... [OK] a token becoming gm_only is taken away from a player who could see it (6.1)
|
||||
... [OK] vision is re-sent only when the polygons change
|
||||
... [OK] a changed wall is enough to re-send vision
|
||||
... [Suite] frames (6.1)
|
||||
... [OK] explored full is RLE rows of contiguous columns
|
||||
... [OK] explored fresh is a list of [cx, cy]
|
||||
... [OK] the vision payload uses integer pixels (6.4, Q16 FIXED)
|
||||
... [OK] the hello scene block carries the 6.1 fields and no counts
|
||||
Success: Execution finished
|
||||
Compiling /home/davide/Projects/GDR/FFF_vtt/tests/tvision (from package fff_vtt) using c backend
|
||||
Nim Output [Suite] polygons (5.1: one per controlled token with the `vision` flag)
|
||||
... [OK] only the player's own vision tokens produce one, in token order
|
||||
... [OK] a player with no vision token has no polygons at all
|
||||
... [OK] the polygon is bounded by the token's range, and a closer wall cuts it
|
||||
... [OK] the token's own vision_radius overrides the scene default
|
||||
... [OK] an open door does not block; closing it does (5.1, 5.5)
|
||||
... [Suite] explored (5.1, 8: strictly per player, only grows)
|
||||
... [OK] the cells under the polygon are explored, and `fresh` reports them once
|
||||
... [OK] moving adds cells and never forgets the old ones
|
||||
... [OK] a closed door hides the cells behind it; opening it adds them
|
||||
... [OK] each player has their own set; nobody shares explored cells (Q9 FIXED)
|
||||
... [OK] the full payload is sorted by row and never contains a cell twice
|
||||
... [Suite] version counter (6.4: `vision` only on change)
|
||||
... [OK] ver moves with the polygons and stands still without a change
|
||||
... [Suite] token visibility (3.1)
|
||||
... [OK] a controlled token is always visible, gm_only included
|
||||
... [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
|
||||
Success: Execution finished
|
||||
Compiling /home/davide/Projects/GDR/FFF_vtt/tests/tworld (from package fff_vtt) using c backend
|
||||
Nim Output [Suite] scene (migration step 3, Q3: exactly one scene)
|
||||
... [OK] the migration seeds scene 1 with the v1 defaults, no walls, next_wall_id 1
|
||||
|
||||
Reference in New Issue
Block a user