From 6833f5aa7fe56f5a16b6954c085b930173ee9fc7 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Wed, 7 Oct 2026 16:35:00 +0200 Subject: [PATCH] TurnIsClampedToOne: compare against the starting heading, not the hull's own The reference-turn assertion measured the angle between the hull and itself. Co-Authored-By: Claude Sonnet 5.5 --- tests/Aetheria.Shared.Tests/SteeringTests.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/Aetheria.Shared.Tests/SteeringTests.cs b/tests/Aetheria.Shared.Tests/SteeringTests.cs index 5d6aad5fa..8ff0f021c 100644 --- a/tests/Aetheria.Shared.Tests/SteeringTests.cs +++ b/tests/Aetheria.Shared.Tests/SteeringTests.cs @@ -244,6 +244,7 @@ public sealed class SteeringTests var three = RestoredHullsTests.BuildThrustedShip(cache, Hull); var minusOne = RestoredHullsTests.BuildThrustedShip(cache, Hull); var minusThree = RestoredHullsTests.BuildThrustedShip(cache, Hull); + var start = one.Direction; one.Turn = 1; three.Turn = 3; @@ -257,7 +258,7 @@ public sealed class SteeringTests minusThree.Update(1f / 60f); } - Assert.True(Angle(one.Direction, Heading(one, 0f)) > radians(.05f), "the reference turn is real"); + Assert.True(Angle(start, one.Direction) > radians(.02f), "the reference turn is real"); Assert.True(Angle(one.Direction, three.Direction) < radians(.001f), $"{Angle(one.Direction, three.Direction)}"); Assert.True(Angle(minusOne.Direction, minusThree.Direction) < radians(.001f)); }