From 303f73e19f485be9855a31c4dd4b2322c99cd6cc Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Thu, 8 Oct 2026 22:39:21 +0200 Subject: [PATCH] Tests: the Longinus envelope's flank sides are each Talaria's own thrust Each fitted Talaria has its own lot's thrust, so Left and Right are the two flanks' accelerations, not both the larger one. Co-Authored-By: Claude Sonnet 5.5 --- tests/Aetheria.Shared.Tests/EvasionTermTests.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/Aetheria.Shared.Tests/EvasionTermTests.cs b/tests/Aetheria.Shared.Tests/EvasionTermTests.cs index 594019d43..708f863bb 100644 --- a/tests/Aetheria.Shared.Tests/EvasionTermTests.cs +++ b/tests/Aetheria.Shared.Tests/EvasionTermTests.cs @@ -319,9 +319,11 @@ public sealed partial class RunStartTests var forward = largeDrives.Sum(t => t.Thrust) / mass; // each drive's own thrust: a Large Drive's roll moves it between 0.8x and 1.2x Assert.InRange(envelope.Forward, forward * .99f, forward * 1.01f); Assert.Equal(0f, envelope.Reverse); - var flankAcceleration = flanks.Max(t => t.Thrust) / mass; - Assert.InRange(envelope.Left, flankAcceleration * .99f, flankAcceleration * 1.01f); - Assert.InRange(envelope.Right, flankAcceleration * .99f, flankAcceleration * 1.01f); + // One Talaria pushes each way, and each has its own lot's thrust: the sides are the two flanks' accelerations. + var flankAccelerations = flanks.Select(t => t.Thrust / mass).OrderBy(a => a).ToArray(); + var sides = new[] { envelope.Left, envelope.Right }.OrderBy(a => a).ToArray(); + Assert.InRange(sides[0], flankAccelerations[0] * .99f, flankAccelerations[0] * 1.01f); + Assert.InRange(sides[1], flankAccelerations[1] * .99f, flankAccelerations[1] * 1.01f); var clockwise = thrusters.Where(t => t.Torque > settings.TorqueFloor).Sum(t => t.Torque * t.Thrust) * settings.TorqueMultiplier / mass; var counterClockwise = thrusters.Where(t => t.Torque < -settings.TorqueFloor).Sum(t => -t.Torque * t.Thrust) * settings.TorqueMultiplier / mass; Assert.InRange(envelope.Clockwise, clockwise * .99f, clockwise * 1.01f);