Rewrite the tests that read the mixer; add the ship-level allocator tests
EvasionTerm: the aggregate reads go; SteeringTests: ATurnIsThatFractionOfTheHullsTurn; Brownout/ConditionRatio seat the lone thruster on the centre column; ThrottleLockTests compare a locked ship to an unlocked twin through the same ticks; ThrustAllocationTests (Duel flight, lost/degraded/repaired drives, dead thrusters, full turn, arena-stepped flight); ThrustAllocatorTests.AMicroIntentIsServed. Not yet verified green at this commit; the test project builds only against the deleted aggregates' removal in the previous commit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
c349de9c31
commit
df61900db8
8 changed files with 363 additions and 161 deletions
|
|
@ -239,7 +239,7 @@ public sealed partial class RunStartTests
|
|||
|
||||
// A write to Direction between steps (staging, a load, a wormhole exit) is not a turn.
|
||||
player.Turn = 0;
|
||||
player.MovementDirection = float2(0, 0); // two backfilled drives differ in quality, so a held thrust is a net torque
|
||||
player.MovementDirection = float2(0, 0); // the drives are idled so the Direction write below is tested alone
|
||||
for (var step = 0; step < 600 && abs(player.TurnRate) > 0; step++) arena.Update(ClockFrame);
|
||||
player.Direction = normalize(float2(3, -4));
|
||||
arena.Update(ClockFrame);
|
||||
|
|
|
|||
Loading…
Reference in a new issue