aherbert commented on a change in pull request #98: URL: https://github.com/apache/commons-numbers/pull/98#discussion_r654888225
########## File path: commons-numbers-fraction/src/test/java/org/apache/commons/numbers/fraction/FractionTest.java ########## @@ -463,10 +463,10 @@ void testSubtract() { @Test void testEqualsAndHashCode() { final Fraction zero = Fraction.of(0, 1); - Assertions.assertTrue(zero.equals(zero)); - Assertions.assertFalse(zero.equals(null)); - Assertions.assertFalse(zero.equals(new Object())); - Assertions.assertFalse(zero.equals(Double.valueOf(0))); + Assertions.assertEquals(zero, zero); + Assertions.assertNotEquals(null, zero); + Assertions.assertNotEquals(zero, new Object()); + Assertions.assertNotEquals(zero, Double.valueOf(0), 0.0); Review comment: This is creating a compile failure in the CI build. Remove the `0.0` tolerance argument. This is a test for Object.equals and not floating-point equivalence of doubles. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org