From 79241fd553cd95eb6b016a224f9c737ceb492785 Mon Sep 17 00:00:00 2001 From: Henrik van Peet Date: Tue, 19 Nov 2024 10:06:09 +0100 Subject: [PATCH] Remove outcommented code --- Assets/PlayModeTests/Robot2DControllerTest.cs | 3 --- 1 file changed, 3 deletions(-) diff --git a/Assets/PlayModeTests/Robot2DControllerTest.cs b/Assets/PlayModeTests/Robot2DControllerTest.cs index 9bd430e8..b1e4ff06 100644 --- a/Assets/PlayModeTests/Robot2DControllerTest.cs +++ b/Assets/PlayModeTests/Robot2DControllerTest.cs @@ -230,7 +230,6 @@ public IEnumerator EstimateTimeToTarget_IsTimeCorrectTest(float actualDistance) controller.PathAndMoveTo(coarseMapTargetPosition); }; - //Debug.Log($"PathAndMoveTo coarseTile from: {coarseMapStartingPosition}, to: {coarseMapTargetPosition}"); _maes.PressPlayButton(); var prevTick = -1; while (_testAlgorithm.Tick == 0 || _currentCoarseTile != coarseMapTargetPosition) @@ -238,12 +237,10 @@ public IEnumerator EstimateTimeToTarget_IsTimeCorrectTest(float actualDistance) if (debug && prevTick != _testAlgorithm.Tick) { prevTick = _testAlgorithm.Tick; - //Debug.Log($"Tick: {_testAlgorithm.Tick}, current position: {_currentCoarseTile}, current status: {_testAlgorithm.Controller.GetStatus()}"); } yield return null; } var maximumDeviation = 3 + (int)Math.Floor(actualDistance / 5f); - // Debug.Log($"Final tick: {_testAlgorithm.Tick}, current position: {_currentCoarseTile}, current status: {_testAlgorithm.Controller.GetStatus()}"); Debug.Log($"Cells moved: {cellOffset}, dist: {actualDistance}, {nameof(estimatedTime)}: {estimatedTime}, {nameof(_testAlgorithm.Tick)}: {_testAlgorithm.Tick}"); var targetTimeDelta = Math.Abs(_testAlgorithm.Tick - estimatedTime); Assert.LessOrEqual(targetTimeDelta, maximumDeviation);