Skip to content

Commit

Permalink
Update RationalTest.java
Browse files Browse the repository at this point in the history
Fixed the bug in (exercism#2823) issue
  • Loading branch information
stamatisn authored Dec 28, 2024
1 parent 6609226 commit 5bdd96e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class RationalTest {
private static final double DOUBLE_EQUALITY_TOLERANCE = 1e-15;

private void assertDoublesEqual(double x, double y) {
assertThat(x).isEqualTo(y, within(DOUBLE_EQUALITY_TOLERANCE));
assertThat(x, closeTo(y, within (DOUBLE_EQUALITY_TOLERANCE));
}

// Tests
Expand Down

0 comments on commit 5bdd96e

Please sign in to comment.