From 158aeecf705dd9a00fbac1867c10ba9a8c34e083 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sat, 10 Oct 2026 14:26:50 +0200 Subject: [PATCH] ThrustAllocationTests: probe the tiny-imbalance drift (temporary diagnostics) Does not claim green. Co-Authored-By: Claude Opus 5.5 --- tests/Aetheria.Shared.Tests/ThrustAllocationTests.cs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/tests/Aetheria.Shared.Tests/ThrustAllocationTests.cs b/tests/Aetheria.Shared.Tests/ThrustAllocationTests.cs index a3de52005..b9fb7ba20 100644 --- a/tests/Aetheria.Shared.Tests/ThrustAllocationTests.cs +++ b/tests/Aetheria.Shared.Tests/ThrustAllocationTests.cs @@ -127,8 +127,15 @@ public sealed partial class RunStartTests ship.MovementDirection = float2(0, 1); ship.Turn = 0; - var drift = AllocFly(ship, 600); - Assert.True(abs(drift) < .05f, $"heading changed {drift} deg; drives {string.Join(" ", drives.Select(d => $"{d.Thrust:F0}/{d.Axis:F3}"))}"); + var log = ""; + float drift = 0; + for (var seg = 0; seg < 10; seg++) + { + drift += AllocFly(ship, 60); + log += $" +{seg}: {drift:F3} " + string.Join(" ", ship.GetBehaviors().Select(d => $"[{d.Item.EquippableItem.Rotation} {(d.Item.Active.Value ? "on" : "OFF")} {d.Thrust:F0}/{d.Axis:F4} t{d.Item.Temperature:F0}]")); + } + Assert.True(abs(drift) < .05f, log); } [Fact]