You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by iv...@apache.org on 2026/02/24 16:57:20 UTC
(lucene) branch branch_10x updated: Added simpler TestTesselator test in support of a previous fix (#15764)
This is an automated email from the ASF dual-hosted git repository.
ivera pushed a commit to branch branch_10x
in repository https://gitbox.apache.org/repos/asf/lucene.git
The following commit(s) were added to refs/heads/branch_10x by this push:
new 01e2ec317cc Added simpler TestTesselator test in support of a previous fix (#15764)
01e2ec317cc is described below
commit 01e2ec317cc82f578c93bf88b9a7ab85422f4344
Author: Craig Taverner <cr...@amanzi.com>
AuthorDate: Tue Feb 24 17:56:21 2026 +0100
Added simpler TestTesselator test in support of a previous fix (#15764)
Added simpler test to focus on the key part that was failing
---
lucene/CHANGES.txt | 2 ++
.../org/apache/lucene/geo/TestTessellator.java | 22 ++++++++++++++++++++++
2 files changed, 24 insertions(+)
diff --git a/lucene/CHANGES.txt b/lucene/CHANGES.txt
index 3cd7fddf68f..dd1531805df 100644
--- a/lucene/CHANGES.txt
+++ b/lucene/CHANGES.txt
@@ -53,6 +53,8 @@ Other
---------------------
* GITHUB#15586: Document that scoring and ranking may change across major Lucene versions, and that applications requiring stable ranking should explicitly configure Similarity. (Parveen Saini)
+* GITHUB#15764: Added simpler TestTesselator test in support of fix GITHUB#15731. (Craig Taverner)
+
======================= Lucene 10.4.0 =======================
API Changes
diff --git a/lucene/core/src/test/org/apache/lucene/geo/TestTessellator.java b/lucene/core/src/test/org/apache/lucene/geo/TestTessellator.java
index 295e7929b37..72cb739f3b6 100644
--- a/lucene/core/src/test/org/apache/lucene/geo/TestTessellator.java
+++ b/lucene/core/src/test/org/apache/lucene/geo/TestTessellator.java
@@ -953,6 +953,28 @@ public class TestTessellator extends LuceneTestCase {
checkMultiPolygon(polygons, 0.0);
}
+ public void testComplexPolygon65() throws Exception {
+ // Simplified extract of the top-left corner of github-15731.geojson.gz:
+ // shell replaced with a bounding rectangle from the top-left-most shell vertex
+ // to a bottom-right cutoff point, with two surviving holes.
+ String geoJson =
+ """
+ {"type": "Polygon", "coordinates": [
+ [
+ [-97.12583, 32.67035], [-97.12466, 32.67035], [-97.12466, 32.6691],
+ [-97.12583, 32.6691], [-97.12583, 32.67035]
+ ], [
+ [-97.125074, 32.669464], [-97.125051, 32.669857], [-97.124884, 32.669819],
+ [-97.124906, 32.669464], [-97.124922, 32.669464], [-97.125074, 32.669464]
+ ], [
+ [-97.124922, 32.669464], [-97.124716, 32.669445], [-97.124739, 32.669128],
+ [-97.124906, 32.669128], [-97.124922, 32.669464]
+ ]
+ ]}""";
+ Polygon[] polygons = Polygon.fromGeoJSON(geoJson);
+ checkMultiPolygon(polygons, 0.0);
+ }
+
private static class TestCountingMonitor implements Tessellator.Monitor {
private int count = 0;
private int splitsStarted = 0;