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

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


The following commit(s) were added to refs/heads/master by this push:
     new 284aa8ea Revert hashcode test in GreatCircleTest
284aa8ea is described below

commit 284aa8eaee09782b1e170da59560b6a46ca7c071
Author: Alex Herbert <aherb...@apache.org>
AuthorDate: Fri Mar 28 16:30:11 2025 +0000

    Revert hashcode test in GreatCircleTest
    
    This test merged from the GH pull request fails when using the updated
    hashcode computation.
---
 .../org/apache/commons/geometry/spherical/twod/GreatCircleTest.java   | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git 
a/commons-geometry-spherical/src/test/java/org/apache/commons/geometry/spherical/twod/GreatCircleTest.java
 
b/commons-geometry-spherical/src/test/java/org/apache/commons/geometry/spherical/twod/GreatCircleTest.java
index 6b60fd02..d4aaa388 100644
--- 
a/commons-geometry-spherical/src/test/java/org/apache/commons/geometry/spherical/twod/GreatCircleTest.java
+++ 
b/commons-geometry-spherical/src/test/java/org/apache/commons/geometry/spherical/twod/GreatCircleTest.java
@@ -664,9 +664,7 @@ class GreatCircleTest {
         Assertions.assertEquals(hash, a.hashCode());
 
         Assertions.assertNotEquals(hash, b.hashCode());
-        // Equal objects have equal hash codes
-        Assertions.assertEquals(a, c);
-        Assertions.assertEquals(hash, c.hashCode());
+        Assertions.assertNotEquals(hash, c.hashCode());
         Assertions.assertNotEquals(hash, d.hashCode());
 
         Assertions.assertEquals(hash, e.hashCode());

Reply via email to