|
21 | 21 | import com.carrotsearch.randomizedtesting.generators.RandomPicks;
|
22 | 22 |
|
23 | 23 | import org.apache.lucene.geo.Point;
|
24 |
| -import org.apache.lucene.spatial3d.geom.GeoArea; |
25 | 24 | import org.apache.lucene.spatial3d.geom.GeoPoint;
|
26 | 25 | import org.apache.lucene.spatial3d.geom.GeoPolygon;
|
27 | 26 | import org.apache.lucene.spatial3d.geom.GeoPolygonFactory;
|
@@ -133,23 +132,13 @@ private void assertHexRing(int res, String h3Address, String[] children) {
|
133 | 132 | public void testNoChildrenIntersecting() {
|
134 | 133 | String[] h3Addresses = H3.getStringRes0Cells();
|
135 | 134 | String h3Address = RandomPicks.randomFrom(random(), h3Addresses);
|
136 |
| - // Once testIssue91915 is fixed, put upper limit of the loop to H3.MAX_H3_RES |
137 |
| - for (int i = 1; i <= 10; i++) { |
| 135 | + for (int i = 1; i <= H3.MAX_H3_RES; i++) { |
138 | 136 | h3Addresses = H3.h3ToChildren(h3Address);
|
139 | 137 | assertIntersectingChildren(h3Address, h3Addresses);
|
140 | 138 | h3Address = RandomPicks.randomFrom(random(), h3Addresses);
|
141 | 139 | }
|
142 | 140 | }
|
143 | 141 |
|
144 |
| - public void testIssue91915() { |
145 |
| - GeoPolygon polygon1 = getGeoPolygon("8ec82ea0650155f"); |
146 |
| - GeoPolygon polygon2 = getGeoPolygon("8ec82ea06501447"); |
147 |
| - // these polygons are disjoint but due to https://github.com/apache/lucene/issues/11883 |
148 |
| - // they are reported as intersects. Once this is fixed this test will fail, we should adjust |
149 |
| - // testNoChildrenIntersecting |
150 |
| - assertEquals("see https://github.com/elastic/elasticsearch/issues/91915", GeoArea.OVERLAPS, polygon1.getRelationship(polygon2)); |
151 |
| - } |
152 |
| - |
153 | 142 | private void assertIntersectingChildren(String h3Address, String[] children) {
|
154 | 143 | int size = H3.h3ToNotIntersectingChildrenSize(h3Address);
|
155 | 144 | for (int i = 0; i < size; i++) {
|
|
0 commit comments