projects-timfalken-com allianties
unit_tests
Passed Started 3 days ago by timfa
Running on Steve
Log timestamps in UTC.
- 123:28:03
Using docker image node:20-bookworm ... - 223:28:03
Using docker image sha256:8f693eaa7e0a8e71560c9a82b55fd54c2ae920a2ba5d2cde28bac7d1c01c9ba5 for node:20-bookworm with digest node@sha256:8f693eaa7e0a8e71560c9a82b55fd54c2ae920a2ba5d2cde28bac7d1c01c9ba5 ...
- 323:28:03
Running on Steve via BlueGit... - 423:28:03
Working directory: /workspace - 523:28:03
Pipeline #708, job #2747
- 623:28:05
debconf: delaying package configuration, since apt-utils is not installed - 723:28:10
TAP version 13 - 823:28:10
# Subtest: deploy_guard - 923:28:10
# Subtest: expands $timftproot and ${timftproot} and collapses double slashes - 1023:28:11
ok 1 - expands $timftproot and ${timftproot} and collapses double slashes - 1123:28:11
--- - 1223:28:11
duration_ms: 45.28615 - 1323:28:11
... - 1423:28:11
# Subtest: refuses the FTP root, a missing secret, and a non-allianties leaf - 1523:28:11
ok 2 - refuses the FTP root, a missing secret, and a non-allianties leaf - 1623:28:11
--- - 1723:28:11
duration_ms: 41.801497 - 1823:28:11
... - 1923:28:11
# Subtest: the CLI exits 0 for a good path and does not print the path - 2023:28:11
ok 3 - the CLI exits 0 for a good path and does not print the path - 2123:28:11
--- - 2223:28:11
duration_ms: 14.177952 - 2323:28:11
... - 2423:28:11
1..3 - 2523:28:11
ok 1 - deploy_guard - 2623:28:11
--- - 2723:28:11
duration_ms: 102.42659 - 2823:28:11
type: 'suite' - 2923:28:11
... - 3023:28:11
# Subtest: assert_safe_target - 3123:28:11
# Subtest: allows a new, empty, previous, or leftover-files folder and only logs foreign names - 3223:28:11
ok 1 - allows a new, empty, previous, or leftover-files folder and only logs foreign names - 3323:28:11
--- - 3423:28:11
duration_ms: 26.996983 - 3523:28:11
... - 3623:28:11
# Subtest: the FTP mirror never deletes, never uploads favicon.ico, and leaves data/ alone - 3723:28:11
ok 2 - the FTP mirror never deletes, never uploads favicon.ico, and leaves data/ alone - 3823:28:11
--- - 3923:28:11
duration_ms: 24.293243 - 4023:28:11
... - 4123:28:11
1..2 - 4223:28:11
ok 2 - assert_safe_target - 4323:28:11
--- - 4423:28:11
duration_ms: 51.539425 - 4523:28:11
type: 'suite' - 4623:28:11
... - 4723:28:11
# Subtest: auth_config_php - 4823:28:11
# Subtest: is covered by ci/test_deploy_auth.py (PHP escaping, empty secret, no leak in lftp) - 4923:28:11
ok 1 - is covered by ci/test_deploy_auth.py (PHP escaping, empty secret, no leak in lftp) - 5023:28:11
--- - 5123:28:11
duration_ms: 45.427357 - 5223:28:11
... - 5323:28:11
1..1 - 5423:28:11
ok 3 - auth_config_php - 5523:28:11
--- - 5623:28:11
duration_ms: 45.700051 - 5723:28:11
type: 'suite' - 5823:28:11
... - 5923:28:11
# Subtest: i18n catalog - 6023:28:11
# Subtest: lists every supported locale - 6123:28:11
ok 1 - lists every supported locale - 6223:28:11
--- - 6323:28:11
duration_ms: 1.087502 - 6423:28:11
... - 6523:28:11
# Subtest: has the same non-empty keys in every language - 6623:28:11
ok 2 - has the same non-empty keys in every language - 6723:28:11
--- - 6823:28:11
duration_ms: 1.926494 - 6923:28:11
... - 7023:28:11
# Subtest: keeps English placeholders in every translation - 7123:28:11
ok 3 - keeps English placeholders in every translation - 7223:28:11
--- - 7323:28:11
duration_ms: 3.057878 - 7423:28:11
... - 7523:28:11
# Subtest: never translates the game name Allianties - 7623:28:11
ok 4 - never translates the game name Allianties - 7723:28:11
--- - 7823:28:11
duration_ms: 0.200658 - 7923:28:11
... - 8023:28:11
# Subtest: maps every known server error code - 8123:28:11
ok 5 - maps every known server error code - 8223:28:11
--- - 8323:28:11
duration_ms: 0.165973 - 8423:28:11
... - 8523:28:11
1..5 - 8623:28:11
ok 4 - i18n catalog - 8723:28:11
--- - 8823:28:11
duration_ms: 7.449853 - 8923:28:11
type: 'suite' - 9023:28:11
... - 9123:28:11
# Subtest: Rules grid and Chebyshev - 9223:28:11
# Subtest: suggests max(6 + ceil(n/2), n + 1), capped at 24 - 9323:28:11
ok 1 - suggests max(6 + ceil(n/2), n + 1), capped at 24 - 9423:28:11
--- - 9523:28:11
duration_ms: 0.677078 - 9623:28:11
... - 9723:28:11
# Subtest: uses Chebyshev distance (diagonals included) - 9823:28:11
ok 2 - uses Chebyshev distance (diagonals included) - 9923:28:11
--- - 10023:28:11
duration_ms: 0.125747 - 10123:28:11
... - 10223:28:11
# Subtest: passable accounts for arena inset - 10323:28:11
ok 3 - passable accounts for arena inset - 10423:28:11
--- - 10523:28:11
duration_ms: 0.135435 - 10623:28:11
... - 10723:28:11
1..3 - 10823:28:11
ok 5 - Rules grid and Chebyshev - 10923:28:11
--- - 11023:28:11
duration_ms: 1.910453 - 11123:28:11
type: 'suite' - 11223:28:11
... - 11323:28:11
# Subtest: Rules cease-fire, midnight wrap and DST - 11423:28:11
# Subtest: treats 23:30 as cease-fire wrapping to 06:00 next day - 11523:28:11
ok 1 - treats 23:30 as cease-fire wrapping to 06:00 next day - 11623:28:11
--- - 11723:28:11
duration_ms: 25.173964 - 11823:28:11
... - 11923:28:11
# Subtest: treats the end timestamp as exclusive - 12023:28:11
ok 2 - treats the end timestamp as exclusive - 12123:28:11
--- - 12223:28:11
duration_ms: 12.820853 - 12323:28:11
... - 12423:28:11
# Subtest: handles a second daytime range and countdown seconds - 12523:28:11
ok 3 - handles a second daytime range and countdown seconds - 12623:28:11
--- - 12723:28:11
duration_ms: 30.294683 - 12823:28:11
... - 12923:28:11
# Subtest: shortens 01:00–04:00 across the 2026 spring-forward to 2 real hours - 13023:28:11
ok 4 - shortens 01:00–04:00 across the 2026 spring-forward to 2 real hours - 13123:28:11
--- - 13223:28:11
duration_ms: 16.982222 - 13323:28:11
... - 13423:28:11
# Subtest: lengthens 01:00–03:30 across the 2026 fall-back to 3.5 real hours - 13523:28:11
ok 5 - lengthens 01:00–03:30 across the 2026 fall-back to 3.5 real hours - 13623:28:11
--- - 13723:28:11
duration_ms: 18.97463 - 13823:28:11
... - 13923:28:11
# Subtest: is inactive when the rule is off or ranges are empty - 14023:28:11
ok 6 - is inactive when the rule is off or ranges are empty - 14123:28:11
--- - 14223:28:11
duration_ms: 1.238366 - 14323:28:11
... - 14423:28:11
# Subtest: merges overlapping ranges for the countdown - 14523:28:11
ok 7 - merges overlapping ranges for the countdown - 14623:28:11
--- - 14723:28:11
duration_ms: 13.21192 - 14823:28:11
... - 14923:28:11
# Subtest: formats HH:MM:SS countdowns - 15023:28:11
ok 8 - formats HH:MM:SS countdowns - 15123:28:11
--- - 15223:28:11
duration_ms: 0.210386 - 15323:28:11
... - 15423:28:11
1..8 - 15523:28:11
ok 6 - Rules cease-fire, midnight wrap and DST - 15623:28:11
--- - 15723:28:11
duration_ms: 119.662411 - 15823:28:11
type: 'suite' - 15923:28:11
... - 16023:28:11
# Subtest: Rules timelineIndex (nearest event) - 16123:28:11
# Subtest: returns 0 when there are no spends - 16223:28:11
ok 1 - returns 0 when there are no spends - 16323:28:11
--- - 16423:28:11
duration_ms: 0.168938 - 16523:28:11
... - 16623:28:11
# Subtest: maps 0 to the start and 1 to live (after the last spend) - 16723:28:11
ok 2 - maps 0 to the start and 1 to live (after the last spend) - 16823:28:11
--- - 16923:28:11
duration_ms: 0.160172 - 17023:28:11
... - 17123:28:11
# Subtest: jumps to the nearest event along the bar - 17223:28:11
ok 3 - jumps to the nearest event along the bar - 17323:28:11
--- - 17423:28:11
duration_ms: 0.124905 - 17523:28:11
... - 17623:28:11
1..3 - 17723:28:11
ok 7 - Rules timelineIndex (nearest event) - 17823:28:11
--- - 17923:28:11
duration_ms: 0.630799 - 18023:28:11
type: 'suite' - 18123:28:11
... - 18223:28:11
1..7 - 18323:28:11
# tests 25 - 18423:28:11
# suites 7 - 18523:28:11
# pass 25 - 18623:28:11
# fail 0 - 18723:28:11
# cancelled 0 - 18823:28:11
# skipped 0 - 18923:28:11
# todo 0 - 19023:28:11
# duration_ms 242.991788 - 19123:28:11
auth-config ok - 19223:28:11
Engine: grid suggestion and placement - 19323:28:11
ok 1 player → 7 (max(6+ceil(0.5), 2) = max(7, 2)) - 19423:28:11
ok 2 players → 7 (max(6+1, 3)) - 19523:28:11
ok 3 players → 8 (ceil(1.5)=2, max(8, 4)) - 19623:28:11
ok 6 players → 9 (max(6+3, 7)) - 19723:28:11
ok 9 players → 11 (ceil(4.5)=5, max(11, 10)) - 19823:28:11
ok 10 players → 11 (max(6+5, 11)) - 19923:28:11
ok 14 players → 15 (max(6+7, 15)) - 20023:28:11
ok 16 players → 17 - 20123:28:11
ok capped at MAX_GRID 24 - 20223:28:11
ok gridSize aliases suggestedGrid - 20323:28:11
ok clamp below min → 6 - 20423:28:11
ok clamp above max → 24 - 20523:28:11
ok clamp mid unchanged - 20623:28:11
ok 6×6 fits 2 - 20723:28:11
ok 6×6 has enough tiles for 16 - 20823:28:11
ok below MIN_GRID does not fit - 20923:28:11
ok above MAX_GRID does not fit - 21023:28:11
ok 6×6 max inset 1 (leaves 4×4, min arena 3) - 21123:28:11
ok 7×7 max inset 2 (leaves 3×3) - 21223:28:11
ok 4 starting positions - 21323:28:11
ok starting positions are unique - 21423:28:11
ok start in bounds 3,1 - 21523:28:11
ok start in bounds 4,3 - 21623:28:11
ok start in bounds 3,4 - 21723:28:11
ok start in bounds 1,3 - 21823:28:11
Engine: Chebyshev range - 21923:28:11
ok diagonal 2 is range 2 - 22023:28:11
ok orthogonal 2 is range 2 - 22123:28:11
ok same tile is 0 - 22223:28:11
Engine: midnight Amsterdam - 22323:28:11
ok next midnight after 23:30 is 00:00 next day: 2026-11-14 00:00:00 - 22423:28:11
ok at exactly 00:00, next is tomorrow - 22523:28:11
ok DST: next midnight still 00:00: 2026-03-29 00:00:00 - 22623:28:11
Engine: lobby and start - 22723:28:11
ok new lobby - 22823:28:11
ok jury default ON - 22923:28:11
ok shrink default OFF - 23023:28:11
ok shrink interval default 7 - 23123:28:11
ok ceasefire default OFF - 23223:28:11
ok ceasefire ranges empty by default - 23323:28:11
ok vis_shots default public - 23423:28:11
ok vis_gifts default public - 23523:28:11
ok vis_ap default public - 23623:28:11
ok vis_range default public - 23723:28:11
ok vis_lives default public - 23823:28:11
ok ap_loot default OFF - 23923:28:11
ok ap_time default 00:00 - 24023:28:11
ok lobby suggested grid 7 for 1 player - 24123:28:11
ok grid_auto default ON - 24223:28:11
ok game.grid mirrors suggestion in lobby - 24323:28:11
ok host is creator - 24423:28:11
ok start alone: min_players - 24523:28:11
ok 2 players - 24623:28:11
ok non-host cannot start - 24723:28:11
ok started - 24823:28:11
ok auto grid for 2 players is 7 - 24923:28:11
ok start with 1 AP - 25023:28:11
ok start with 3 lives - 25123:28:11
ok start with range 2 - 25223:28:11
ok not overlapping - 25323:28:11
ok next AP at next midnight: 2026-11-14 00:00:00 - 25423:28:11
Engine: move, blocked, AP - 25523:28:11
ok Alice has at least one move - 25623:28:11
ok moved - 25723:28:11
ok spent 1 AP - 25823:28:11
ok move event - 25923:28:11
ok move is a spend tick - 26023:28:11
ok no AP: invalid_move - 26123:28:11
Engine: shoot and death and win - 26223:28:11
ok Bob is in range 2 (actually dist 1) - 26323:28:11
ok Bob has 2 lives - 26423:28:11
ok Bob is dead - 26523:28:11
ok game finished - 26623:28:11
ok Alice wins - 26723:28:11
ok death event - 26823:28:11
ok win event - 26923:28:11
Engine: give AP and upgrade - 27023:28:11
ok Alice spent 2 - 27123:28:11
ok Bob received 2 - 27223:28:11
ok bad_give - 27323:28:11
ok range is now 3 - 27423:28:11
ok upgrade costs 1 - 27523:28:11
Engine: out of range and occupied - 27623:28:11
ok Bob at (5,5) is out of range 2 from (0,0) - 27723:28:11
ok out_of_range - 27823:28:11
ok cannot move onto Bob - 27923:28:11
Engine: surrender - 28023:28:11
ok Bob surrendered - 28123:28:11
ok flagged surrendered - 28223:28:11
ok Alice wins after surrender - 28323:28:11
Engine: daily AP grant - 28423:28:11
ok day is 1 - 28523:28:11
ok Alice got 1 AP - 28623:28:11
ok Bob got 1 AP - 28723:28:11
ok caught up to day 3, day=3 - 28823:28:11
ok 3 AP after 3 days (started 0): 3 - 28923:28:11
Engine: jury - 29023:28:11
ok still running with 2 alive - 29123:28:11
ok c voted a - 29223:28:11
ok d changed vote to b - 29323:28:11
ok living cannot vote - 29423:28:11
ok Alice (living) has no vote - 29523:28:11
ok Charlie sees own vote - 29623:28:11
ok votes not in present payload - 29723:28:11
ok Alice got 1+1 (tie): 2 - 29823:28:11
ok Bob got 1+1 (tie): 2 - 29923:28:11
ok votes reset after distribution - 30023:28:11
ok Alice unique jury winner: 2 - 30123:28:11
ok Bob only regular 1: 1 - 30223:28:11
ok jury off: cannot_vote - 30323:28:11
Engine: shrinking arena - 30423:28:11
ok host-chosen 6×6 - 30523:28:11
ok shrink in 2 days (interval 2, day 0): 2 - 30623:28:11
ok day 1 - 30723:28:11
ok no shrink on day 1 - 30823:28:11
ok Alice still on (0,0) - 30923:28:11
ok Alice still 3 lives - 31023:28:11
ok shrink in 1 day - 31123:28:11
ok day 2 - 31223:28:11
ok inset is 1 - 31323:28:11
ok Alice lost 1 life: 2 - 31423:28:11
ok Alice pushed inward to passable 1,1 - 31523:28:11
ok not onto Bob - 31623:28:11
ok Bob unhurt in centre - 31723:28:11
ok Alice got day-1 and day-2 AP after surviving shrink: 2 - 31823:28:11
ok legal move 1,2 is passable - 31923:28:11
ok legal move 2,1 is passable - 32023:28:11
ok does not shrink past max inset: 1 - 32123:28:11
ok no upcoming shrink at max - 32223:28:11
Engine: shrink kills and crush and draw - 32323:28:11
ok Alice died on shrink (1 life) - 32423:28:11
ok Bob died on shrink (1 life) - 32523:28:11
ok finished - 32623:28:11
ok draw when both die in the same shrink - 32723:28:11
Engine: notes and chat privacy - 32823:28:11
ok Alice sees her note on Bob - 32923:28:11
ok Bob does not see Alice’s note - 33023:28:11
ok Alice sees chat - 33123:28:11
ok Bob sees chat - 33223:28:11
Engine: modular rule flags - 33323:28:11
ok jury "0" is false - 33423:28:11
ok shrink "1" is true - 33523:28:11
ok interval clamped to max 30: 30 - 33623:28:11
ok ceasefire "1" is true - 33723:28:11
Engine: cease-fire ranges and midnight wrap - 33823:28:11
ok 2 valid ranges: 2 - 33923:28:11
ok sorted, first is 12:00 - 34023:28:11
ok wrap range kept - 34123:28:11
ok 23:30 is cease-fire (wrap) - 34223:28:11
ok ends at 06:00 next day: 2026-11-14 06:00 - 34323:28:11
ok Attack disabled during cease-fire - 34423:28:11
ok legal.ceasefire true - 34523:28:11
ok non-shoot actions still considered - 34623:28:11
ok can still move during cease-fire - 34723:28:11
ok error code ceasefire: ceasefire - 34823:28:11
ok 06:00 exactly is not cease-fire (end exclusive) - 34923:28:11
ok next cease-fire at 12:00: 12:00 - 35023:28:11
ok 12:30 is cease-fire - 35123:28:11
ok ends 13:00: 13:00 - 35223:28:11
ok 15:00 is free - 35323:28:11
ok until 22:00: 2026-11-14 22:00 - 35423:28:11
ok can shoot when not in cease-fire - 35523:28:11
ok shot landed outside cease-fire - 35623:28:11
ok 21:59 is free - 35723:28:11
ok 60 seconds until cease-fire: 60 - 35823:28:11
ok 05:59 still cease-fire - 35923:28:11
ok 60 seconds left in cease-fire: 60 - 36023:28:11
Engine: cease-fire DST spring-forward (2026-03-29 02:00→03:00) - 36123:28:11
ok 01:00 CEST-transition day is cease-fire - 36223:28:11
ok ends 04:00: 2026-03-29 04:00 - 36323:28:11
ok spring-forward 01:00-04:00 is 2 real hours: 7200 - 36423:28:11
ok 03:00 (after the jump) is still cease-fire - 36523:28:11
ok 1 hour left at 03:00: 3600 - 36623:28:11
ok 00:30 is free - 36723:28:11
ok 30 min until 01:00: 1800 - 36823:28:11
Engine: cease-fire DST fall-back (2026-10-25 03:00→02:00) - 36923:28:11
ok 01:00 fall-back day is cease-fire - 37023:28:11
ok ends 03:30: 2026-10-25 03:30 - 37123:28:11
ok fall-back 01:00-03:30 is 3.5 real hours: 12600 - 37223:28:11
ok first 02:15 (still DST) is cease-fire - 37323:28:11
ok second 02:15 (CET) is still cease-fire - 37423:28:11
ok 03:30 exactly is free (end exclusive) - 37523:28:11
Engine: cease-fire off or empty ranges - 37623:28:11
ok rule off → no info (ranges ignored) - 37723:28:11
ok on but empty ranges → treated as no cease-fire - 37823:28:11
Engine: overlapping ranges merge for countdown - 37923:28:11
ok merged overlapping ends at 13:00: 13:00 - 38023:28:11
Engine: visibility defaults and invalid values fall back to public - 38123:28:11
ok bad vis_shots → public - 38223:28:11
ok bad vis_gifts → public - 38323:28:11
ok bad vis_ap → public - 38423:28:11
ok bad vis_range → public - 38523:28:11
ok bad vis_lives → public - 38623:28:11
ok accepts elim_known_target - 38723:28:11
ok accepts anonymous - 38823:28:11
ok accepts vis_ap within_range - 38923:28:11
ok accepts known_in_range - 39023:28:11
ok accepts vis_lives within_range - 39123:28:11
ok accepts manual grid 14 - 39223:28:11
ok still accepts hidden - 39323:28:11
ok unknown vis_ap/lives values → public - 39423:28:11
Engine: vis shots — public (everyone sees, including lives_left when lives public) - 39523:28:11
ok shooter sees public shot - 39623:28:11
ok target sees public shot - 39723:28:11
ok third party sees public shot - 39823:28:11
ok third party sees shooter id - 39923:28:11
ok public lives_left on shot - 40023:28:11
ok damage is 1 - 40123:28:11
ok public lives in state - 40223:28:11
Engine: vis shots — elim_public (non-elim hidden from third party, visible to target) - 40323:28:11
ok shooter sees non-elim - 40423:28:11
ok target sees non-elim under elim_public - 40523:28:11
ok third party does not see non-elim - 40623:28:11
ok no death on non-elim - 40723:28:11
ok third party sees only the eliminating shot: 1 - 40823:28:11
ok the visible shot is the kill - 40923:28:11
ok third party sees death - 41023:28:11
ok elim_public death includes killer - 41123:28:11
ok target sees killer - 41223:28:11
ok death/alive is always public - 41323:28:11
Engine: vis shots — known_target (others never see the shot, death without by) - 41423:28:11
ok shooter sees known_target shot - 41523:28:11
ok target sees known_target shot - 41623:28:11
ok third party does not see known_target shot - 41723:28:11
ok third party still sees that B died - 41823:28:11
ok killer stripped for third party under known_target - 41923:28:11
ok target still sees who shot them - 42023:28:11
Engine: vis shots — elim_known_target (non-elim hidden even from target) - 42123:28:11
ok shooter sees non-elim under elim_known_target - 42223:28:11
ok target does NOT see non-elim shot (must deduce) - 42323:28:11
ok third party does not see non-elim - 42423:28:11
ok target still sees own lives drop - 42523:28:11
ok lives still public in this game (default) - 42623:28:11
ok target sees only the eliminating shot - 42723:28:11
ok elim shot names the shooter for the target - 42823:28:11
ok third party never sees shots under elim_known_target - 42923:28:11
ok third party death has no by - 43023:28:11
Engine: vis shots + hidden lives — lives_left stripped except for the target - 43123:28:11
ok shooter does not get target lives_left - 43223:28:11
ok target sees own lives_left - 43323:28:11
ok third party does not get lives_left - 43423:28:11
ok shooter still sees damage 1 - 43523:28:11
ok own lives always visible - 43623:28:11
ok other lives hidden from shooter - 43723:28:11
ok other lives hidden from third party - 43823:28:11
ok target sees own lives - 43923:28:11
ok alive flag still present when lives hidden - 44023:28:11
Engine: vis gifts — public, known_recipient, anonymous - 44123:28:11
ok public gift visible to third party with giver and amount - 44223:28:11
ok giver sees own gift - 44323:28:11
ok recipient sees giver - 44423:28:11
ok third party does not see known_recipient gift - 44523:28:11
ok giver sees full anonymous gift in their own log - 44623:28:11
ok recipient sees an anonymous gift event - 44723:28:11
ok event marked anonymous - 44823:28:11
ok giver id stripped for recipient - 44923:28:11
ok recipient sees the AP amount - 45023:28:11
ok recipient is named as target - 45123:28:11
ok third party does not see anonymous gift - 45223:28:11
ok recipient AP actually increased - 45323:28:11
ok stored event still has the giver (present does not mutate) - 45423:28:11
ok sanity - 45523:28:11
ok clone is independent of stored event - 45623:28:11
Engine: vis AP totals hidden - 45723:28:11
ok own AP visible when hidden rule is on - 45823:28:11
ok other AP hidden - 45923:28:11
ok third party does not see A’s AP - 46023:28:11
ok daily event present - 46123:28:11
ok hidden AP: only own grant in daily event: {"a":1} - 46223:28:11
ok jury vote counts stripped - 46323:28:11
Engine: vis range — hidden and known_in_range - 46423:28:11
ok own range after upgrade - 46523:28:11
ok other range hidden - 46623:28:11
ok upgrader sees own upgrade - 46723:28:11
ok third party does not see hidden upgrade - 46823:28:11
ok B is within A’s range, sees A’s range - 46923:28:11
ok A is within B’s range, sees B’s range - 47023:28:11
ok C is outside A’s range (dist 3 > 2) - 47123:28:11
ok A is outside C’s range (dist 3 > 2) - 47223:28:11
ok C always sees own range - 47323:28:11
ok after upgrade, C is within A’s range and sees it - 47423:28:11
ok C now also sees the upgrade event - 47523:28:11
ok A is still outside C’s range 2 - 47623:28:11
Engine: movement is always public, even with everything hidden - 47723:28:11
ok move is public - 47823:28:11
ok move names the player and destination - 47923:28:11
ok new position is in the public state - 48023:28:11
ok AP still hidden after the move - 48123:28:11
ok lives still hidden - 48223:28:11
ok range still hidden - 48323:28:11
Engine: present() does not leak hidden keys with real values - 48423:28:11
ok JSON-facing ap is null - 48523:28:11
ok JSON-facing lives is null - 48623:28:11
ok JSON-facing range is null - 48723:28:11
ok no numeric secrets for a - 48823:28:11
ok no numeric secrets for b - 48923:28:11
Engine: nextDistribution (per-lobby AP time) and DST - 49023:28:11
ok 14:00 → today 15:00: 2026-11-14 15:00:00 - 49123:28:11
ok exactly 15:00 → tomorrow 15:00: 2026-11-15 15:00:00 - 49223:28:11
ok 16:00 → tomorrow 15:00: 2026-11-15 15:00:00 - 49323:28:11
ok 00:00 path equals nextMidnight - 49423:28:11
ok ap_time normalised to HH:MM - 49523:28:11
ok bad ap_time → 00:00 - 49623:28:11
ok 24:00 invalid → 00:00 - 49723:28:11
ok DST spring: 02:30 candidate is strictly after 01:30 - 49823:28:11
ok DST spring: still that calendar day: 2026-03-29 03:30:00 CEST - 49923:28:11
ok DST spring: 04:00 exact: 2026-03-29 04:00:00 - 50023:28:11
ok DST fall-back: 02:30 that day: 2026-10-25 02:30:00 CEST - 50123:28:11
Engine: AP at a non-midnight lobby time - 50223:28:11
ok start schedules 15:00 - 50323:28:11
ok day increments at 15:00 - 50423:28:11
ok AP granted at 15:00 - 50523:28:11
ok one second before 15:00: no grant - 50623:28:11
Engine: AP loot default off; on only for eliminating shots - 50723:28:11
ok B is dead - 50823:28:11
ok dead B has 0 AP - 50923:28:11
ok loot off: A spent 1, did not receive B’s 4 (has 2) - 51023:28:11
ok loot off: no loot field on the kill shot - 51123:28:11
ok loot on: B dead, AP zeroed - 51223:28:11
ok loot on: A spent 1 (3→2) then looted 4 → 6: 6 - 51323:28:11
ok shooter sees loot amount - 51423:28:11
ok public AP: third party sees loot - 51523:28:11
ok shooter sees loot even if AP totals hidden - 51623:28:11
ok third party does not see loot amount when AP is hidden - 51723:28:11
ok shooter sees own AP including loot - 51823:28:11
ok third party still does not see A’s total - 51923:28:11
ok non-elim: no loot - 52023:28:11
ok non-elim: B keeps AP - 52123:28:11
ok B surrendered - 52223:28:11
ok surrender does not transfer AP - 52323:28:11
ok surrendered AP is zeroed, not looted - 52423:28:11
Engine: vis lives+AP within_range uses the VIEWER's range - 52523:28:11
ok A always sees own lives/AP - 52623:28:11
ok A sees B (dist 1 ≤ A’s range 2) - 52723:28:11
ok A does not see C (dist 3 > A’s range 2) - 52823:28:11
ok B sees A (dist 1 ≤ B’s range 2) - 52923:28:11
ok B does not see C (dist 3 > 2) - 53023:28:11
ok C sees neither A - 53123:28:11
ok C sees neither B - 53223:28:11
ok C sees own lives - 53323:28:11
ok within_range lives/AP: A still cannot see C (C is outside A’s range) - 53423:28:11
ok within_range lives/AP: C can see A (A is inside C’s range 4) - 53523:28:11
ok known_in_range: A CAN see C’s range (A is inside C’s range 4) — opposite of lives/AP - 53623:28:11
ok known_in_range: C cannot see A’s range (C is outside A’s range 2) - 53723:28:11
ok A range is 3 - 53823:28:11
ok after A upgrades to 3, A sees C’s lives/AP - 53923:28:11
ok A sees lives_left (B in A’s range) - 54023:28:11
ok B sees own lives_left - 54123:28:11
ok C does not see lives_left (B outside C’s range) - 54223:28:11
ok C still sees damage on a public shot - 54323:28:11
ok C does not see B’s lives in state - 54423:28:11
ok A’s daily grants: own + B, not C: {"a":1,"b":1} - 54523:28:11
ok C’s daily grants: only own: {"c":1} - 54623:28:11
ok A sees loot on eliminating shot - 54723:28:11
ok C sees the public kill shot - 54823:28:11
ok C does not see loot (A is outside C’s range) - 54923:28:11
ok shrink event present for A - 55023:28:11
ok stored shrink has hurt list - 55123:28:11
ok A’s filtered hurt id a is someone whose lives A may see - 55223:28:11
Engine: lobby grid option — auto suggestion and manual lock - 55323:28:11
ok new lobby 7 and auto - 55423:28:11
ok 2 players still 7 - 55523:28:11
ok 3rd player bumps to 8 (ceil(1.5)=2) - 55623:28:11
ok 4 players stay 8 - 55723:28:11
ok 5th player bumps to 9 - 55823:28:11
ok 10 players - 55923:28:11
ok 10 players → 11 - 56023:28:11
ok 11th player bumps suggestion to 12 - 56123:28:11
ok leave drops suggestion back to 11 - 56223:28:11
ok manual 14 - 56323:28:11
ok 16 players - 56423:28:11
ok manual 14 stays at 16 players (suggestion would be 17) - 56523:28:11
ok starts on host’s 14×14 - 56623:28:11
ok all 16 placed - 56723:28:11
ok placed in bounds - 56823:28:11
ok unique start 7,1 - 56923:28:11
ok placed in bounds - 57023:28:11
ok unique start 9,1 - 57123:28:11
ok placed in bounds - 57223:28:11
ok unique start 10,3 - 57323:28:11
ok placed in bounds - 57423:28:11
ok unique start 12,4 - 57523:28:11
ok placed in bounds - 57623:28:11
ok unique start 12,7 - 57723:28:11
ok placed in bounds - 57823:28:11
ok unique start 12,9 - 57923:28:11
ok placed in bounds - 58023:28:11
ok unique start 10,10 - 58123:28:11
ok placed in bounds - 58223:28:11
ok unique start 9,12 - 58323:28:11
ok placed in bounds - 58423:28:11
ok unique start 7,12 - 58523:28:11
ok placed in bounds - 58623:28:11
ok unique start 4,12 - 58723:28:11
ok placed in bounds - 58823:28:11
ok unique start 3,10 - 58923:28:11
ok placed in bounds - 59023:28:11
ok unique start 1,9 - 59123:28:11
ok placed in bounds - 59223:28:11
ok unique start 1,7 - 59323:28:11
ok placed in bounds - 59423:28:11
ok unique start 1,4 - 59523:28:11
ok placed in bounds - 59623:28:11
ok unique start 3,3 - 59723:28:11
ok placed in bounds - 59823:28:11
ok unique start 4,1 - 59923:28:11
ok host may start a 6×6 - 60023:28:11
ok auto start uses suggested 7 for 2 players - 60123:28:11
Engine: no hearts, no buying lives (options do not exist) - 60223:28:11
ok hearts / buy-lives are not accepted rule keys - 60323:28:11
- 60423:28:11
Engine passed: 374 Failed: 0 - 60523:28:11
Store: lobby, join, start, actions, sync - 60623:28:11
ok create lobby - 60723:28:11
ok status lobby - 60823:28:11
ok 6-char code: PJERST - 60923:28:11
ok jury on - 61023:28:11
ok shrink off - 61123:28:11
ok ceasefire off - 61223:28:11
ok start alone refused - 61323:28:11
ok Bob joined - 61423:28:11
ok same lobby - 61523:28:11
ok re-join is idempotent - 61623:28:11
ok non-host refused - 61723:28:11
ok host set shrink on - 61823:28:11
ok interval 3 - 61923:28:11
ok ceasefire on - 62023:28:11
ok one range stored - 62123:28:11
ok started - 62223:28:11
ok 1 AP at start - 62323:28:11
ok view running - 62423:28:11
ok legal moves in view - 62523:28:11
ok has version - 62623:28:11
ok has server_now - 62723:28:11
ok timezone - 62823:28:11
ok unchanged sync - 62923:28:11
ok no full state when unchanged - 63023:28:11
ok lightweight fields present - 63123:28:11
ok Alice can move - 63223:28:11
ok AP spent - 63323:28:11
ok Bob sees a change - 63423:28:11
ok full state on change - 63523:28:11
ok Bob sees Alice’s new position - 63623:28:11
ok Alice sees her note - 63723:28:11
ok Bob does not - 63823:28:11
ok Alice sees message - 63923:28:11
ok Bob sees message - 64023:28:11
ok join after start refused - 64123:28:11
ok locale stored - 64223:28:11
ok locale read - 64323:28:11
ok zh-Hans normalised to zh - 64423:28:11
ok listed running game - 64523:28:11
ok Dan wins after Cara surrenders - 64623:28:11
ok unknown_code - 64723:28:11
ok bad shoot refused: out_of_range - 64823:28:11
ok AP unchanged after refused action (rollback) - 64923:28:11
safeNext - 65023:28:11
ok null next - 65123:28:11
ok empty next - 65223:28:11
ok plain path - 65323:28:11
ok join query with = - 65423:28:11
ok ampersand - 65523:28:11
ok hash fragment - 65623:28:11
ok rejects scheme - 65723:28:11
ok rejects protocol-relative - 65823:28:11
ok rejects absolute path - 65923:28:11
ok rejects backslash - 66023:28:11
- 66123:28:11
Total passed: 427 Failed: 0