Skip to content

Commit 15e1834

Browse files
authored
Changes in RationalTest.java
Correcting the error I made in (#2886). no important files changed
1 parent 7b9ad75 commit 15e1834

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

exercises/practice/rational-numbers/src/test/java/RationalTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ public class RationalTest {
88

99
// Helper methods
1010

11-
private static final double DOUBLE_EQUALITY_TOLERANCE = 1e-15;
11+
private static final double DOUBLE_EQUALITY_TOLERANCE = 2e-15;
1212

1313
private void assertDoublesEqual(double x, double y) {
14-
assertThat(x).isEqualTo(y, within(DOUBLE_EQUALITY_TOLERANCE));
14+
assertThat(x).isCloseTo(y, within(DOUBLE_EQUALITY_TOLERANCE));
1515
}
1616

1717
// Tests

0 commit comments

Comments
 (0)