lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aro...@apache.org
Subject svn commit: r681517 - /incubator/lucene.net/trunk/C#/src/Test/Search/CheckHits.cs
Date Thu, 31 Jul 2008 22:09:07 GMT
Author: aroush
Date: Thu Jul 31 15:09:07 2008
New Revision: 681517

URL: http://svn.apache.org/viewvc?rev=681517&view=rev
Log:
LUCENENET-130 "bug in unit test helper class Lucene.Net.Search.CheckHits"

Modified:
    incubator/lucene.net/trunk/C#/src/Test/Search/CheckHits.cs

Modified: incubator/lucene.net/trunk/C#/src/Test/Search/CheckHits.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Test/Search/CheckHits.cs?rev=681517&r1=681516&r2=681517&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Test/Search/CheckHits.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Test/Search/CheckHits.cs Thu Jul 31 15:09:07 2008
@@ -159,7 +159,11 @@
 				actual.Add(hits.Id(i));
 			}
 			
-			Assert.AreEqual(correct, actual, query.ToString(defaultFieldName));
+			Assert.AreEqual(correct.Count, actual.Count);
+			for (int i = 0; i < correct.Count; i++)
+			{
+				Assert.AreEqual(correct[i], actual[i]);
+			}
 			
 			QueryUtils.Check(query, searcher);
 		}



Mime
View raw message