lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aro...@apache.org
Subject svn commit: r836055 - /incubator/lucene.net/trunk/C#/src/Test/Util/TestPriorityQueue.cs
Date Fri, 13 Nov 2009 23:12:50 GMT
Author: aroush
Date: Fri Nov 13 23:12:49 2009
New Revision: 836055

URL: http://svn.apache.org/viewvc?rev=836055&view=rev
Log:
Fixed NUnit test-cases for: TestPriorityQueue

Modified:
    incubator/lucene.net/trunk/C#/src/Test/Util/TestPriorityQueue.cs

Modified: incubator/lucene.net/trunk/C#/src/Test/Util/TestPriorityQueue.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Test/Util/TestPriorityQueue.cs?rev=836055&r1=836054&r2=836055&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Test/Util/TestPriorityQueue.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Test/Util/TestPriorityQueue.cs Fri Nov 13 23:12:49 2009
@@ -25,9 +25,6 @@
 	[TestFixture]
 	public class TestPriorityQueue:LuceneTestCase
 	{
-		public TestPriorityQueue(System.String name):base(name)
-		{
-		}
 		
 		private class IntegerQueue:PriorityQueue
 		{
@@ -121,12 +118,12 @@
 			System.Int32 i5 = 7;
 			System.Int32 i6 = 1;
 			
-			Assert.IsNull(pq.InsertWithOverflow((System.Object) i1));
-			Assert.IsNull(pq.InsertWithOverflow((System.Object) i2));
-			Assert.IsNull(pq.InsertWithOverflow((System.Object) i3));
-			Assert.IsNull(pq.InsertWithOverflow((System.Object) i4));
-			Assert.IsTrue(pq.InsertWithOverflow((System.Object) i5) == (System.Object) i3); // i3
should have been dropped
-			Assert.IsTrue(pq.InsertWithOverflow((System.Object) i6) == (System.Object) i6); // i6
should not have been inserted
+			Assert.IsNull(pq.InsertWithOverflow(i1));
+			Assert.IsNull(pq.InsertWithOverflow(i2));
+			Assert.IsNull(pq.InsertWithOverflow(i3));
+			Assert.IsNull(pq.InsertWithOverflow(i4));
+			Assert.IsTrue((int) pq.InsertWithOverflow(i5) == i3); // i3 should have been dropped
+			Assert.IsTrue((int) pq.InsertWithOverflow(i6) == i6); // i6 should not have been inserted
 			Assert.AreEqual(size, pq.Size());
 			Assert.AreEqual(2, ((System.Int32) pq.Top()));
 		}



Mime
View raw message