You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by kw...@apache.org on 2018/08/17 07:44:32 UTC

lucene-solr:master: LUCENE-8457: Add disabled unit test demonstrating the problem.

Repository: lucene-solr
Updated Branches:
  refs/heads/master 4309ae6f9 -> 9e54e3e9b


LUCENE-8457: Add disabled unit test demonstrating the problem.


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/9e54e3e9
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/9e54e3e9
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/9e54e3e9

Branch: refs/heads/master
Commit: 9e54e3e9b4cef2fa0569fdd342bff653dc7a093a
Parents: 4309ae6
Author: Karl Wright <Da...@gmail.com>
Authored: Fri Aug 17 03:44:20 2018 -0400
Committer: Karl Wright <Da...@gmail.com>
Committed: Fri Aug 17 03:44:20 2018 -0400

----------------------------------------------------------------------
 .../apache/lucene/spatial3d/geom/XYZSolidTest.java  | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/9e54e3e9/lucene/spatial3d/src/test/org/apache/lucene/spatial3d/geom/XYZSolidTest.java
----------------------------------------------------------------------
diff --git a/lucene/spatial3d/src/test/org/apache/lucene/spatial3d/geom/XYZSolidTest.java b/lucene/spatial3d/src/test/org/apache/lucene/spatial3d/geom/XYZSolidTest.java
index 98c616e..0325533 100644
--- a/lucene/spatial3d/src/test/org/apache/lucene/spatial3d/geom/XYZSolidTest.java
+++ b/lucene/spatial3d/src/test/org/apache/lucene/spatial3d/geom/XYZSolidTest.java
@@ -216,5 +216,21 @@ public class XYZSolidTest extends LuceneTestCase {
     // MHL for degenerate Z
     
   }
+
+  @Test
+  @AwaitsFix(bugUrl="https://issues.apache.org/jira/browse/LUCENE-8457")
+  public void testLUCENE8457() {
+    GeoShape shape = GeoBBoxFactory.makeGeoBBox(PlanetModel.WGS84, Math.PI, 1.2487354264870392, 0.0, 3.5181789305199657E-12);
+    XYZBounds bounds = new XYZBounds();
+    shape.getBounds(bounds);
+    XYZSolid solid = XYZSolidFactory.makeXYZSolid(PlanetModel.WGS84, bounds);
+
+    GeoPoint point = new GeoPoint(PlanetModel.WGS84, 1.4812439919751819, -3.141592653589793);
+    //if the point is within the shape, it must be within the solid
+    if (shape.isWithin(point)) {
+      assertTrue(solid.isWithin(point));
+    }
+
+  }
   
 }