Skip to content

Commit

Permalink
Fix unit test
Browse files Browse the repository at this point in the history
Result of PI calculator differs each time. To be on the safe side, accept a delta of 0.03
  • Loading branch information
davidkopp committed Feb 7, 2024
1 parent b06087d commit 7779a93
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ public void serviceCallsComputeOperation() {
public void testPiCalculator() {
IComputeOperation<Double> piCalculator = new PiCalculator(100000);
Double pi = piCalculator.doCompute();
assertEquals(Math.PI, pi, 0.01);
assertEquals(Math.PI, pi, 0.03);
}
}

0 comments on commit 7779a93

Please sign in to comment.