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 bce1d70 commit cf20019Copy full SHA for cf20019
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 = 1e-8;
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