mirror of
https://github.com/apache/lucene.git
synced 2025-03-06 08:19:23 +00:00
Fix test failure on TestPoint#testEqualsAndHashCode (#13433)
This commit is contained in:
parent
a540027bde
commit
a6f920d989
@ -56,7 +56,7 @@ public class TestPoint extends LuceneTestCase {
|
||||
if (Double.compare(point.getLat(), otherPoint.getLat()) != 0
|
||||
|| Double.compare(point.getLon(), otherPoint.getLon()) != 0) {
|
||||
assertNotEquals(point, otherPoint);
|
||||
assertNotEquals(point.hashCode(), otherPoint.hashCode());
|
||||
// it is possible to have hashcode collisions
|
||||
} else {
|
||||
assertEquals(point, otherPoint);
|
||||
assertEquals(point.hashCode(), otherPoint.hashCode());
|
||||
|
Loading…
x
Reference in New Issue
Block a user