lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thelabd...@apache.org
Subject [02/50] lucene-solr:jira/SOLR-8908: Stop tests from failing just because of toString test
Date Wed, 13 Apr 2016 23:21:18 GMT
Stop tests from failing just because of toString test


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

Branch: refs/heads/jira/SOLR-8908
Commit: 4537a66bb16610dafef06965a0cfa346a2edd7de
Parents: eb87512
Author: Karl Wright <DaddyWri@gmail.com>
Authored: Fri Apr 8 20:34:23 2016 -0400
Committer: Karl Wright <DaddyWri@gmail.com>
Committed: Fri Apr 8 20:34:23 2016 -0400

----------------------------------------------------------------------
 .../src/test/org/apache/lucene/spatial3d/TestGeo3DPoint.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/4537a66b/lucene/spatial3d/src/test/org/apache/lucene/spatial3d/TestGeo3DPoint.java
----------------------------------------------------------------------
diff --git a/lucene/spatial3d/src/test/org/apache/lucene/spatial3d/TestGeo3DPoint.java b/lucene/spatial3d/src/test/org/apache/lucene/spatial3d/TestGeo3DPoint.java
index 4e2e02e..3aa1719 100644
--- a/lucene/spatial3d/src/test/org/apache/lucene/spatial3d/TestGeo3DPoint.java
+++ b/lucene/spatial3d/src/test/org/apache/lucene/spatial3d/TestGeo3DPoint.java
@@ -805,7 +805,7 @@ public class TestGeo3DPoint extends LuceneTestCase {
 
   public void testToString() {
     Geo3DPoint point = new Geo3DPoint("point", 44.244272, 7.769736);
-    assertEquals("Geo3DPoint <point: x=0.7094263130517758 y=0.09679758927665334 z=0.6973564618592686>",
point.toString());
+    assertEquals("Geo3DPoint <point: x=", point.toString().substring(0,"Geo3DPoint <point:
x=".length()));
   }
 
   public void testShapeQueryToString() {


Mime
View raw message