[
https://issues.apache.org/jira/browse/LUCENE-7312?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15313191#comment-15313191
]
Karl Wright commented on LUCENE-7312:
-------------------------------------
This looks reasonable, except for some debugging code:
{code}
@@ -1172,6 +1173,11 @@ public class TestGeo3DPoint extends LuceneTestCase {
GeoPoint pointEnc = new
GeoPoint(Geo3DUtil.decodeValueFloor(Geo3DUtil.encodeValue(point.x)),
Geo3DUtil.decodeValueFloor(Geo3DUtil.encodeValue(point.y)),
Geo3DUtil.decodeValueFloor(Geo3DUtil.encodeValue(point.z)));
+ if (iter >= 2881) {
+ System.out.println("iter=" + iter + " i=" + i + " lat=" + lat + "
lon=" + lon);
+ System.out.println(" point=" + point);
+ System.out.println(" pointEnc=" + pointEnc);
+ }
assertTrue(pointEnc.x <= point.x);
assertTrue(pointEnc.y <= point.y);
assertTrue(pointEnc.z <= point.z);
{code}
I don't actually understand what getNextSafeDouble() is intended to do, though?
> Geo3dPoint test failure
> -----------------------
>
> Key: LUCENE-7312
> URL: https://issues.apache.org/jira/browse/LUCENE-7312
> Project: Lucene - Core
> Issue Type: Bug
> Components: modules/spatial3d
> Affects Versions: master (7.0)
> Reporter: Karl Wright
> Assignee: Karl Wright
> Attachments: LUCENE-7312.patch
>
>
> Here's the failure:
> {code}
> ant test -Dtestcase=TestGeo3DPoint -Dtests.method=testEncodeDecodeRoundsDown
> -Dtests.seed=7046405B94C1716E -Dtests.multiplier=3 -Dtests.slow=true
> -Dtests.locale=da-DK -Dtests.timezone=America/Detroit -Dtests.asserts=true
> -Dtests.file.encoding=UTF-8
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]