Skip to content

Commit

Permalink
Modify test
Browse files Browse the repository at this point in the history
  • Loading branch information
henneboy committed Nov 18, 2024
1 parent 5316e67 commit f0d8948
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Assets/PlayModeTests/Robot2DControllerTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ public IEnumerator EstimateTimeToTarget_IsTimeCorrectTest(float actualDistance)
}
yield return null;
}
var maximumDeviation = 1 + (int)Math.Floor(actualDistance / 10f);
var maximumDeviation = 3 + (int) Math.Floor(actualDistance / 10f);
// 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);
Expand Down

0 comments on commit f0d8948

Please sign in to comment.