From d3edd71e4f723f64c4b5d4473c1b5ecd2cee60b6 Mon Sep 17 00:00:00 2001 From: soul Date: Sat, 28 Nov 2026 19:09:56 +0100 Subject: [PATCH] Ammo-run test: a shooter is stocked exactly to its hold when its draw exceeds it Co-Authored-By: Claude Sonnet 5.5 --- tests/Aetheria.Shared.Tests/ScenarioAmmunitionRunTests.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/Aetheria.Shared.Tests/ScenarioAmmunitionRunTests.cs b/tests/Aetheria.Shared.Tests/ScenarioAmmunitionRunTests.cs index 49ee8ed01..8211fdf80 100644 --- a/tests/Aetheria.Shared.Tests/ScenarioAmmunitionRunTests.cs +++ b/tests/Aetheria.Shared.Tests/ScenarioAmmunitionRunTests.cs @@ -87,7 +87,8 @@ public sealed partial class RunStartTests return worst.Select(kv => (kv.Key.Item1, kv.Key.Item2, kv.Value.drawn, kv.Value.stocked, kv.Value.full)).ToList(); } - // Stocked to its draw, or its hold is full (a ship that holds every gun down for ten minutes may run dry). Measured draws at the 600 s window with every hull + // Six draws exceed their holds (the rest are launchers that draw under a reload): a shooter is stocked exactly to its hold's capacity for an ammunition when its draw exceeds it, and runs dry (Self's stocking ruling, + // the coordinator's message of 2026-11-28, given in chat and not admitted). Measured draws at the 600 s window with every hull // conducting: Arcs turret 110 Ammo, player 230 Ammo; Pursuit pursuer 199 Ammo and 14 Missiles, player 42 Mines and 195 Ammo. // Arcs, run to its end twice: the player holding every gun down, and the player standing in the hostile turret's range while the turret // shoots. Kills: a crate count nobody measured (the turret's 30 and the player's none were estimates), a scenario shooter stocked below @@ -98,7 +99,7 @@ public sealed partial class RunStartTests var run = WorstRun(new Arcs(), (true, false), (false, true)); Assert.Contains(run, r => r.shooter == 2 && r.ammo == "Ammo" && r.drawn > 0); Assert.Contains(run, r => r.shooter == -1 && r.ammo == "Ammo" && r.drawn > 0); - Assert.All(run, r => Assert.True(r.stocked >= r.drawn || r.full, $"Arcs shooter {r.shooter} drew {r.drawn} {r.ammo} over a run and was stocked {r.stocked} with room left")); + Assert.All(run, r => Assert.True(r.full == r.drawn > r.stocked, $"Arcs shooter {r.shooter} drew {r.drawn} {r.ammo} and was stocked {r.stocked}, hold full: {r.full}")); } // Pursuit, the player holding every gun down and the pursuer shooting back, then the player idle. Kills: as above, for the Mine Launcher's @@ -109,6 +110,6 @@ public sealed partial class RunStartTests var run = WorstRun(new Pursuit(), (true, false), (false, false)); Assert.Contains(run, r => r.shooter == -1 && r.ammo == "Mines" && r.drawn > 0); Assert.Contains(run, r => r.shooter == 0 && r.ammo == "Ammo" && r.drawn > 0); - Assert.All(run, r => Assert.True(r.stocked >= r.drawn || r.full, $"Pursuit shooter {r.shooter} drew {r.drawn} {r.ammo} over a run and was stocked {r.stocked} with room left")); + Assert.All(run, r => Assert.True(r.full == r.drawn > r.stocked, $"Pursuit shooter {r.shooter} drew {r.drawn} {r.ammo} and was stocked {r.stocked}, hold full: {r.full}")); } }