lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject svn commit: r1388478 - /lucene.net/trunk/test/contrib/Spatial/Prefix/TestRecursivePrefixTreeStrategy.cs
Date Fri, 21 Sep 2012 13:18:31 GMT
Author: synhershko
Date: Fri Sep 21 13:18:31 2012
New Revision: 1388478

URL: http://svn.apache.org/viewvc?rev=1388478&view=rev
Log:
Updating test

Modified:
    lucene.net/trunk/test/contrib/Spatial/Prefix/TestRecursivePrefixTreeStrategy.cs

Modified: lucene.net/trunk/test/contrib/Spatial/Prefix/TestRecursivePrefixTreeStrategy.cs
URL: http://svn.apache.org/viewvc/lucene.net/trunk/test/contrib/Spatial/Prefix/TestRecursivePrefixTreeStrategy.cs?rev=1388478&r1=1388477&r2=1388478&view=diff
==============================================================================
--- lucene.net/trunk/test/contrib/Spatial/Prefix/TestRecursivePrefixTreeStrategy.cs (original)
+++ lucene.net/trunk/test/contrib/Spatial/Prefix/TestRecursivePrefixTreeStrategy.cs Fri Sep
21 13:18:31 2012
@@ -105,8 +105,8 @@ namespace Lucene.Net.Contrib.Spatial.Tes
 			var random = NewRandom();
 
 			//1. Iterate test with the cluster at some worldly point of interest
-			var clusterCenters = new Point[] { new PointImpl(0, 0), new PointImpl(0, 90), new PointImpl(0,
-90) };
-			foreach (Point clusterCenter in clusterCenters)
+            var clusterCenters = new Point[] { ctx.MakePoint(-180, 0), ctx.MakePoint(0, 90),
ctx.MakePoint(0, -90) };
+			foreach (var clusterCenter in clusterCenters)
 			{
 				//2. Iterate on size of cluster (a really small one and a large one)
 				String hashCenter = GeohashUtils.EncodeLatLon(clusterCenter.GetY(), clusterCenter.GetX(),
maxLength);



Mime
View raw message