Skip to content

Commit

Permalink
Remove outcommented code
Browse files Browse the repository at this point in the history
  • Loading branch information
henneboy committed Nov 19, 2024
1 parent 334be2d commit 79241fd
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Assets/PlayModeTests/Robot2DControllerTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -230,20 +230,17 @@ 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)
{
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);
Expand Down

0 comments on commit 79241fd

Please sign in to comment.