Skip to content

Commit 3afc8f4

Browse files
authored
Changes in RationalTest.java
Correct the error I previously made in (#2886) no important files changed
1 parent ea11011 commit 3afc8f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public class RationalTest {
1111
private static final double DOUBLE_EQUALITY_TOLERANCE = 1e-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)