lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject [04/12] lucenenet git commit: Removed old tests.
Date Tue, 17 Feb 2015 17:29:46 GMT
Removed old tests.


Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/84e29b59
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/84e29b59
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/84e29b59

Branch: refs/heads/master
Commit: 84e29b595b638bd5f5ee1022a6207be6676b847b
Parents: aeb5e03
Author: Guido Tagliavini Ponce <t-gupon@microsoft.com>
Authored: Thu Feb 12 14:26:31 2015 -0800
Committer: Guido Tagliavini Ponce <t-gupon@microsoft.com>
Committed: Thu Feb 12 14:26:31 2015 -0800

----------------------------------------------------------------------
 .../core/Util/TestPriorityQueue.cs              | 41 --------------------
 1 file changed, 41 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/84e29b59/src/Lucene.Net.Tests/core/Util/TestPriorityQueue.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Util/TestPriorityQueue.cs b/src/Lucene.Net.Tests/core/Util/TestPriorityQueue.cs
index d7e18a4..1209854 100644
--- a/src/Lucene.Net.Tests/core/Util/TestPriorityQueue.cs
+++ b/src/Lucene.Net.Tests/core/Util/TestPriorityQueue.cs
@@ -336,47 +336,6 @@ namespace Lucene.Net.Util
         }
 
         [Test]
-        public virtual void TestPQ()
-        {
-            TestPQ(AtLeast(10000), Random());
-        }
-
-        public static void TestPQ(int count, Random gen)
-        {
-            PriorityQueue<int?> pq = new IntegerQueue(count);
-            int sum = 0, sum2 = 0;
-
-            for (int i = 0; i < count; i++)
-            {
-                int next = gen.Next();
-                sum += next;
-                pq.Add(next);
-            }
-
-            //      Date end = new Date();
-
-            //      System.out.print(((float)(end.getTime()-start.getTime()) / count) * 1000);
-            //      System.out.println(" microseconds/put");
-
-            //      start = new Date();
-
-            int last = int.MinValue;
-            for (int i = 0; i < count; i++)
-            {
-                int? next = pq.Pop();
-                Assert.IsTrue((int)next >= last);
-                last = (int)next;
-                sum2 += last;
-            }
-
-            Assert.AreEqual(sum, sum2);
-            //      end = new Date();
-
-            //      System.out.print(((float)(end.getTime()-start.getTime()) / count) * 1000);
-            //      System.out.println(" microseconds/pop");
-        }
-
-        [Test]
         public virtual void TestClear()
         {
             PriorityQueue<int?> pq = new IntegerQueue(3);


Mime
View raw message