lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject [38/49] lucenenet git commit: Enabled ignored Core.Util.TestWAH8DocIdSet + fixed bugs in tests
Date Sun, 02 Oct 2016 10:17:09 GMT
Enabled ignored Core.Util.TestWAH8DocIdSet + fixed bugs in tests


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

Branch: refs/heads/master
Commit: 2ebff9483f99160faafb3e1b4a14772434efc254
Parents: abfe82c
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Sun Sep 11 16:04:04 2016 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Sun Sep 11 16:04:04 2016 +0700

----------------------------------------------------------------------
 .../core/Util/TestWAH8DocIdSet.cs                | 19 ++-----------------
 1 file changed, 2 insertions(+), 17 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/2ebff948/src/Lucene.Net.Tests/core/Util/TestWAH8DocIdSet.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Util/TestWAH8DocIdSet.cs b/src/Lucene.Net.Tests/core/Util/TestWAH8DocIdSet.cs
index 6968e19..73d338d 100644
--- a/src/Lucene.Net.Tests/core/Util/TestWAH8DocIdSet.cs
+++ b/src/Lucene.Net.Tests/core/Util/TestWAH8DocIdSet.cs
@@ -22,7 +22,6 @@ namespace Lucene.Net.Util
      * limitations under the License.
      */
 
-    [Ignore]
     [TestFixture]
     public class TestWAH8DocIdSet : BaseDocIdSetTestCase<WAH8DocIdSet>
     {
@@ -43,7 +42,6 @@ namespace Lucene.Net.Util
             Assert.AreEqual(ds1.Cardinality(), ds2.Cardinality());
         }
 
-        [Ignore]
         [Test]
         public virtual void TestUnion()
         {
@@ -72,7 +70,6 @@ namespace Lucene.Net.Util
             AssertEquals(numBits, expected, union);
         }
 
-        [Ignore]
         [Test]
         public virtual void TestIntersection()
         {
@@ -96,26 +93,14 @@ namespace Lucene.Net.Util
             {
                 for (int previousDoc = -1, doc = set.NextSetBit(0); ; previousDoc = doc,
doc = set.NextSetBit(doc + 1))
                 {
-                    int startIdx = previousDoc + 1;
-                    int endIdx;
                     if (doc == -1)
                     {
-                        endIdx = startIdx + set.Count;
-                        //expected.Clear(previousDoc + 1, set.Count);
-                        for (int i = startIdx; i < endIdx; i++)
-                        {
-                            expected[i] = false;
-                        }
+                        expected.Clear(previousDoc + 1, set.Count);
                         break;
                     }
                     else
                     {
-                        endIdx = startIdx + doc;
-                        for (int i = startIdx; i > endIdx; i++)
-                        {
-                            expected[i] = false;
-                        }
-                        //expected.Clear(previousDoc + 1, doc);
+                        expected.Clear(previousDoc + 1, doc);
                     }
                 }
             }


Mime
View raw message