mirror of https://github.com/apache/lucene.git
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
|
if (Double.compare(point.getLat(), otherPoint.getLat()) != 0
|
||||||
|| Double.compare(point.getLon(), otherPoint.getLon()) != 0) {
|
|| Double.compare(point.getLon(), otherPoint.getLon()) != 0) {
|
||||||
assertNotEquals(point, otherPoint);
|
assertNotEquals(point, otherPoint);
|
||||||
assertNotEquals(point.hashCode(), otherPoint.hashCode());
|
// it is possible to have hashcode collisions
|
||||||
} else {
|
} else {
|
||||||
assertEquals(point, otherPoint);
|
assertEquals(point, otherPoint);
|
||||||
assertEquals(point.hashCode(), otherPoint.hashCode());
|
assertEquals(point.hashCode(), otherPoint.hashCode());
|
||||||
|
|
Loading…
Reference in New Issue