lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject [12/12] lucenenet git commit: Proper way to compare sets
Date Tue, 17 Feb 2015 17:29:54 GMT
Proper way to compare sets


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

Branch: refs/heads/master
Commit: f1a2b50467412303cd80be669a1b5353c389b171
Parents: 1058ff7
Author: Itamar Syn-Hershko <itamar@code972.com>
Authored: Tue Feb 17 19:29:31 2015 +0200
Committer: Itamar Syn-Hershko <itamar@code972.com>
Committed: Tue Feb 17 19:29:31 2015 +0200

----------------------------------------------------------------------
 .../core/Index/TestDocumentsWriterDeleteQueue.cs               | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/f1a2b504/src/Lucene.Net.Tests/core/Index/TestDocumentsWriterDeleteQueue.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Index/TestDocumentsWriterDeleteQueue.cs b/src/Lucene.Net.Tests/core/Index/TestDocumentsWriterDeleteQueue.cs
index c6317e6..cd01bb3 100644
--- a/src/Lucene.Net.Tests/core/Index/TestDocumentsWriterDeleteQueue.cs
+++ b/src/Lucene.Net.Tests/core/Index/TestDocumentsWriterDeleteQueue.cs
@@ -89,7 +89,7 @@ namespace Lucene.Net.Index
                 bytesRef.CopyBytes(t.Bytes());
                 frozenSet.Add(new Term(t.Field(), bytesRef));
             }
-            Assert.AreEqual(uniqueValues, frozenSet);
+            assertEquals(uniqueValues, frozenSet);
             Assert.AreEqual(0, queue.NumGlobalTermDeletes(), "num deletes must be 0 after
freeze");
         }
 
@@ -240,7 +240,7 @@ namespace Lucene.Net.Index
                 queue.UpdateSlice(slice);
                 BufferedUpdates deletes = updateThread.Deletes;
                 slice.Apply(deletes, BufferedUpdates.MAX_INT);
-                Assert.AreEqual(uniqueValues, deletes.Terms_Nunit().Keys);
+                assertEquals(uniqueValues, deletes.Terms_Nunit().Keys);
             }
             queue.TryApplyGlobalSlice();
             HashSet<Term> frozenSet = new HashSet<Term>();
@@ -252,7 +252,7 @@ namespace Lucene.Net.Index
             }
             Assert.AreEqual(0, queue.NumGlobalTermDeletes(), "num deletes must be 0 after
freeze");
             Assert.AreEqual(uniqueValues.Count, frozenSet.Count);
-            Assert.True(uniqueValues.SetEquals(frozenSet));
+            assertEquals(uniqueValues, frozenSet);
         }
 
         private class UpdateThread : ThreadClass


Mime
View raw message