gf2121 commented on code in PR #14401: URL: https://github.com/apache/lucene/pull/14401#discussion_r2019735302
########## lucene/test-framework/src/java/org/apache/lucene/tests/search/AssertingLeafCollector.java: ########## @@ -50,6 +50,14 @@ public void collect(DocIdStream stream) throws IOException { in.collect(new AssertingDocIdStream(stream)); } + @Override + public void collectRange(int min, int max) throws IOException { + assert min > lastCollected; + assert max > min; Review Comment: Maybe assert `min >= this.min` and `max <= this.max` as well :) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org