lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r881430 - in /incubator/lucene.net/trunk/C#/src/Test/Search: TestMultiSearcher.cs TestMultiThreadTermVectors.cs TestMultiValuedNumericRangeQuery.cs TestNot.cs TestParallelMultiSearcher.cs
Date Tue, 17 Nov 2009 18:19:52 GMT
Author: digy
Date: Tue Nov 17 18:19:52 2009
New Revision: 881430

URL: http://svn.apache.org/viewvc?rev=881430&view=rev
Log:
LUCENENET-271 TestMulitSearcher - TestParallelMultiSearcher

Modified:
    incubator/lucene.net/trunk/C#/src/Test/Search/TestMultiSearcher.cs
    incubator/lucene.net/trunk/C#/src/Test/Search/TestMultiThreadTermVectors.cs
    incubator/lucene.net/trunk/C#/src/Test/Search/TestMultiValuedNumericRangeQuery.cs
    incubator/lucene.net/trunk/C#/src/Test/Search/TestNot.cs
    incubator/lucene.net/trunk/C#/src/Test/Search/TestParallelMultiSearcher.cs

Modified: incubator/lucene.net/trunk/C#/src/Test/Search/TestMultiSearcher.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Test/Search/TestMultiSearcher.cs?rev=881430&r1=881429&r2=881430&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Test/Search/TestMultiSearcher.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Test/Search/TestMultiSearcher.cs Tue Nov 17 18:19:52
2009
@@ -90,9 +90,6 @@
 				return 1.0f;
 			}
 		}
-		public TestMultiSearcher(System.String name):base(name)
-		{
-		}
 		
 		/// <summary> ReturnS a new instance of the concrete MultiSearcher class
 		/// used in this test.

Modified: incubator/lucene.net/trunk/C#/src/Test/Search/TestMultiThreadTermVectors.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Test/Search/TestMultiThreadTermVectors.cs?rev=881430&r1=881429&r2=881430&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Test/Search/TestMultiThreadTermVectors.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Test/Search/TestMultiThreadTermVectors.cs Tue Nov 17
18:19:52 2009
@@ -41,10 +41,6 @@
 		public int numDocs = 100;
 		public int numThreads = 3;
 		
-		public TestMultiThreadTermVectors(System.String s):base(s)
-		{
-		}
-		
 		[Test]
 		public override void  SetUp()
 		{
@@ -95,7 +91,7 @@
 			}
 		}
 		
-		[Test]
+
 		public virtual void  TestTermPositionVectors(IndexReader reader, int threadCount)
 		{
 			MultiThreadTermVectorsReader[] mtr = new MultiThreadTermVectorsReader[threadCount];

Modified: incubator/lucene.net/trunk/C#/src/Test/Search/TestMultiValuedNumericRangeQuery.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Test/Search/TestMultiValuedNumericRangeQuery.cs?rev=881430&r1=881429&r2=881430&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Test/Search/TestMultiValuedNumericRangeQuery.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Test/Search/TestMultiValuedNumericRangeQuery.cs Tue
Nov 17 18:19:52 2009
@@ -57,7 +57,7 @@
 				for (int m = 0, c = rnd.Next(10); m <= c; m++)
 				{
 					int value_Renamed = rnd.Next(System.Int32.MaxValue);
-                    doc.Add(new Field("asc", "{00000000000}", Field.Store.NO, Field.Index.NOT_ANALYZED));
+                    doc.Add(new Field("asc", value_Renamed.ToString().PadLeft(11, '0'), Field.Store.NO,
Field.Index.NOT_ANALYZED));
 					doc.Add(new NumericField("trie", Field.Store.NO, true).SetIntValue(value_Renamed));
 				}
 				writer.AddDocument(doc);
@@ -73,7 +73,7 @@
 				{
 					int a = lower; lower = upper; upper = a;
 				}
-				TermRangeQuery cq = new TermRangeQuery("asc", "{" + lower.ToString() + "}", "{" + upper.ToString()
+ "}", true, true);
+				TermRangeQuery cq = new TermRangeQuery("asc", lower.ToString().PadLeft(11, '0'),  upper.ToString().PadLeft(11,
'0'), true, true);
 				System.Int32 tempAux = (System.Int32) lower;
 				System.Int32 tempAux2 = (System.Int32) upper;
 				NumericRangeQuery tq = NumericRangeQuery.NewIntRange("trie", tempAux, tempAux2, true,
true);

Modified: incubator/lucene.net/trunk/C#/src/Test/Search/TestNot.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Test/Search/TestNot.cs?rev=881430&r1=881429&r2=881430&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Test/Search/TestNot.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Test/Search/TestNot.cs Tue Nov 17 18:19:52 2009
@@ -38,11 +38,7 @@
 	/// </version>
     [TestFixture]
 	public class TestNot:LuceneTestCase
-	{
-		public TestNot(System.String name):base(name)
-		{
-		}
-		
+	{		
 		[Test]
 		public virtual void  TestNot_Renamed()
 		{

Modified: incubator/lucene.net/trunk/C#/src/Test/Search/TestParallelMultiSearcher.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Test/Search/TestParallelMultiSearcher.cs?rev=881430&r1=881429&r2=881430&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Test/Search/TestParallelMultiSearcher.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Test/Search/TestParallelMultiSearcher.cs Tue Nov 17
18:19:52 2009
@@ -25,12 +25,7 @@
 	/// <summary> Unit tests for the ParallelMultiSearcher </summary>
     [TestFixture]
 	public class TestParallelMultiSearcher:TestMultiSearcher
-	{
-		
-		public TestParallelMultiSearcher(System.String name):base(name)
-		{
-		}
-		
+	{		
 		protected internal override MultiSearcher GetMultiSearcherInstance(Searcher[] searchers)
 		{
 			return new ParallelMultiSearcher(searchers);



Mime
View raw message