This is an automated email from the ASF dual-hosted git repository.

garydgregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-numbers.git


The following commit(s) were added to refs/heads/master by this push:
     new b4a2cddc Better use of JUnit API.
b4a2cddc is described below

commit b4a2cddcf01696cbbab2375143e627efc3dcf1bd
Author: Gary Gregory <[email protected]>
AuthorDate: Mon Jul 27 15:26:33 2026 +0000

    Better use of JUnit API.
---
 .../test/java/org/apache/commons/numbers/fraction/UserGuideTest.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/commons-numbers-fraction/src/test/java/org/apache/commons/numbers/fraction/UserGuideTest.java
 
b/commons-numbers-fraction/src/test/java/org/apache/commons/numbers/fraction/UserGuideTest.java
index b226f0e6..524249ca 100644
--- 
a/commons-numbers-fraction/src/test/java/org/apache/commons/numbers/fraction/UserGuideTest.java
+++ 
b/commons-numbers-fraction/src/test/java/org/apache/commons/numbers/fraction/UserGuideTest.java
@@ -57,7 +57,7 @@ class UserGuideTest {
         Fraction f2 = Fraction.of(15, -16);
 
         Assertions.assertEquals(-1, f1.signum());
-        Assertions.assertTrue(f1.equals(f2));
+        Assertions.assertEquals(f1, f2);
         Assertions.assertEquals(0, f1.compareTo(f2));
         Assertions.assertEquals(-1, f1.compareTo(Fraction.ZERO));
 

Reply via email to