lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r880880 - /incubator/lucene.net/trunk/C#/src/Test/Index/TestTermVectorsReader.cs
Date Mon, 16 Nov 2009 18:00:47 GMT
Author: digy
Date: Mon Nov 16 18:00:47 2009
New Revision: 880880

URL: http://svn.apache.org/viewvc?rev=880880&view=rev
Log:
LUCENENET-259 Bug in src\Test\Index\TestTermVectorsReader.cs

Modified:
    incubator/lucene.net/trunk/C#/src/Test/Index/TestTermVectorsReader.cs

Modified: incubator/lucene.net/trunk/C#/src/Test/Index/TestTermVectorsReader.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Test/Index/TestTermVectorsReader.cs?rev=880880&r1=880879&r2=880880&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Test/Index/TestTermVectorsReader.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Test/Index/TestTermVectorsReader.cs Mon Nov 16 18:00:47
2009
@@ -57,6 +57,11 @@
 		{
 			InitBlock();
 		}
+        public TestTermVectorsReader()
+            : base()
+        {
+            InitBlock();
+        }
 		
 		internal class TestToken : System.IComparable
 		{
@@ -349,7 +354,7 @@
 			//three fields, 4 terms, all terms are the same
 			Assert.IsTrue(set_Renamed.Count == 4, "set Size: " + set_Renamed.Count + " is not: " +
4);
 			//Check offsets and positions
-			for (System.Collections.IEnumerator iterator = set_Renamed.GetEnumerator(); iterator.MoveNext();
)
+			for (System.Collections.IEnumerator iterator = set_Renamed.Keys.GetEnumerator(); iterator.MoveNext();
)
 			{
 				TermVectorEntry tve = (TermVectorEntry) iterator.Current;
 				Assert.IsTrue(tve != null, "tve is null and it shouldn't be");
@@ -364,7 +369,7 @@
 			//three fields, 4 terms, all terms are the same
 			Assert.IsTrue(set_Renamed.Count == 4, "set Size: " + set_Renamed.Count + " is not: " +
4);
 			//Should have offsets and positions b/c we are munging all the fields together
-			for (System.Collections.IEnumerator iterator = set_Renamed.GetEnumerator(); iterator.MoveNext();
)
+			for (System.Collections.IEnumerator iterator = set_Renamed.Keys.GetEnumerator(); iterator.MoveNext();
)
 			{
 				TermVectorEntry tve = (TermVectorEntry) iterator.Current;
 				Assert.IsTrue(tve != null, "tve is null and it shouldn't be");
@@ -382,7 +387,7 @@
 				System.Collections.DictionaryEntry entry = (System.Collections.DictionaryEntry) iterator.Current;
 				System.Collections.Generic.SortedDictionary<Object,Object> sortedSet = (System.Collections.Generic.SortedDictionary<Object,Object>)entry.Value;
 				Assert.IsTrue(sortedSet.Count == 4, "sortedSet Size: " + sortedSet.Count + " is not:
" + 4);
-				for (System.Collections.IEnumerator inner = sortedSet.GetEnumerator(); inner.MoveNext();
)
+				for (System.Collections.IEnumerator inner = sortedSet.Keys.GetEnumerator(); inner.MoveNext();
)
 				{
 					TermVectorEntry tve = (TermVectorEntry) inner.Current;
 					Assert.IsTrue(tve != null, "tve is null and it shouldn't be");
@@ -415,7 +420,7 @@
 				System.Collections.DictionaryEntry entry = (System.Collections.DictionaryEntry) iterator.Current;
 				System.Collections.Generic.SortedDictionary<Object,Object> sortedSet = (System.Collections.Generic.SortedDictionary<Object,Object>)entry.Value;
 				Assert.IsTrue(sortedSet.Count == 4, "sortedSet Size: " + sortedSet.Count + " is not:
" + 4);
-				for (System.Collections.IEnumerator inner = sortedSet.GetEnumerator(); inner.MoveNext();
)
+				for (System.Collections.IEnumerator inner = sortedSet.Keys.GetEnumerator(); inner.MoveNext();
)
 				{
 					TermVectorEntry tve = (TermVectorEntry) inner.Current;
 					Assert.IsTrue(tve != null, "tve is null and it shouldn't be");



Mime
View raw message