Repository: lucenenet
Updated Branches:
  refs/heads/master 29cbc138b -> 62badd246


BUG: 
Lucene.Net.Search.FieldCacheRangeFilter.AnonymousStringFieldCacheRangeFilter: 
Fixed Debug.Assert condition that was causing assert to fail.


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

Branch: refs/heads/master
Commit: ae22f1a39be87ec39e270a23afc74f0b6343b7ab
Parents: e973c6a
Author: Shad Storhaug <[email protected]>
Authored: Tue Aug 29 04:00:10 2017 +0700
Committer: Shad Storhaug <[email protected]>
Committed: Tue Aug 29 04:00:10 2017 +0700

----------------------------------------------------------------------
 src/Lucene.Net/Search/FieldCacheRangeFilter.cs | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ae22f1a3/src/Lucene.Net/Search/FieldCacheRangeFilter.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/Search/FieldCacheRangeFilter.cs 
b/src/Lucene.Net/Search/FieldCacheRangeFilter.cs
index 405b0a4..2e95daf 100644
--- a/src/Lucene.Net/Search/FieldCacheRangeFilter.cs
+++ b/src/Lucene.Net/Search/FieldCacheRangeFilter.cs
@@ -147,12 +147,7 @@ namespace Lucene.Net.Search
                     return null;
                 }
 
-                // TODO: LUCENENET This should be throwing an exception during
-                // a test run on the original solution, but does not.
-                // ie. inclusiveLowerPoint > 0 && inclusiveUpperPoint > 0
-                // evaluates to false, but a DebugAssertionException is not
-                // thrown on the original test runs.
-                Debug.Assert(inclusiveLowerPoint > 0 && inclusiveUpperPoint > 
0);
+                Debug.Assert(inclusiveLowerPoint >= 0 && inclusiveUpperPoint 
>= 0);
 
                 return new AnonymousClassFieldCacheDocIdSet(fcsi, 
inclusiveLowerPoint, inclusiveUpperPoint, context.Reader.MaxDoc, acceptDocs);
             }

Reply via email to