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 ea11011 commit 3afc8f4Copy full SHA for 3afc8f4
exercises/practice/rational-numbers/src/test/java/RationalTest.java
@@ -11,7 +11,7 @@ public class RationalTest {
11
private static final double DOUBLE_EQUALITY_TOLERANCE = 1e-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