BlueGit

projects-timfalken-com allianties

unit_tests

Pipelines Pipeline Editor

Passed Started 3 days ago by timfa

Raw

Running on Steve

Log timestamps in UTC.

  1. 123:28:03Using docker image node:20-bookworm ...
  2. 223:28:03Using docker image sha256:8f693eaa7e0a8e71560c9a82b55fd54c2ae920a2ba5d2cde28bac7d1c01c9ba5 for node:20-bookworm with digest node@sha256:8f693eaa7e0a8e71560c9a82b55fd54c2ae920a2ba5d2cde28bac7d1c01c9ba5 ...
  1. 323:28:03Running on Steve via BlueGit...
  2. 423:28:03Working directory: /workspace
  3. 523:28:03Pipeline #708, job #2747
  1. 623:28:05debconf: delaying package configuration, since apt-utils is not installed
  2. 723:28:10TAP version 13
  3. 823:28:10# Subtest: deploy_guard
  4. 923:28:10 # Subtest: expands $timftproot and ${timftproot} and collapses double slashes
  5. 1023:28:11 ok 1 - expands $timftproot and ${timftproot} and collapses double slashes
  6. 1123:28:11 ---
  7. 1223:28:11 duration_ms: 45.28615
  8. 1323:28:11 ...
  9. 1423:28:11 # Subtest: refuses the FTP root, a missing secret, and a non-allianties leaf
  10. 1523:28:11 ok 2 - refuses the FTP root, a missing secret, and a non-allianties leaf
  11. 1623:28:11 ---
  12. 1723:28:11 duration_ms: 41.801497
  13. 1823:28:11 ...
  14. 1923:28:11 # Subtest: the CLI exits 0 for a good path and does not print the path
  15. 2023:28:11 ok 3 - the CLI exits 0 for a good path and does not print the path
  16. 2123:28:11 ---
  17. 2223:28:11 duration_ms: 14.177952
  18. 2323:28:11 ...
  19. 2423:28:11 1..3
  20. 2523:28:11ok 1 - deploy_guard
  21. 2623:28:11 ---
  22. 2723:28:11 duration_ms: 102.42659
  23. 2823:28:11 type: 'suite'
  24. 2923:28:11 ...
  25. 3023:28:11# Subtest: assert_safe_target
  26. 3123:28:11 # Subtest: allows a new, empty, previous, or leftover-files folder and only logs foreign names
  27. 3223:28:11 ok 1 - allows a new, empty, previous, or leftover-files folder and only logs foreign names
  28. 3323:28:11 ---
  29. 3423:28:11 duration_ms: 26.996983
  30. 3523:28:11 ...
  31. 3623:28:11 # Subtest: the FTP mirror never deletes, never uploads favicon.ico, and leaves data/ alone
  32. 3723:28:11 ok 2 - the FTP mirror never deletes, never uploads favicon.ico, and leaves data/ alone
  33. 3823:28:11 ---
  34. 3923:28:11 duration_ms: 24.293243
  35. 4023:28:11 ...
  36. 4123:28:11 1..2
  37. 4223:28:11ok 2 - assert_safe_target
  38. 4323:28:11 ---
  39. 4423:28:11 duration_ms: 51.539425
  40. 4523:28:11 type: 'suite'
  41. 4623:28:11 ...
  42. 4723:28:11# Subtest: auth_config_php
  43. 4823:28:11 # Subtest: is covered by ci/test_deploy_auth.py (PHP escaping, empty secret, no leak in lftp)
  44. 4923:28:11 ok 1 - is covered by ci/test_deploy_auth.py (PHP escaping, empty secret, no leak in lftp)
  45. 5023:28:11 ---
  46. 5123:28:11 duration_ms: 45.427357
  47. 5223:28:11 ...
  48. 5323:28:11 1..1
  49. 5423:28:11ok 3 - auth_config_php
  50. 5523:28:11 ---
  51. 5623:28:11 duration_ms: 45.700051
  52. 5723:28:11 type: 'suite'
  53. 5823:28:11 ...
  54. 5923:28:11# Subtest: i18n catalog
  55. 6023:28:11 # Subtest: lists every supported locale
  56. 6123:28:11 ok 1 - lists every supported locale
  57. 6223:28:11 ---
  58. 6323:28:11 duration_ms: 1.087502
  59. 6423:28:11 ...
  60. 6523:28:11 # Subtest: has the same non-empty keys in every language
  61. 6623:28:11 ok 2 - has the same non-empty keys in every language
  62. 6723:28:11 ---
  63. 6823:28:11 duration_ms: 1.926494
  64. 6923:28:11 ...
  65. 7023:28:11 # Subtest: keeps English placeholders in every translation
  66. 7123:28:11 ok 3 - keeps English placeholders in every translation
  67. 7223:28:11 ---
  68. 7323:28:11 duration_ms: 3.057878
  69. 7423:28:11 ...
  70. 7523:28:11 # Subtest: never translates the game name Allianties
  71. 7623:28:11 ok 4 - never translates the game name Allianties
  72. 7723:28:11 ---
  73. 7823:28:11 duration_ms: 0.200658
  74. 7923:28:11 ...
  75. 8023:28:11 # Subtest: maps every known server error code
  76. 8123:28:11 ok 5 - maps every known server error code
  77. 8223:28:11 ---
  78. 8323:28:11 duration_ms: 0.165973
  79. 8423:28:11 ...
  80. 8523:28:11 1..5
  81. 8623:28:11ok 4 - i18n catalog
  82. 8723:28:11 ---
  83. 8823:28:11 duration_ms: 7.449853
  84. 8923:28:11 type: 'suite'
  85. 9023:28:11 ...
  86. 9123:28:11# Subtest: Rules grid and Chebyshev
  87. 9223:28:11 # Subtest: suggests max(6 + ceil(n/2), n + 1), capped at 24
  88. 9323:28:11 ok 1 - suggests max(6 + ceil(n/2), n + 1), capped at 24
  89. 9423:28:11 ---
  90. 9523:28:11 duration_ms: 0.677078
  91. 9623:28:11 ...
  92. 9723:28:11 # Subtest: uses Chebyshev distance (diagonals included)
  93. 9823:28:11 ok 2 - uses Chebyshev distance (diagonals included)
  94. 9923:28:11 ---
  95. 10023:28:11 duration_ms: 0.125747
  96. 10123:28:11 ...
  97. 10223:28:11 # Subtest: passable accounts for arena inset
  98. 10323:28:11 ok 3 - passable accounts for arena inset
  99. 10423:28:11 ---
  100. 10523:28:11 duration_ms: 0.135435
  101. 10623:28:11 ...
  102. 10723:28:11 1..3
  103. 10823:28:11ok 5 - Rules grid and Chebyshev
  104. 10923:28:11 ---
  105. 11023:28:11 duration_ms: 1.910453
  106. 11123:28:11 type: 'suite'
  107. 11223:28:11 ...
  108. 11323:28:11# Subtest: Rules cease-fire, midnight wrap and DST
  109. 11423:28:11 # Subtest: treats 23:30 as cease-fire wrapping to 06:00 next day
  110. 11523:28:11 ok 1 - treats 23:30 as cease-fire wrapping to 06:00 next day
  111. 11623:28:11 ---
  112. 11723:28:11 duration_ms: 25.173964
  113. 11823:28:11 ...
  114. 11923:28:11 # Subtest: treats the end timestamp as exclusive
  115. 12023:28:11 ok 2 - treats the end timestamp as exclusive
  116. 12123:28:11 ---
  117. 12223:28:11 duration_ms: 12.820853
  118. 12323:28:11 ...
  119. 12423:28:11 # Subtest: handles a second daytime range and countdown seconds
  120. 12523:28:11 ok 3 - handles a second daytime range and countdown seconds
  121. 12623:28:11 ---
  122. 12723:28:11 duration_ms: 30.294683
  123. 12823:28:11 ...
  124. 12923:28:11 # Subtest: shortens 01:00–04:00 across the 2026 spring-forward to 2 real hours
  125. 13023:28:11 ok 4 - shortens 01:00–04:00 across the 2026 spring-forward to 2 real hours
  126. 13123:28:11 ---
  127. 13223:28:11 duration_ms: 16.982222
  128. 13323:28:11 ...
  129. 13423:28:11 # Subtest: lengthens 01:00–03:30 across the 2026 fall-back to 3.5 real hours
  130. 13523:28:11 ok 5 - lengthens 01:00–03:30 across the 2026 fall-back to 3.5 real hours
  131. 13623:28:11 ---
  132. 13723:28:11 duration_ms: 18.97463
  133. 13823:28:11 ...
  134. 13923:28:11 # Subtest: is inactive when the rule is off or ranges are empty
  135. 14023:28:11 ok 6 - is inactive when the rule is off or ranges are empty
  136. 14123:28:11 ---
  137. 14223:28:11 duration_ms: 1.238366
  138. 14323:28:11 ...
  139. 14423:28:11 # Subtest: merges overlapping ranges for the countdown
  140. 14523:28:11 ok 7 - merges overlapping ranges for the countdown
  141. 14623:28:11 ---
  142. 14723:28:11 duration_ms: 13.21192
  143. 14823:28:11 ...
  144. 14923:28:11 # Subtest: formats HH:MM:SS countdowns
  145. 15023:28:11 ok 8 - formats HH:MM:SS countdowns
  146. 15123:28:11 ---
  147. 15223:28:11 duration_ms: 0.210386
  148. 15323:28:11 ...
  149. 15423:28:11 1..8
  150. 15523:28:11ok 6 - Rules cease-fire, midnight wrap and DST
  151. 15623:28:11 ---
  152. 15723:28:11 duration_ms: 119.662411
  153. 15823:28:11 type: 'suite'
  154. 15923:28:11 ...
  155. 16023:28:11# Subtest: Rules timelineIndex (nearest event)
  156. 16123:28:11 # Subtest: returns 0 when there are no spends
  157. 16223:28:11 ok 1 - returns 0 when there are no spends
  158. 16323:28:11 ---
  159. 16423:28:11 duration_ms: 0.168938
  160. 16523:28:11 ...
  161. 16623:28:11 # Subtest: maps 0 to the start and 1 to live (after the last spend)
  162. 16723:28:11 ok 2 - maps 0 to the start and 1 to live (after the last spend)
  163. 16823:28:11 ---
  164. 16923:28:11 duration_ms: 0.160172
  165. 17023:28:11 ...
  166. 17123:28:11 # Subtest: jumps to the nearest event along the bar
  167. 17223:28:11 ok 3 - jumps to the nearest event along the bar
  168. 17323:28:11 ---
  169. 17423:28:11 duration_ms: 0.124905
  170. 17523:28:11 ...
  171. 17623:28:11 1..3
  172. 17723:28:11ok 7 - Rules timelineIndex (nearest event)
  173. 17823:28:11 ---
  174. 17923:28:11 duration_ms: 0.630799
  175. 18023:28:11 type: 'suite'
  176. 18123:28:11 ...
  177. 18223:28:111..7
  178. 18323:28:11# tests 25
  179. 18423:28:11# suites 7
  180. 18523:28:11# pass 25
  181. 18623:28:11# fail 0
  182. 18723:28:11# cancelled 0
  183. 18823:28:11# skipped 0
  184. 18923:28:11# todo 0
  185. 19023:28:11# duration_ms 242.991788
  186. 19123:28:11auth-config ok
  187. 19223:28:11Engine: grid suggestion and placement
  188. 19323:28:11 ok 1 player → 7 (max(6+ceil(0.5), 2) = max(7, 2))
  189. 19423:28:11 ok 2 players → 7 (max(6+1, 3))
  190. 19523:28:11 ok 3 players → 8 (ceil(1.5)=2, max(8, 4))
  191. 19623:28:11 ok 6 players → 9 (max(6+3, 7))
  192. 19723:28:11 ok 9 players → 11 (ceil(4.5)=5, max(11, 10))
  193. 19823:28:11 ok 10 players → 11 (max(6+5, 11))
  194. 19923:28:11 ok 14 players → 15 (max(6+7, 15))
  195. 20023:28:11 ok 16 players → 17
  196. 20123:28:11 ok capped at MAX_GRID 24
  197. 20223:28:11 ok gridSize aliases suggestedGrid
  198. 20323:28:11 ok clamp below min → 6
  199. 20423:28:11 ok clamp above max → 24
  200. 20523:28:11 ok clamp mid unchanged
  201. 20623:28:11 ok 6×6 fits 2
  202. 20723:28:11 ok 6×6 has enough tiles for 16
  203. 20823:28:11 ok below MIN_GRID does not fit
  204. 20923:28:11 ok above MAX_GRID does not fit
  205. 21023:28:11 ok 6×6 max inset 1 (leaves 4×4, min arena 3)
  206. 21123:28:11 ok 7×7 max inset 2 (leaves 3×3)
  207. 21223:28:11 ok 4 starting positions
  208. 21323:28:11 ok starting positions are unique
  209. 21423:28:11 ok start in bounds 3,1
  210. 21523:28:11 ok start in bounds 4,3
  211. 21623:28:11 ok start in bounds 3,4
  212. 21723:28:11 ok start in bounds 1,3
  213. 21823:28:11Engine: Chebyshev range
  214. 21923:28:11 ok diagonal 2 is range 2
  215. 22023:28:11 ok orthogonal 2 is range 2
  216. 22123:28:11 ok same tile is 0
  217. 22223:28:11Engine: midnight Amsterdam
  218. 22323:28:11 ok next midnight after 23:30 is 00:00 next day: 2026-11-14 00:00:00
  219. 22423:28:11 ok at exactly 00:00, next is tomorrow
  220. 22523:28:11 ok DST: next midnight still 00:00: 2026-03-29 00:00:00
  221. 22623:28:11Engine: lobby and start
  222. 22723:28:11 ok new lobby
  223. 22823:28:11 ok jury default ON
  224. 22923:28:11 ok shrink default OFF
  225. 23023:28:11 ok shrink interval default 7
  226. 23123:28:11 ok ceasefire default OFF
  227. 23223:28:11 ok ceasefire ranges empty by default
  228. 23323:28:11 ok vis_shots default public
  229. 23423:28:11 ok vis_gifts default public
  230. 23523:28:11 ok vis_ap default public
  231. 23623:28:11 ok vis_range default public
  232. 23723:28:11 ok vis_lives default public
  233. 23823:28:11 ok ap_loot default OFF
  234. 23923:28:11 ok ap_time default 00:00
  235. 24023:28:11 ok lobby suggested grid 7 for 1 player
  236. 24123:28:11 ok grid_auto default ON
  237. 24223:28:11 ok game.grid mirrors suggestion in lobby
  238. 24323:28:11 ok host is creator
  239. 24423:28:11 ok start alone: min_players
  240. 24523:28:11 ok 2 players
  241. 24623:28:11 ok non-host cannot start
  242. 24723:28:11 ok started
  243. 24823:28:11 ok auto grid for 2 players is 7
  244. 24923:28:11 ok start with 1 AP
  245. 25023:28:11 ok start with 3 lives
  246. 25123:28:11 ok start with range 2
  247. 25223:28:11 ok not overlapping
  248. 25323:28:11 ok next AP at next midnight: 2026-11-14 00:00:00
  249. 25423:28:11Engine: move, blocked, AP
  250. 25523:28:11 ok Alice has at least one move
  251. 25623:28:11 ok moved
  252. 25723:28:11 ok spent 1 AP
  253. 25823:28:11 ok move event
  254. 25923:28:11 ok move is a spend tick
  255. 26023:28:11 ok no AP: invalid_move
  256. 26123:28:11Engine: shoot and death and win
  257. 26223:28:11 ok Bob is in range 2 (actually dist 1)
  258. 26323:28:11 ok Bob has 2 lives
  259. 26423:28:11 ok Bob is dead
  260. 26523:28:11 ok game finished
  261. 26623:28:11 ok Alice wins
  262. 26723:28:11 ok death event
  263. 26823:28:11 ok win event
  264. 26923:28:11Engine: give AP and upgrade
  265. 27023:28:11 ok Alice spent 2
  266. 27123:28:11 ok Bob received 2
  267. 27223:28:11 ok bad_give
  268. 27323:28:11 ok range is now 3
  269. 27423:28:11 ok upgrade costs 1
  270. 27523:28:11Engine: out of range and occupied
  271. 27623:28:11 ok Bob at (5,5) is out of range 2 from (0,0)
  272. 27723:28:11 ok out_of_range
  273. 27823:28:11 ok cannot move onto Bob
  274. 27923:28:11Engine: surrender
  275. 28023:28:11 ok Bob surrendered
  276. 28123:28:11 ok flagged surrendered
  277. 28223:28:11 ok Alice wins after surrender
  278. 28323:28:11Engine: daily AP grant
  279. 28423:28:11 ok day is 1
  280. 28523:28:11 ok Alice got 1 AP
  281. 28623:28:11 ok Bob got 1 AP
  282. 28723:28:11 ok caught up to day 3, day=3
  283. 28823:28:11 ok 3 AP after 3 days (started 0): 3
  284. 28923:28:11Engine: jury
  285. 29023:28:11 ok still running with 2 alive
  286. 29123:28:11 ok c voted a
  287. 29223:28:11 ok d changed vote to b
  288. 29323:28:11 ok living cannot vote
  289. 29423:28:11 ok Alice (living) has no vote
  290. 29523:28:11 ok Charlie sees own vote
  291. 29623:28:11 ok votes not in present payload
  292. 29723:28:11 ok Alice got 1+1 (tie): 2
  293. 29823:28:11 ok Bob got 1+1 (tie): 2
  294. 29923:28:11 ok votes reset after distribution
  295. 30023:28:11 ok Alice unique jury winner: 2
  296. 30123:28:11 ok Bob only regular 1: 1
  297. 30223:28:11 ok jury off: cannot_vote
  298. 30323:28:11Engine: shrinking arena
  299. 30423:28:11 ok host-chosen 6×6
  300. 30523:28:11 ok shrink in 2 days (interval 2, day 0): 2
  301. 30623:28:11 ok day 1
  302. 30723:28:11 ok no shrink on day 1
  303. 30823:28:11 ok Alice still on (0,0)
  304. 30923:28:11 ok Alice still 3 lives
  305. 31023:28:11 ok shrink in 1 day
  306. 31123:28:11 ok day 2
  307. 31223:28:11 ok inset is 1
  308. 31323:28:11 ok Alice lost 1 life: 2
  309. 31423:28:11 ok Alice pushed inward to passable 1,1
  310. 31523:28:11 ok not onto Bob
  311. 31623:28:11 ok Bob unhurt in centre
  312. 31723:28:11 ok Alice got day-1 and day-2 AP after surviving shrink: 2
  313. 31823:28:11 ok legal move 1,2 is passable
  314. 31923:28:11 ok legal move 2,1 is passable
  315. 32023:28:11 ok does not shrink past max inset: 1
  316. 32123:28:11 ok no upcoming shrink at max
  317. 32223:28:11Engine: shrink kills and crush and draw
  318. 32323:28:11 ok Alice died on shrink (1 life)
  319. 32423:28:11 ok Bob died on shrink (1 life)
  320. 32523:28:11 ok finished
  321. 32623:28:11 ok draw when both die in the same shrink
  322. 32723:28:11Engine: notes and chat privacy
  323. 32823:28:11 ok Alice sees her note on Bob
  324. 32923:28:11 ok Bob does not see Alice’s note
  325. 33023:28:11 ok Alice sees chat
  326. 33123:28:11 ok Bob sees chat
  327. 33223:28:11Engine: modular rule flags
  328. 33323:28:11 ok jury "0" is false
  329. 33423:28:11 ok shrink "1" is true
  330. 33523:28:11 ok interval clamped to max 30: 30
  331. 33623:28:11 ok ceasefire "1" is true
  332. 33723:28:11Engine: cease-fire ranges and midnight wrap
  333. 33823:28:11 ok 2 valid ranges: 2
  334. 33923:28:11 ok sorted, first is 12:00
  335. 34023:28:11 ok wrap range kept
  336. 34123:28:11 ok 23:30 is cease-fire (wrap)
  337. 34223:28:11 ok ends at 06:00 next day: 2026-11-14 06:00
  338. 34323:28:11 ok Attack disabled during cease-fire
  339. 34423:28:11 ok legal.ceasefire true
  340. 34523:28:11 ok non-shoot actions still considered
  341. 34623:28:11 ok can still move during cease-fire
  342. 34723:28:11 ok error code ceasefire: ceasefire
  343. 34823:28:11 ok 06:00 exactly is not cease-fire (end exclusive)
  344. 34923:28:11 ok next cease-fire at 12:00: 12:00
  345. 35023:28:11 ok 12:30 is cease-fire
  346. 35123:28:11 ok ends 13:00: 13:00
  347. 35223:28:11 ok 15:00 is free
  348. 35323:28:11 ok until 22:00: 2026-11-14 22:00
  349. 35423:28:11 ok can shoot when not in cease-fire
  350. 35523:28:11 ok shot landed outside cease-fire
  351. 35623:28:11 ok 21:59 is free
  352. 35723:28:11 ok 60 seconds until cease-fire: 60
  353. 35823:28:11 ok 05:59 still cease-fire
  354. 35923:28:11 ok 60 seconds left in cease-fire: 60
  355. 36023:28:11Engine: cease-fire DST spring-forward (2026-03-29 02:00→03:00)
  356. 36123:28:11 ok 01:00 CEST-transition day is cease-fire
  357. 36223:28:11 ok ends 04:00: 2026-03-29 04:00
  358. 36323:28:11 ok spring-forward 01:00-04:00 is 2 real hours: 7200
  359. 36423:28:11 ok 03:00 (after the jump) is still cease-fire
  360. 36523:28:11 ok 1 hour left at 03:00: 3600
  361. 36623:28:11 ok 00:30 is free
  362. 36723:28:11 ok 30 min until 01:00: 1800
  363. 36823:28:11Engine: cease-fire DST fall-back (2026-10-25 03:00→02:00)
  364. 36923:28:11 ok 01:00 fall-back day is cease-fire
  365. 37023:28:11 ok ends 03:30: 2026-10-25 03:30
  366. 37123:28:11 ok fall-back 01:00-03:30 is 3.5 real hours: 12600
  367. 37223:28:11 ok first 02:15 (still DST) is cease-fire
  368. 37323:28:11 ok second 02:15 (CET) is still cease-fire
  369. 37423:28:11 ok 03:30 exactly is free (end exclusive)
  370. 37523:28:11Engine: cease-fire off or empty ranges
  371. 37623:28:11 ok rule off → no info (ranges ignored)
  372. 37723:28:11 ok on but empty ranges → treated as no cease-fire
  373. 37823:28:11Engine: overlapping ranges merge for countdown
  374. 37923:28:11 ok merged overlapping ends at 13:00: 13:00
  375. 38023:28:11Engine: visibility defaults and invalid values fall back to public
  376. 38123:28:11 ok bad vis_shots → public
  377. 38223:28:11 ok bad vis_gifts → public
  378. 38323:28:11 ok bad vis_ap → public
  379. 38423:28:11 ok bad vis_range → public
  380. 38523:28:11 ok bad vis_lives → public
  381. 38623:28:11 ok accepts elim_known_target
  382. 38723:28:11 ok accepts anonymous
  383. 38823:28:11 ok accepts vis_ap within_range
  384. 38923:28:11 ok accepts known_in_range
  385. 39023:28:11 ok accepts vis_lives within_range
  386. 39123:28:11 ok accepts manual grid 14
  387. 39223:28:11 ok still accepts hidden
  388. 39323:28:11 ok unknown vis_ap/lives values → public
  389. 39423:28:11Engine: vis shots — public (everyone sees, including lives_left when lives public)
  390. 39523:28:11 ok shooter sees public shot
  391. 39623:28:11 ok target sees public shot
  392. 39723:28:11 ok third party sees public shot
  393. 39823:28:11 ok third party sees shooter id
  394. 39923:28:11 ok public lives_left on shot
  395. 40023:28:11 ok damage is 1
  396. 40123:28:11 ok public lives in state
  397. 40223:28:11Engine: vis shots — elim_public (non-elim hidden from third party, visible to target)
  398. 40323:28:11 ok shooter sees non-elim
  399. 40423:28:11 ok target sees non-elim under elim_public
  400. 40523:28:11 ok third party does not see non-elim
  401. 40623:28:11 ok no death on non-elim
  402. 40723:28:11 ok third party sees only the eliminating shot: 1
  403. 40823:28:11 ok the visible shot is the kill
  404. 40923:28:11 ok third party sees death
  405. 41023:28:11 ok elim_public death includes killer
  406. 41123:28:11 ok target sees killer
  407. 41223:28:11 ok death/alive is always public
  408. 41323:28:11Engine: vis shots — known_target (others never see the shot, death without by)
  409. 41423:28:11 ok shooter sees known_target shot
  410. 41523:28:11 ok target sees known_target shot
  411. 41623:28:11 ok third party does not see known_target shot
  412. 41723:28:11 ok third party still sees that B died
  413. 41823:28:11 ok killer stripped for third party under known_target
  414. 41923:28:11 ok target still sees who shot them
  415. 42023:28:11Engine: vis shots — elim_known_target (non-elim hidden even from target)
  416. 42123:28:11 ok shooter sees non-elim under elim_known_target
  417. 42223:28:11 ok target does NOT see non-elim shot (must deduce)
  418. 42323:28:11 ok third party does not see non-elim
  419. 42423:28:11 ok target still sees own lives drop
  420. 42523:28:11 ok lives still public in this game (default)
  421. 42623:28:11 ok target sees only the eliminating shot
  422. 42723:28:11 ok elim shot names the shooter for the target
  423. 42823:28:11 ok third party never sees shots under elim_known_target
  424. 42923:28:11 ok third party death has no by
  425. 43023:28:11Engine: vis shots + hidden lives — lives_left stripped except for the target
  426. 43123:28:11 ok shooter does not get target lives_left
  427. 43223:28:11 ok target sees own lives_left
  428. 43323:28:11 ok third party does not get lives_left
  429. 43423:28:11 ok shooter still sees damage 1
  430. 43523:28:11 ok own lives always visible
  431. 43623:28:11 ok other lives hidden from shooter
  432. 43723:28:11 ok other lives hidden from third party
  433. 43823:28:11 ok target sees own lives
  434. 43923:28:11 ok alive flag still present when lives hidden
  435. 44023:28:11Engine: vis gifts — public, known_recipient, anonymous
  436. 44123:28:11 ok public gift visible to third party with giver and amount
  437. 44223:28:11 ok giver sees own gift
  438. 44323:28:11 ok recipient sees giver
  439. 44423:28:11 ok third party does not see known_recipient gift
  440. 44523:28:11 ok giver sees full anonymous gift in their own log
  441. 44623:28:11 ok recipient sees an anonymous gift event
  442. 44723:28:11 ok event marked anonymous
  443. 44823:28:11 ok giver id stripped for recipient
  444. 44923:28:11 ok recipient sees the AP amount
  445. 45023:28:11 ok recipient is named as target
  446. 45123:28:11 ok third party does not see anonymous gift
  447. 45223:28:11 ok recipient AP actually increased
  448. 45323:28:11 ok stored event still has the giver (present does not mutate)
  449. 45423:28:11 ok sanity
  450. 45523:28:11 ok clone is independent of stored event
  451. 45623:28:11Engine: vis AP totals hidden
  452. 45723:28:11 ok own AP visible when hidden rule is on
  453. 45823:28:11 ok other AP hidden
  454. 45923:28:11 ok third party does not see A’s AP
  455. 46023:28:11 ok daily event present
  456. 46123:28:11 ok hidden AP: only own grant in daily event: {"a":1}
  457. 46223:28:11 ok jury vote counts stripped
  458. 46323:28:11Engine: vis range — hidden and known_in_range
  459. 46423:28:11 ok own range after upgrade
  460. 46523:28:11 ok other range hidden
  461. 46623:28:11 ok upgrader sees own upgrade
  462. 46723:28:11 ok third party does not see hidden upgrade
  463. 46823:28:11 ok B is within A’s range, sees A’s range
  464. 46923:28:11 ok A is within B’s range, sees B’s range
  465. 47023:28:11 ok C is outside A’s range (dist 3 > 2)
  466. 47123:28:11 ok A is outside C’s range (dist 3 > 2)
  467. 47223:28:11 ok C always sees own range
  468. 47323:28:11 ok after upgrade, C is within A’s range and sees it
  469. 47423:28:11 ok C now also sees the upgrade event
  470. 47523:28:11 ok A is still outside C’s range 2
  471. 47623:28:11Engine: movement is always public, even with everything hidden
  472. 47723:28:11 ok move is public
  473. 47823:28:11 ok move names the player and destination
  474. 47923:28:11 ok new position is in the public state
  475. 48023:28:11 ok AP still hidden after the move
  476. 48123:28:11 ok lives still hidden
  477. 48223:28:11 ok range still hidden
  478. 48323:28:11Engine: present() does not leak hidden keys with real values
  479. 48423:28:11 ok JSON-facing ap is null
  480. 48523:28:11 ok JSON-facing lives is null
  481. 48623:28:11 ok JSON-facing range is null
  482. 48723:28:11 ok no numeric secrets for a
  483. 48823:28:11 ok no numeric secrets for b
  484. 48923:28:11Engine: nextDistribution (per-lobby AP time) and DST
  485. 49023:28:11 ok 14:00 → today 15:00: 2026-11-14 15:00:00
  486. 49123:28:11 ok exactly 15:00 → tomorrow 15:00: 2026-11-15 15:00:00
  487. 49223:28:11 ok 16:00 → tomorrow 15:00: 2026-11-15 15:00:00
  488. 49323:28:11 ok 00:00 path equals nextMidnight
  489. 49423:28:11 ok ap_time normalised to HH:MM
  490. 49523:28:11 ok bad ap_time → 00:00
  491. 49623:28:11 ok 24:00 invalid → 00:00
  492. 49723:28:11 ok DST spring: 02:30 candidate is strictly after 01:30
  493. 49823:28:11 ok DST spring: still that calendar day: 2026-03-29 03:30:00 CEST
  494. 49923:28:11 ok DST spring: 04:00 exact: 2026-03-29 04:00:00
  495. 50023:28:11 ok DST fall-back: 02:30 that day: 2026-10-25 02:30:00 CEST
  496. 50123:28:11Engine: AP at a non-midnight lobby time
  497. 50223:28:11 ok start schedules 15:00
  498. 50323:28:11 ok day increments at 15:00
  499. 50423:28:11 ok AP granted at 15:00
  500. 50523:28:11 ok one second before 15:00: no grant
  501. 50623:28:11Engine: AP loot default off; on only for eliminating shots
  502. 50723:28:11 ok B is dead
  503. 50823:28:11 ok dead B has 0 AP
  504. 50923:28:11 ok loot off: A spent 1, did not receive B’s 4 (has 2)
  505. 51023:28:11 ok loot off: no loot field on the kill shot
  506. 51123:28:11 ok loot on: B dead, AP zeroed
  507. 51223:28:11 ok loot on: A spent 1 (3→2) then looted 4 → 6: 6
  508. 51323:28:11 ok shooter sees loot amount
  509. 51423:28:11 ok public AP: third party sees loot
  510. 51523:28:11 ok shooter sees loot even if AP totals hidden
  511. 51623:28:11 ok third party does not see loot amount when AP is hidden
  512. 51723:28:11 ok shooter sees own AP including loot
  513. 51823:28:11 ok third party still does not see A’s total
  514. 51923:28:11 ok non-elim: no loot
  515. 52023:28:11 ok non-elim: B keeps AP
  516. 52123:28:11 ok B surrendered
  517. 52223:28:11 ok surrender does not transfer AP
  518. 52323:28:11 ok surrendered AP is zeroed, not looted
  519. 52423:28:11Engine: vis lives+AP within_range uses the VIEWER's range
  520. 52523:28:11 ok A always sees own lives/AP
  521. 52623:28:11 ok A sees B (dist 1 ≤ A’s range 2)
  522. 52723:28:11 ok A does not see C (dist 3 > A’s range 2)
  523. 52823:28:11 ok B sees A (dist 1 ≤ B’s range 2)
  524. 52923:28:11 ok B does not see C (dist 3 > 2)
  525. 53023:28:11 ok C sees neither A
  526. 53123:28:11 ok C sees neither B
  527. 53223:28:11 ok C sees own lives
  528. 53323:28:11 ok within_range lives/AP: A still cannot see C (C is outside A’s range)
  529. 53423:28:11 ok within_range lives/AP: C can see A (A is inside C’s range 4)
  530. 53523:28:11 ok known_in_range: A CAN see C’s range (A is inside C’s range 4) — opposite of lives/AP
  531. 53623:28:11 ok known_in_range: C cannot see A’s range (C is outside A’s range 2)
  532. 53723:28:11 ok A range is 3
  533. 53823:28:11 ok after A upgrades to 3, A sees C’s lives/AP
  534. 53923:28:11 ok A sees lives_left (B in A’s range)
  535. 54023:28:11 ok B sees own lives_left
  536. 54123:28:11 ok C does not see lives_left (B outside C’s range)
  537. 54223:28:11 ok C still sees damage on a public shot
  538. 54323:28:11 ok C does not see B’s lives in state
  539. 54423:28:11 ok A’s daily grants: own + B, not C: {"a":1,"b":1}
  540. 54523:28:11 ok C’s daily grants: only own: {"c":1}
  541. 54623:28:11 ok A sees loot on eliminating shot
  542. 54723:28:11 ok C sees the public kill shot
  543. 54823:28:11 ok C does not see loot (A is outside C’s range)
  544. 54923:28:11 ok shrink event present for A
  545. 55023:28:11 ok stored shrink has hurt list
  546. 55123:28:11 ok A’s filtered hurt id a is someone whose lives A may see
  547. 55223:28:11Engine: lobby grid option — auto suggestion and manual lock
  548. 55323:28:11 ok new lobby 7 and auto
  549. 55423:28:11 ok 2 players still 7
  550. 55523:28:11 ok 3rd player bumps to 8 (ceil(1.5)=2)
  551. 55623:28:11 ok 4 players stay 8
  552. 55723:28:11 ok 5th player bumps to 9
  553. 55823:28:11 ok 10 players
  554. 55923:28:11 ok 10 players → 11
  555. 56023:28:11 ok 11th player bumps suggestion to 12
  556. 56123:28:11 ok leave drops suggestion back to 11
  557. 56223:28:11 ok manual 14
  558. 56323:28:11 ok 16 players
  559. 56423:28:11 ok manual 14 stays at 16 players (suggestion would be 17)
  560. 56523:28:11 ok starts on host’s 14×14
  561. 56623:28:11 ok all 16 placed
  562. 56723:28:11 ok placed in bounds
  563. 56823:28:11 ok unique start 7,1
  564. 56923:28:11 ok placed in bounds
  565. 57023:28:11 ok unique start 9,1
  566. 57123:28:11 ok placed in bounds
  567. 57223:28:11 ok unique start 10,3
  568. 57323:28:11 ok placed in bounds
  569. 57423:28:11 ok unique start 12,4
  570. 57523:28:11 ok placed in bounds
  571. 57623:28:11 ok unique start 12,7
  572. 57723:28:11 ok placed in bounds
  573. 57823:28:11 ok unique start 12,9
  574. 57923:28:11 ok placed in bounds
  575. 58023:28:11 ok unique start 10,10
  576. 58123:28:11 ok placed in bounds
  577. 58223:28:11 ok unique start 9,12
  578. 58323:28:11 ok placed in bounds
  579. 58423:28:11 ok unique start 7,12
  580. 58523:28:11 ok placed in bounds
  581. 58623:28:11 ok unique start 4,12
  582. 58723:28:11 ok placed in bounds
  583. 58823:28:11 ok unique start 3,10
  584. 58923:28:11 ok placed in bounds
  585. 59023:28:11 ok unique start 1,9
  586. 59123:28:11 ok placed in bounds
  587. 59223:28:11 ok unique start 1,7
  588. 59323:28:11 ok placed in bounds
  589. 59423:28:11 ok unique start 1,4
  590. 59523:28:11 ok placed in bounds
  591. 59623:28:11 ok unique start 3,3
  592. 59723:28:11 ok placed in bounds
  593. 59823:28:11 ok unique start 4,1
  594. 59923:28:11 ok host may start a 6×6
  595. 60023:28:11 ok auto start uses suggested 7 for 2 players
  596. 60123:28:11Engine: no hearts, no buying lives (options do not exist)
  597. 60223:28:11 ok hearts / buy-lives are not accepted rule keys
  598. 60323:28:11
  599. 60423:28:11Engine passed: 374 Failed: 0
  600. 60523:28:11Store: lobby, join, start, actions, sync
  601. 60623:28:11 ok create lobby
  602. 60723:28:11 ok status lobby
  603. 60823:28:11 ok 6-char code: PJERST
  604. 60923:28:11 ok jury on
  605. 61023:28:11 ok shrink off
  606. 61123:28:11 ok ceasefire off
  607. 61223:28:11 ok start alone refused
  608. 61323:28:11 ok Bob joined
  609. 61423:28:11 ok same lobby
  610. 61523:28:11 ok re-join is idempotent
  611. 61623:28:11 ok non-host refused
  612. 61723:28:11 ok host set shrink on
  613. 61823:28:11 ok interval 3
  614. 61923:28:11 ok ceasefire on
  615. 62023:28:11 ok one range stored
  616. 62123:28:11 ok started
  617. 62223:28:11 ok 1 AP at start
  618. 62323:28:11 ok view running
  619. 62423:28:11 ok legal moves in view
  620. 62523:28:11 ok has version
  621. 62623:28:11 ok has server_now
  622. 62723:28:11 ok timezone
  623. 62823:28:11 ok unchanged sync
  624. 62923:28:11 ok no full state when unchanged
  625. 63023:28:11 ok lightweight fields present
  626. 63123:28:11 ok Alice can move
  627. 63223:28:11 ok AP spent
  628. 63323:28:11 ok Bob sees a change
  629. 63423:28:11 ok full state on change
  630. 63523:28:11 ok Bob sees Alice’s new position
  631. 63623:28:11 ok Alice sees her note
  632. 63723:28:11 ok Bob does not
  633. 63823:28:11 ok Alice sees message
  634. 63923:28:11 ok Bob sees message
  635. 64023:28:11 ok join after start refused
  636. 64123:28:11 ok locale stored
  637. 64223:28:11 ok locale read
  638. 64323:28:11 ok zh-Hans normalised to zh
  639. 64423:28:11 ok listed running game
  640. 64523:28:11 ok Dan wins after Cara surrenders
  641. 64623:28:11 ok unknown_code
  642. 64723:28:11 ok bad shoot refused: out_of_range
  643. 64823:28:11 ok AP unchanged after refused action (rollback)
  644. 64923:28:11safeNext
  645. 65023:28:11 ok null next
  646. 65123:28:11 ok empty next
  647. 65223:28:11 ok plain path
  648. 65323:28:11 ok join query with =
  649. 65423:28:11 ok ampersand
  650. 65523:28:11 ok hash fragment
  651. 65623:28:11 ok rejects scheme
  652. 65723:28:11 ok rejects protocol-relative
  653. 65823:28:11 ok rejects absolute path
  654. 65923:28:11 ok rejects backslash
  655. 66023:28:11
  656. 66123:28:11Total passed: 427 Failed: 0