projects-timfalken-com allianties
unit_tests
Passed Started 3 days ago by timfa
Running on Steve
Log timestamps in UTC.
- 117:16:55
Using docker image node:20-bookworm ... - 217:16:55
Using docker image sha256:8f693eaa7e0a8e71560c9a82b55fd54c2ae920a2ba5d2cde28bac7d1c01c9ba5 for node:20-bookworm with digest node@sha256:8f693eaa7e0a8e71560c9a82b55fd54c2ae920a2ba5d2cde28bac7d1c01c9ba5 ...
- 317:16:55
Running on Steve via BlueGit... - 417:16:55
Working directory: /workspace - 517:16:55
Pipeline #714, job #2765
- 617:16:57
debconf: delaying package configuration, since apt-utils is not installed - 717:17:02
TAP version 13 - 817:17:02
# Subtest: Avatar helpers - 917:17:02
# Subtest: makes initials from names - 1017:17:02
ok 1 - makes initials from names - 1117:17:02
--- - 1217:17:02
duration_ms: 0.950282 - 1317:17:02
... - 1417:17:02
# Subtest: rejects empty, whitespace, script and failed URLs - 1517:17:02
ok 2 - rejects empty, whitespace, script and failed URLs - 1617:17:02
--- - 1717:17:02
duration_ms: 0.490935 - 1817:17:02
... - 1917:17:02
# Subtest: picks readable text colour - 2017:17:02
ok 3 - picks readable text colour - 2117:17:02
--- - 2217:17:02
duration_ms: 0.271742 - 2317:17:02
... - 2417:17:02
1..3 - 2517:17:02
ok 1 - Avatar helpers - 2617:17:02
--- - 2717:17:02
duration_ms: 2.639095 - 2817:17:02
type: 'suite' - 2917:17:02
... - 3017:17:02
# Subtest: Avatar.piece - 3117:17:02
# Subtest: without avatar: coloured circle with initials, no img - 3217:17:02
ok 1 - without avatar: coloured circle with initials, no img - 3317:17:02
--- - 3417:17:02
duration_ms: 0.642431 - 3517:17:02
... - 3617:17:02
# Subtest: image error removes only the img; the token itself stays and keeps initials - 3717:17:02
ok 2 - image error removes only the img; the token itself stays and keeps initials - 3817:17:02
--- - 3917:17:02
duration_ms: 1.047325 - 4017:17:02
... - 4117:17:02
# Subtest: loaded image hides initials via has-img; remembered across renders - 4217:17:02
ok 3 - loaded image hides initials via has-img; remembered across renders - 4317:17:02
--- - 4417:17:02
duration_ms: 0.36601 - 4517:17:02
... - 4617:17:02
# Subtest: dead players keep the dead style; missing colour gets a deterministic one - 4717:17:02
ok 4 - dead players keep the dead style; missing colour gets a deterministic one - 4817:17:02
--- - 4917:17:02
duration_ms: 0.342786 - 5017:17:02
... - 5117:17:02
1..4 - 5217:17:02
ok 2 - Avatar.piece - 5317:17:02
--- - 5417:17:02
duration_ms: 2.672698 - 5517:17:02
type: 'suite' - 5617:17:02
... - 5717:17:02
# Subtest: deploy_guard - 5817:17:02
# Subtest: expands $timftproot and ${timftproot} and collapses double slashes - 5917:17:02
ok 1 - expands $timftproot and ${timftproot} and collapses double slashes - 6017:17:02
--- - 6117:17:02
duration_ms: 48.074907 - 6217:17:02
... - 6317:17:02
# Subtest: refuses the FTP root, a missing secret, and a non-allianties leaf - 6417:17:02
ok 2 - refuses the FTP root, a missing secret, and a non-allianties leaf - 6517:17:02
--- - 6617:17:02
duration_ms: 41.995767 - 6717:17:02
... - 6817:17:02
# Subtest: the CLI exits 0 for a good path and does not print the path - 6917:17:02
ok 3 - the CLI exits 0 for a good path and does not print the path - 7017:17:02
--- - 7117:17:02
duration_ms: 13.707249 - 7217:17:02
... - 7317:17:02
1..3 - 7417:17:02
ok 3 - deploy_guard - 7517:17:02
--- - 7617:17:02
duration_ms: 104.937319 - 7717:17:02
type: 'suite' - 7817:17:02
... - 7917:17:02
# Subtest: assert_safe_target - 8017:17:02
# Subtest: allows a new, empty, previous, or leftover-files folder and only logs foreign names - 8117:17:02
ok 1 - allows a new, empty, previous, or leftover-files folder and only logs foreign names - 8217:17:02
--- - 8317:17:02
duration_ms: 25.457962 - 8417:17:02
... - 8517:17:02
# Subtest: the FTP mirror never deletes, never uploads favicon.ico, and leaves data/ alone - 8617:17:02
ok 2 - the FTP mirror never deletes, never uploads favicon.ico, and leaves data/ alone - 8717:17:02
--- - 8817:17:02
duration_ms: 23.348324 - 8917:17:02
... - 9017:17:02
1..2 - 9117:17:02
ok 4 - assert_safe_target - 9217:17:02
--- - 9317:17:02
duration_ms: 49.011873 - 9417:17:02
type: 'suite' - 9517:17:02
... - 9617:17:02
# Subtest: auth_config_php - 9717:17:02
# Subtest: is covered by ci/test_deploy_auth.py (PHP escaping, empty secret, no leak in lftp) - 9817:17:02
ok 1 - is covered by ci/test_deploy_auth.py (PHP escaping, empty secret, no leak in lftp) - 9917:17:02
--- - 10017:17:02
duration_ms: 45.984787 - 10117:17:02
... - 10217:17:02
1..1 - 10317:17:02
ok 5 - auth_config_php - 10417:17:02
--- - 10517:17:02
duration_ms: 46.266618 - 10617:17:02
type: 'suite' - 10717:17:02
... - 10817:17:02
# Subtest: i18n catalog - 10917:17:02
# Subtest: lists every supported locale - 11017:17:02
ok 1 - lists every supported locale - 11117:17:02
--- - 11217:17:02
duration_ms: 1.103801 - 11317:17:02
... - 11417:17:02
# Subtest: has the same non-empty keys in every language - 11517:17:02
ok 2 - has the same non-empty keys in every language - 11617:17:02
--- - 11717:17:02
duration_ms: 1.991034 - 11817:17:02
... - 11917:17:02
# Subtest: keeps English placeholders in every translation - 12017:17:02
ok 3 - keeps English placeholders in every translation - 12117:17:02
--- - 12217:17:02
duration_ms: 3.638809 - 12317:17:02
... - 12417:17:02
# Subtest: never translates the game name Allianties - 12517:17:02
ok 4 - never translates the game name Allianties - 12617:17:02
--- - 12717:17:02
duration_ms: 0.247476 - 12817:17:02
... - 12917:17:02
# Subtest: maps every known server error code - 13017:17:02
ok 5 - maps every known server error code - 13117:17:02
--- - 13217:17:02
duration_ms: 0.18032 - 13317:17:02
... - 13417:17:02
1..5 - 13517:17:02
ok 6 - i18n catalog - 13617:17:02
--- - 13717:17:02
duration_ms: 8.212342 - 13817:17:02
type: 'suite' - 13917:17:02
... - 14017:17:02
# Subtest: Rules grid and Chebyshev - 14117:17:02
# Subtest: suggests max(6 + ceil(n/2), n + 1), capped at 24 - 14217:17:02
ok 1 - suggests max(6 + ceil(n/2), n + 1), capped at 24 - 14317:17:02
--- - 14417:17:02
duration_ms: 0.693006 - 14517:17:02
... - 14617:17:02
# Subtest: uses Chebyshev distance (diagonals included) - 14717:17:02
ok 2 - uses Chebyshev distance (diagonals included) - 14817:17:02
--- - 14917:17:02
duration_ms: 0.166334 - 15017:17:02
... - 15117:17:02
# Subtest: passable accounts for arena inset - 15217:17:02
ok 3 - passable accounts for arena inset - 15317:17:02
--- - 15417:17:02
duration_ms: 0.170812 - 15517:17:02
... - 15617:17:02
1..3 - 15717:17:02
ok 7 - Rules grid and Chebyshev - 15817:17:02
--- - 15917:17:02
duration_ms: 1.932753 - 16017:17:02
type: 'suite' - 16117:17:02
... - 16217:17:02
# Subtest: Rules cease-fire, midnight wrap and DST - 16317:17:02
# Subtest: treats 23:30 as cease-fire wrapping to 06:00 next day - 16417:17:02
ok 1 - treats 23:30 as cease-fire wrapping to 06:00 next day - 16517:17:02
--- - 16617:17:02
duration_ms: 17.719864 - 16717:17:02
... - 16817:17:02
# Subtest: treats the end timestamp as exclusive - 16917:17:02
ok 2 - treats the end timestamp as exclusive - 17017:17:02
--- - 17117:17:02
duration_ms: 2.154411 - 17217:17:02
... - 17317:17:02
# Subtest: handles a second daytime range and countdown seconds - 17417:17:02
ok 3 - handles a second daytime range and countdown seconds - 17517:17:02
--- - 17617:17:02
duration_ms: 2.601544 - 17717:17:02
... - 17817:17:02
# Subtest: shortens 01:00–04:00 across the 2026 spring-forward to 2 real hours - 17917:17:02
ok 4 - shortens 01:00–04:00 across the 2026 spring-forward to 2 real hours - 18017:17:02
--- - 18117:17:02
duration_ms: 1.560562 - 18217:17:02
... - 18317:17:02
# Subtest: lengthens 01:00–03:30 across the 2026 fall-back to 3.5 real hours - 18417:17:02
ok 5 - lengthens 01:00–03:30 across the 2026 fall-back to 3.5 real hours - 18517:17:02
--- - 18617:17:02
duration_ms: 1.802588 - 18717:17:02
... - 18817:17:02
# Subtest: is inactive when the rule is off or ranges are empty - 18917:17:02
ok 6 - is inactive when the rule is off or ranges are empty - 19017:17:03
--- - 19117:17:03
duration_ms: 0.285158 - 19217:17:03
... - 19317:17:03
# Subtest: merges overlapping ranges for the countdown - 19417:17:03
ok 7 - merges overlapping ranges for the countdown - 19517:17:03
--- - 19617:17:03
duration_ms: 0.940633 - 19717:17:03
... - 19817:17:03
# Subtest: formats HH:MM:SS countdowns - 19917:17:03
ok 8 - formats HH:MM:SS countdowns - 20017:17:03
--- - 20117:17:03
duration_ms: 0.156134 - 20217:17:03
... - 20317:17:03
1..8 - 20417:17:03
ok 8 - Rules cease-fire, midnight wrap and DST - 20517:17:03
--- - 20617:17:03
duration_ms: 27.722871 - 20717:17:03
type: 'suite' - 20817:17:03
... - 20917:17:03
# Subtest: Rules timelineIndex (nearest event) - 21017:17:03
# Subtest: returns 0 when there are no spends - 21117:17:03
ok 1 - returns 0 when there are no spends - 21217:17:03
--- - 21317:17:03
duration_ms: 0.161485 - 21417:17:03
... - 21517:17:03
# Subtest: maps 0 to the start and 1 to live (after the last spend) - 21617:17:03
ok 2 - maps 0 to the start and 1 to live (after the last spend) - 21717:17:03
--- - 21817:17:03
duration_ms: 0.309574 - 21917:17:03
... - 22017:17:03
# Subtest: jumps to the nearest event along the bar - 22117:17:03
ok 3 - jumps to the nearest event along the bar - 22217:17:03
--- - 22317:17:03
duration_ms: 0.125497 - 22417:17:03
... - 22517:17:03
1..3 - 22617:17:03
ok 9 - Rules timelineIndex (nearest event) - 22717:17:03
--- - 22817:17:03
duration_ms: 0.769771 - 22917:17:03
type: 'suite' - 23017:17:03
... - 23117:17:03
# Subtest: Rules.angleToMinutes (cease-fire clock) - 23217:17:03
# Subtest: maps the dial with 0 at the top, clockwise, snapped to 15 min - 23317:17:03
ok 1 - maps the dial with 0 at the top, clockwise, snapped to 15 min - 23417:17:03
--- - 23517:17:03
duration_ms: 0.155554 - 23617:17:03
... - 23717:17:03
1..1 - 23817:17:03
ok 10 - Rules.angleToMinutes (cease-fire clock) - 23917:17:03
--- - 24017:17:03
duration_ms: 0.276401 - 24117:17:03
type: 'suite' - 24217:17:03
... - 24317:17:03
# Subtest: Rules time zones (host zone → viewer local) - 24417:17:03
# Subtest: converts wall-clock times between zones, DST-aware - 24517:17:03
ok 1 - converts wall-clock times between zones, DST-aware - 24617:17:03
--- - 24717:17:03
duration_ms: 1.191647 - 24817:17:03
... - 24917:17:03
# Subtest: uses the offset of the reference day around a DST switch - 25017:17:03
ok 2 - uses the offset of the reference day around a DST switch - 25117:17:03
--- - 25217:17:03
duration_ms: 0.250713 - 25317:17:03
... - 25417:17:03
# Subtest: converts rules for a viewer; ranges may wrap midnight after conversion - 25517:17:03
ok 3 - converts rules for a viewer; ranges may wrap midnight after conversion - 25617:17:03
--- - 25717:17:03
duration_ms: 1.011086 - 25817:17:03
... - 25917:17:03
# Subtest: computes the cease-fire in the rules zone - 26017:17:03
ok 4 - computes the cease-fire in the rules zone - 26117:17:03
--- - 26217:17:03
duration_ms: 0.565636 - 26317:17:03
... - 26417:17:03
1..4 - 26517:17:03
ok 11 - Rules time zones (host zone → viewer local) - 26617:17:03
--- - 26717:17:03
duration_ms: 3.164665 - 26817:17:03
type: 'suite' - 26917:17:03
... - 27017:17:03
1..11 - 27117:17:03
# tests 37 - 27217:17:03
# suites 11 - 27317:17:03
# pass 37 - 27417:17:03
# fail 0 - 27517:17:03
# cancelled 0 - 27617:17:03
# skipped 0 - 27717:17:03
# todo 0 - 27817:17:03
# duration_ms 245.113037 - 27917:17:03
auth-config ok - 28017:17:03
Engine: grid suggestion and placement - 28117:17:03
ok 1 player → 7 (max(6+ceil(0.5), 2) = max(7, 2)) - 28217:17:03
ok 2 players → 7 (max(6+1, 3)) - 28317:17:03
ok 3 players → 8 (ceil(1.5)=2, max(8, 4)) - 28417:17:03
ok 6 players → 9 (max(6+3, 7)) - 28517:17:03
ok 9 players → 11 (ceil(4.5)=5, max(11, 10)) - 28617:17:03
ok 10 players → 11 (max(6+5, 11)) - 28717:17:03
ok 14 players → 15 (max(6+7, 15)) - 28817:17:03
ok 16 players → 17 - 28917:17:03
ok capped at MAX_GRID 24 - 29017:17:03
ok gridSize aliases suggestedGrid - 29117:17:03
ok clamp below min → 6 - 29217:17:03
ok clamp above max → 24 - 29317:17:03
ok clamp mid unchanged - 29417:17:03
ok 6×6 fits 2 - 29517:17:03
ok 6×6 has enough tiles for 16 - 29617:17:03
ok below MIN_GRID does not fit - 29717:17:03
ok above MAX_GRID does not fit - 29817:17:03
ok 6×6 max inset 1 (leaves 4×4, min arena 3) - 29917:17:03
ok 7×7 max inset 2 (leaves 3×3) - 30017:17:03
ok 4 starting positions - 30117:17:03
ok starting positions are unique - 30217:17:03
ok start in bounds 3,1 - 30317:17:03
ok start in bounds 4,3 - 30417:17:03
ok start in bounds 3,4 - 30517:17:03
ok start in bounds 1,3 - 30617:17:03
Engine: Chebyshev range - 30717:17:03
ok diagonal 2 is range 2 - 30817:17:03
ok orthogonal 2 is range 2 - 30917:17:03
ok same tile is 0 - 31017:17:03
Engine: midnight Amsterdam - 31117:17:03
ok next midnight after 23:30 is 00:00 next day: 2026-11-14 00:00:00 - 31217:17:03
ok at exactly 00:00, next is tomorrow - 31317:17:03
ok DST: next midnight still 00:00: 2026-03-29 00:00:00 - 31417:17:03
Engine: lobby and start - 31517:17:03
ok new lobby - 31617:17:03
ok jury default ON - 31717:17:03
ok shrink default OFF - 31817:17:03
ok shrink interval default 7 - 31917:17:03
ok ceasefire default OFF - 32017:17:03
ok ceasefire ranges empty by default - 32117:17:03
ok vis_shots default public - 32217:17:03
ok vis_gifts default public - 32317:17:03
ok vis_ap default public - 32417:17:03
ok vis_range default public - 32517:17:03
ok vis_lives default public - 32617:17:03
ok ap_loot default OFF - 32717:17:03
ok ap_time default 00:00 - 32817:17:03
ok lobby suggested grid 7 for 1 player - 32917:17:03
ok grid_auto default ON - 33017:17:03
ok game.grid mirrors suggestion in lobby - 33117:17:03
ok host is creator - 33217:17:03
ok start alone: min_players - 33317:17:03
ok 2 players - 33417:17:03
ok non-host cannot start - 33517:17:03
ok started - 33617:17:03
ok auto grid for 2 players is 7 - 33717:17:03
ok start with 1 AP - 33817:17:03
ok start with 3 lives - 33917:17:03
ok start with range 2 - 34017:17:03
ok not overlapping - 34117:17:03
ok next AP at next midnight: 2026-11-14 00:00:00 - 34217:17:03
Engine: move, blocked, AP - 34317:17:03
ok Alice has at least one move - 34417:17:03
ok moved - 34517:17:03
ok spent 1 AP - 34617:17:03
ok move event - 34717:17:03
ok move is a spend tick - 34817:17:03
ok no AP: invalid_move - 34917:17:03
Engine: shoot and death and win - 35017:17:03
ok Bob is in range 2 (actually dist 1) - 35117:17:03
ok Bob has 2 lives - 35217:17:03
ok Bob is dead - 35317:17:03
ok game finished - 35417:17:03
ok Alice wins - 35517:17:03
ok death event - 35617:17:03
ok win event - 35717:17:03
Engine: give AP and upgrade - 35817:17:03
ok Alice spent 2 - 35917:17:03
ok Bob received 2 - 36017:17:03
ok bad_give - 36117:17:03
ok range is now 3 - 36217:17:03
ok upgrade costs 1 - 36317:17:03
Engine: out of range and occupied - 36417:17:03
ok Bob at (5,5) is out of range 2 from (0,0) - 36517:17:03
ok out_of_range - 36617:17:03
ok cannot move onto Bob - 36717:17:03
Engine: surrender - 36817:17:03
ok Bob surrendered - 36917:17:03
ok flagged surrendered - 37017:17:03
ok Alice wins after surrender - 37117:17:03
Engine: daily AP grant - 37217:17:03
ok day is 1 - 37317:17:03
ok Alice got 1 AP - 37417:17:03
ok Bob got 1 AP - 37517:17:03
ok caught up to day 3, day=3 - 37617:17:03
ok 3 AP after 3 days (started 0): 3 - 37717:17:03
Engine: jury - 37817:17:03
ok still running with 2 alive - 37917:17:03
ok c voted a - 38017:17:03
ok d changed vote to b - 38117:17:03
ok living cannot vote - 38217:17:03
ok Alice (living) has no vote - 38317:17:03
ok Charlie sees own vote - 38417:17:03
ok votes not in present payload - 38517:17:03
ok Alice got 1+1 (tie): 2 - 38617:17:03
ok Bob got 1+1 (tie): 2 - 38717:17:03
ok votes reset after distribution - 38817:17:03
ok Alice unique jury winner: 2 - 38917:17:03
ok Bob only regular 1: 1 - 39017:17:03
ok jury off: cannot_vote - 39117:17:03
Engine: shrinking arena - 39217:17:03
ok host-chosen 6×6 - 39317:17:03
ok shrink in 2 days (interval 2, day 0): 2 - 39417:17:03
ok day 1 - 39517:17:03
ok no shrink on day 1 - 39617:17:03
ok Alice still on (0,0) - 39717:17:03
ok Alice still 3 lives - 39817:17:03
ok shrink in 1 day - 39917:17:03
ok day 2 - 40017:17:03
ok inset is 1 - 40117:17:03
ok Alice lost 1 life: 2 - 40217:17:03
ok Alice pushed inward to passable 1,1 - 40317:17:03
ok not onto Bob - 40417:17:03
ok Bob unhurt in centre - 40517:17:03
ok Alice got day-1 and day-2 AP after surviving shrink: 2 - 40617:17:03
ok legal move 1,2 is passable - 40717:17:03
ok legal move 2,1 is passable - 40817:17:03
ok does not shrink past max inset: 1 - 40917:17:03
ok no upcoming shrink at max - 41017:17:03
Engine: shrink kills and crush and draw - 41117:17:03
ok Alice died on shrink (1 life) - 41217:17:03
ok Bob died on shrink (1 life) - 41317:17:03
ok finished - 41417:17:03
ok draw when both die in the same shrink - 41517:17:03
Engine: notes and chat privacy - 41617:17:03
ok Alice sees her note on Bob - 41717:17:03
ok Bob does not see Alice’s note - 41817:17:03
ok Alice sees chat - 41917:17:03
ok Bob sees chat - 42017:17:03
Engine: modular rule flags - 42117:17:03
ok jury "0" is false - 42217:17:03
ok shrink "1" is true - 42317:17:03
ok interval clamped to max 30: 30 - 42417:17:03
ok ceasefire "1" is true - 42517:17:03
Engine: cease-fire ranges and midnight wrap - 42617:17:03
ok 2 valid ranges: 2 - 42717:17:03
ok sorted, first is 12:00 - 42817:17:03
ok wrap range kept - 42917:17:03
ok 23:30 is cease-fire (wrap) - 43017:17:03
ok ends at 06:00 next day: 2026-11-14 06:00 - 43117:17:03
ok Attack disabled during cease-fire - 43217:17:03
ok legal.ceasefire true - 43317:17:03
ok non-shoot actions still considered - 43417:17:03
ok can still move during cease-fire - 43517:17:03
ok error code ceasefire: ceasefire - 43617:17:03
ok 06:00 exactly is not cease-fire (end exclusive) - 43717:17:03
ok next cease-fire at 12:00: 12:00 - 43817:17:03
ok 12:30 is cease-fire - 43917:17:03
ok ends 13:00: 13:00 - 44017:17:03
ok 15:00 is free - 44117:17:03
ok until 22:00: 2026-11-14 22:00 - 44217:17:03
ok can shoot when not in cease-fire - 44317:17:03
ok shot landed outside cease-fire - 44417:17:03
ok 21:59 is free - 44517:17:03
ok 60 seconds until cease-fire: 60 - 44617:17:03
ok 05:59 still cease-fire - 44717:17:03
ok 60 seconds left in cease-fire: 60 - 44817:17:03
Engine: cease-fire DST spring-forward (2026-03-29 02:00→03:00) - 44917:17:03
ok 01:00 CEST-transition day is cease-fire - 45017:17:03
ok ends 04:00: 2026-03-29 04:00 - 45117:17:03
ok spring-forward 01:00-04:00 is 2 real hours: 7200 - 45217:17:03
ok 03:00 (after the jump) is still cease-fire - 45317:17:03
ok 1 hour left at 03:00: 3600 - 45417:17:03
ok 00:30 is free - 45517:17:03
ok 30 min until 01:00: 1800 - 45617:17:03
Engine: cease-fire DST fall-back (2026-10-25 03:00→02:00) - 45717:17:03
ok 01:00 fall-back day is cease-fire - 45817:17:03
ok ends 03:30: 2026-10-25 03:30 - 45917:17:03
ok fall-back 01:00-03:30 is 3.5 real hours: 12600 - 46017:17:03
ok first 02:15 (still DST) is cease-fire - 46117:17:03
ok second 02:15 (CET) is still cease-fire - 46217:17:03
ok 03:30 exactly is free (end exclusive) - 46317:17:03
Engine: cease-fire off or empty ranges - 46417:17:03
ok rule off → no info (ranges ignored) - 46517:17:03
ok on but empty ranges → treated as no cease-fire - 46617:17:03
Engine: overlapping ranges merge for countdown - 46717:17:03
ok merged overlapping ends at 13:00: 13:00 - 46817:17:03
Engine: visibility defaults and invalid values fall back to public - 46917:17:03
ok bad vis_shots → public - 47017:17:03
ok bad vis_gifts → public - 47117:17:03
ok bad vis_ap → public - 47217:17:03
ok bad vis_range → public - 47317:17:03
ok bad vis_lives → public - 47417:17:03
ok accepts elim_known_target - 47517:17:03
ok accepts anonymous - 47617:17:03
ok accepts vis_ap within_range - 47717:17:03
ok accepts known_in_range - 47817:17:03
ok accepts vis_lives within_range - 47917:17:03
ok accepts manual grid 14 - 48017:17:03
ok still accepts hidden - 48117:17:03
ok unknown vis_ap/lives values → public - 48217:17:03
Engine: vis shots — public (everyone sees, including lives_left when lives public) - 48317:17:03
ok shooter sees public shot - 48417:17:03
ok target sees public shot - 48517:17:03
ok third party sees public shot - 48617:17:03
ok third party sees shooter id - 48717:17:03
ok public lives_left on shot - 48817:17:03
ok damage is 1 - 48917:17:03
ok public lives in state - 49017:17:03
Engine: vis shots — elim_public (non-elim hidden from third party, visible to target) - 49117:17:03
ok shooter sees non-elim - 49217:17:03
ok target sees non-elim under elim_public - 49317:17:03
ok third party does not see non-elim - 49417:17:03
ok no death on non-elim - 49517:17:03
ok third party sees only the eliminating shot: 1 - 49617:17:03
ok the visible shot is the kill - 49717:17:03
ok third party sees death - 49817:17:03
ok elim_public death includes killer - 49917:17:03
ok target sees killer - 50017:17:03
ok death/alive is always public - 50117:17:03
Engine: vis shots — known_target (others never see the shot, death without by) - 50217:17:03
ok shooter sees known_target shot - 50317:17:03
ok target sees known_target shot - 50417:17:03
ok third party does not see known_target shot - 50517:17:03
ok third party still sees that B died - 50617:17:03
ok killer stripped for third party under known_target - 50717:17:03
ok target still sees who shot them - 50817:17:03
Engine: vis shots — elim_known_target (non-elim hidden even from target) - 50917:17:03
ok shooter sees non-elim under elim_known_target - 51017:17:03
ok target does NOT see non-elim shot (must deduce) - 51117:17:03
ok third party does not see non-elim - 51217:17:03
ok target still sees own lives drop - 51317:17:03
ok lives still public in this game (default) - 51417:17:03
ok target sees only the eliminating shot - 51517:17:03
ok elim shot names the shooter for the target - 51617:17:03
ok third party never sees shots under elim_known_target - 51717:17:03
ok third party death has no by - 51817:17:03
Engine: vis shots + hidden lives — lives_left stripped except for the target - 51917:17:03
ok shooter does not get target lives_left - 52017:17:03
ok target sees own lives_left - 52117:17:03
ok third party does not get lives_left - 52217:17:03
ok shooter still sees damage 1 - 52317:17:03
ok own lives always visible - 52417:17:03
ok other lives hidden from shooter - 52517:17:03
ok other lives hidden from third party - 52617:17:03
ok target sees own lives - 52717:17:03
ok alive flag still present when lives hidden - 52817:17:03
Engine: vis gifts — public, known_recipient, anonymous - 52917:17:03
ok public gift visible to third party with giver and amount - 53017:17:03
ok giver sees own gift - 53117:17:03
ok recipient sees giver - 53217:17:03
ok third party does not see known_recipient gift - 53317:17:03
ok giver sees full anonymous gift in their own log - 53417:17:03
ok recipient sees an anonymous gift event - 53517:17:03
ok event marked anonymous - 53617:17:03
ok giver id stripped for recipient - 53717:17:03
ok recipient sees the AP amount - 53817:17:03
ok recipient is named as target - 53917:17:03
ok third party does not see anonymous gift - 54017:17:03
ok recipient AP actually increased - 54117:17:03
ok stored event still has the giver (present does not mutate) - 54217:17:03
ok sanity - 54317:17:03
ok clone is independent of stored event - 54417:17:03
Engine: vis AP totals hidden - 54517:17:03
ok own AP visible when hidden rule is on - 54617:17:03
ok other AP hidden - 54717:17:03
ok third party does not see A’s AP - 54817:17:03
ok daily event present - 54917:17:03
ok hidden AP: only own grant in daily event: {"a":1} - 55017:17:03
ok jury vote counts stripped - 55117:17:03
Engine: vis range — hidden and known_in_range - 55217:17:03
ok own range after upgrade - 55317:17:03
ok other range hidden - 55417:17:03
ok upgrader sees own upgrade - 55517:17:03
ok third party does not see hidden upgrade - 55617:17:03
ok B is within A’s range, sees A’s range - 55717:17:03
ok A is within B’s range, sees B’s range - 55817:17:03
ok C is outside A’s range (dist 3 > 2) - 55917:17:03
ok A is outside C’s range (dist 3 > 2) - 56017:17:03
ok C always sees own range - 56117:17:03
ok after upgrade, C is within A’s range and sees it - 56217:17:03
ok C now also sees the upgrade event - 56317:17:03
ok A is still outside C’s range 2 - 56417:17:03
Engine: movement is always public, even with everything hidden - 56517:17:03
ok move is public - 56617:17:03
ok move names the player and destination - 56717:17:03
ok new position is in the public state - 56817:17:03
ok AP still hidden after the move - 56917:17:03
ok lives still hidden - 57017:17:03
ok range still hidden - 57117:17:03
Engine: present() does not leak hidden keys with real values - 57217:17:03
ok JSON-facing ap is null - 57317:17:03
ok JSON-facing lives is null - 57417:17:03
ok JSON-facing range is null - 57517:17:03
ok no numeric secrets for a - 57617:17:03
ok no numeric secrets for b - 57717:17:03
Engine: nextDistribution (per-lobby AP time) and DST - 57817:17:03
ok 14:00 → today 15:00: 2026-11-14 15:00:00 - 57917:17:03
ok exactly 15:00 → tomorrow 15:00: 2026-11-15 15:00:00 - 58017:17:03
ok 16:00 → tomorrow 15:00: 2026-11-15 15:00:00 - 58117:17:03
ok 00:00 path equals nextMidnight - 58217:17:03
ok ap_time normalised to HH:MM - 58317:17:03
ok bad ap_time → 00:00 - 58417:17:03
ok 24:00 invalid → 00:00 - 58517:17:03
ok DST spring: 02:30 candidate is strictly after 01:30 - 58617:17:03
ok DST spring: still that calendar day: 2026-03-29 03:30:00 CEST - 58717:17:03
ok DST spring: 04:00 exact: 2026-03-29 04:00:00 - 58817:17:03
ok DST fall-back: 02:30 that day: 2026-10-25 02:30:00 CEST - 58917:17:03
Engine: AP at a non-midnight lobby time - 59017:17:03
ok start schedules 15:00 - 59117:17:03
ok day increments at 15:00 - 59217:17:03
ok AP granted at 15:00 - 59317:17:03
ok one second before 15:00: no grant - 59417:17:03
Engine: AP loot default off; on only for eliminating shots - 59517:17:03
ok B is dead - 59617:17:03
ok dead B has 0 AP - 59717:17:03
ok loot off: A spent 1, did not receive B’s 4 (has 2) - 59817:17:03
ok loot off: no loot field on the kill shot - 59917:17:03
ok loot on: B dead, AP zeroed - 60017:17:03
ok loot on: A spent 1 (3→2) then looted 4 → 6: 6 - 60117:17:03
ok shooter sees loot amount - 60217:17:03
ok public AP: third party sees loot - 60317:17:03
ok shooter sees loot even if AP totals hidden - 60417:17:03
ok third party does not see loot amount when AP is hidden - 60517:17:03
ok shooter sees own AP including loot - 60617:17:03
ok third party still does not see A’s total - 60717:17:03
ok non-elim: no loot - 60817:17:03
ok non-elim: B keeps AP - 60917:17:03
ok B surrendered - 61017:17:03
ok surrender does not transfer AP - 61117:17:03
ok surrendered AP is zeroed, not looted - 61217:17:03
Engine: vis lives+AP within_range uses the VIEWER's range - 61317:17:03
ok A always sees own lives/AP - 61417:17:03
ok A sees B (dist 1 ≤ A’s range 2) - 61517:17:03
ok A does not see C (dist 3 > A’s range 2) - 61617:17:03
ok B sees A (dist 1 ≤ B’s range 2) - 61717:17:03
ok B does not see C (dist 3 > 2) - 61817:17:03
ok C sees neither A - 61917:17:03
ok C sees neither B - 62017:17:03
ok C sees own lives - 62117:17:03
ok within_range lives/AP: A still cannot see C (C is outside A’s range) - 62217:17:03
ok within_range lives/AP: C can see A (A is inside C’s range 4) - 62317:17:03
ok known_in_range: A CAN see C’s range (A is inside C’s range 4) — opposite of lives/AP - 62417:17:03
ok known_in_range: C cannot see A’s range (C is outside A’s range 2) - 62517:17:03
ok A range is 3 - 62617:17:03
ok after A upgrades to 3, A sees C’s lives/AP - 62717:17:03
ok A sees lives_left (B in A’s range) - 62817:17:03
ok B sees own lives_left - 62917:17:03
ok C does not see lives_left (B outside C’s range) - 63017:17:03
ok C still sees damage on a public shot - 63117:17:03
ok C does not see B’s lives in state - 63217:17:03
ok A’s daily grants: own + B, not C: {"a":1,"b":1} - 63317:17:03
ok C’s daily grants: only own: {"c":1} - 63417:17:03
ok A sees loot on eliminating shot - 63517:17:03
ok C sees the public kill shot - 63617:17:03
ok C does not see loot (A is outside C’s range) - 63717:17:03
ok shrink event present for A - 63817:17:03
ok stored shrink has hurt list - 63917:17:03
ok A’s filtered hurt id a is someone whose lives A may see - 64017:17:03
Engine: lobby grid option — auto suggestion and manual lock - 64117:17:03
ok new lobby 7 and auto - 64217:17:03
ok 2 players still 7 - 64317:17:03
ok 3rd player bumps to 8 (ceil(1.5)=2) - 64417:17:03
ok 4 players stay 8 - 64517:17:03
ok 5th player bumps to 9 - 64617:17:03
ok 10 players - 64717:17:03
ok 10 players → 11 - 64817:17:03
ok 11th player bumps suggestion to 12 - 64917:17:03
ok leave drops suggestion back to 11 - 65017:17:03
ok manual 14 - 65117:17:03
ok 16 players - 65217:17:03
ok manual 14 stays at 16 players (suggestion would be 17) - 65317:17:03
ok starts on host’s 14×14 - 65417:17:03
ok all 16 placed - 65517:17:03
ok placed in bounds - 65617:17:03
ok unique start 7,1 - 65717:17:03
ok placed in bounds - 65817:17:03
ok unique start 9,1 - 65917:17:03
ok placed in bounds - 66017:17:03
ok unique start 10,3 - 66117:17:03
ok placed in bounds - 66217:17:03
ok unique start 12,4 - 66317:17:03
ok placed in bounds - 66417:17:03
ok unique start 12,7 - 66517:17:03
ok placed in bounds - 66617:17:03
ok unique start 12,9 - 66717:17:03
ok placed in bounds - 66817:17:03
ok unique start 10,10 - 66917:17:03
ok placed in bounds - 67017:17:03
ok unique start 9,12 - 67117:17:03
ok placed in bounds - 67217:17:03
ok unique start 7,12 - 67317:17:03
ok placed in bounds - 67417:17:03
ok unique start 4,12 - 67517:17:03
ok placed in bounds - 67617:17:03
ok unique start 3,10 - 67717:17:03
ok placed in bounds - 67817:17:03
ok unique start 1,9 - 67917:17:03
ok placed in bounds - 68017:17:03
ok unique start 1,7 - 68117:17:03
ok placed in bounds - 68217:17:03
ok unique start 1,4 - 68317:17:03
ok placed in bounds - 68417:17:03
ok unique start 3,3 - 68517:17:03
ok placed in bounds - 68617:17:03
ok unique start 4,1 - 68717:17:03
ok host may start a 6×6 - 68817:17:03
ok auto start uses suggested 7 for 2 players - 68917:17:03
Engine: rules time zone (host's IANA zone) - 69017:17:03
ok tz default Europe/Amsterdam - 69117:17:03
ok accepts America/New_York - 69217:17:03
ok unknown zone → Amsterdam - 69317:17:03
ok raw offset rejected (no DST rules) - 69417:17:03
ok UTC accepted - 69517:17:03
ok NY 09:00 in winter = 14:00 UTC: 2026-11-14 14:00 - 69617:17:03
ok NY 09:00 in summer (DST) = 13:00 UTC: 2026-07-14 13:00 - 69717:17:03
ok NY spring-forward: 09:00→09:00 is 23 real hours - 69817:17:03
ok Tokyo 08:00 = 23:00 UTC - 69917:17:03
ok cease-fire active at 23:30 Tokyo - 70017:17:03
ok not active at 23:30 Amsterdam (07:30 Tokyo) - 70117:17:03
ok Tokyo cease-fire ends 06:00 next day (midnight wrap) - 70217:17:03
ok present() reports the rules zone - 70317:17:03
Engine: no hearts, no buying lives (options do not exist) - 70417:17:03
ok hearts / buy-lives are not accepted rule keys - 70517:17:03
- 70617:17:03
Engine passed: 387 Failed: 0 - 70717:17:03
Store: lobby, join, start, actions, sync - 70817:17:03
ok create lobby - 70917:17:03
ok status lobby - 71017:17:03
ok 6-char code: 38GBGJ - 71117:17:03
ok jury on - 71217:17:03
ok shrink off - 71317:17:03
ok ceasefire off - 71417:17:03
ok start alone refused - 71517:17:03
ok Bob joined - 71617:17:03
ok same lobby - 71717:17:03
ok re-join is idempotent - 71817:17:03
ok non-host refused - 71917:17:03
ok non-host setRules refused: not_host - 72017:17:03
ok not_host maps to HTTP 403 - 72117:17:03
ok rules unchanged after refused non-host update - 72217:17:03
ok other status codes unchanged - 72317:17:03
ok host set shrink on - 72417:17:03
ok interval 3 - 72517:17:03
ok ceasefire on - 72617:17:03
ok one range stored - 72717:17:03
ok started - 72817:17:03
ok 1 AP at start - 72917:17:03
ok view running - 73017:17:03
ok legal moves in view - 73117:17:03
ok has version - 73217:17:03
ok has server_now - 73317:17:03
ok timezone - 73417:17:03
ok unchanged sync - 73517:17:03
ok no full state when unchanged - 73617:17:03
ok lightweight fields present - 73717:17:03
ok Alice can move - 73817:17:03
ok AP spent - 73917:17:03
ok Bob sees a change - 74017:17:03
ok full state on change - 74117:17:03
ok Bob sees Alice’s new position - 74217:17:03
ok Alice sees her note - 74317:17:03
ok Bob does not - 74417:17:03
ok Alice sees message - 74517:17:03
ok Bob sees message - 74617:17:03
ok join after start refused - 74717:17:03
ok locale stored - 74817:17:03
ok locale read - 74917:17:03
ok zh-Hans normalised to zh - 75017:17:03
ok listed running game - 75117:17:03
ok Dan wins after Cara surrenders - 75217:17:03
ok unknown_code - 75317:17:03
ok bad shoot refused: out_of_range - 75417:17:03
ok AP unchanged after refused action (rollback) - 75517:17:03
safeNext - 75617:17:03
ok null next - 75717:17:03
ok empty next - 75817:17:03
ok plain path - 75917:17:03
ok join query with = - 76017:17:03
ok ampersand - 76117:17:03
ok hash fragment - 76217:17:03
ok rejects scheme - 76317:17:03
ok rejects protocol-relative - 76417:17:03
ok rejects absolute path - 76517:17:03
ok rejects backslash - 76617:17:03
- 76717:17:03
Total passed: 444 Failed: 0