results: slice 4 test and mutation logs (#19)

This commit is contained in:
2026-11-15 08:49:44 +01:00
parent 864cf26e98
commit 8b595156f0
2 changed files with 337 additions and 29 deletions
+33 -1
View File
@@ -86,6 +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
Success: Execution finished
Compiling /home/davide/Projects/GDR/FFF_vtt/tests/testutil (from package fff_vtt) using c backend
Success: Execution finished
@@ -227,7 +228,7 @@
... [OK] a payload that is not UTF-8 is malformed even when it parses as JSON bytes
... [OK] the catalogue is the 29 intents of 6.1 and the built set is a subset
... [OK] role classes: the GM-only set never swallows the intents both roles may send
... [OK] only this slice's intents answer with a real handler
... [OK] only the built slices' intents answer with a real handler
... [Suite] intent rate limit (6.4: 30/s, burst 100)
... [OK] a fresh bucket allows exactly the burst, then refuses
... [OK] refill is continuous at 30/s, capped at the burst
@@ -245,6 +246,10 @@
... [OK] the uniform move refusal carries pos and no code (5.5, T9)
... [OK] error and closing frames have no reqId
... [OK] the close-code table of 6.5 is the app range plus 1008
... [Suite] wall frames (6.1 `walls`, `wall`, `wall_gone`; GM only)
... [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
Success: Execution finished
Compiling /home/davide/Projects/GDR/FFF_vtt/tests/tscenegen (from package fff_vtt) using c backend
Nim Output [Suite] scenegen (bench scenes)
@@ -252,4 +257,31 @@
... [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/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
... [OK] an unknown scene id is not there (the wire answers not-found)
... [Suite] field parsing (6.1 field notes)
... [OK] a point is exactly two finite numbers, ints included
... [OK] kind, open and flags accept only their own shape
... [OK] undefined and null are the same as an absent field
... [Suite] wall ids (FIXED #3: per scene, monotonic, never reused)
... [OK] adds count from 1 and the counter advances
... [OK] a removal never renumbers and the next add never reuses the id
... [OK] the id counter survives a reload, even when the newest wall was removed
... [Suite] persistence (write-through, restart-identical)
... [OK] add, update, door set and remove round-trip through a reload
... [OK] authoring runs with synchronous=FULL and leaves NORMAL behind (Q12)
... [OK] a failing write leaves memory and the pragma alone
... [OK] walls load in id order whatever the insertion order was
... [Suite] validation (DESIGN 6.1 `wall.*`)
... [OK] a zero-length wall is invalid and writes nothing
... [OK] both endpoints must be inside [0,w] x [0,h]; the border itself is allowed
... [OK] a wall is never open: the stored row normalizes it
... [OK] update keeps the row's id and open flag unless the kind changes
... [OK] dot patching: only the given fields change
... [Suite] lookup outcomes (main.nim's 6.5 mapping)
... [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
Success: Execution finished
Success: All tests passed