We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b9ad75 commit 15e1834Copy full SHA for 15e1834
exercises/practice/rational-numbers/src/test/java/RationalTest.java
@@ -8,10 +8,10 @@ public class RationalTest {
8
9
// Helper methods
10
11
- private static final double DOUBLE_EQUALITY_TOLERANCE = 1e-15;
+ private static final double DOUBLE_EQUALITY_TOLERANCE = 2e-15;
12
13
private void assertDoublesEqual(double x, double y) {
14
- assertThat(x).isEqualTo(y, within(DOUBLE_EQUALITY_TOLERANCE));
+ assertThat(x).isCloseTo(y, within(DOUBLE_EQUALITY_TOLERANCE));
15
}
16
17
// Tests
0 commit comments