Claudenw commented on code in PR #406:
URL:
https://github.com/apache/commons-collections/pull/406#discussion_r1283590210
##########
src/test/java/org/apache/commons/collections4/bloomfilter/DefaultIndexProducerTest.java:
##########
@@ -119,4 +118,42 @@ public void testFromIndexArray() {
assertArrayEquals(expected, ip.asIndexArray());
}
}
+
+ @Test
+ public void testMoreThan32Entries() {
+ int[] values = new int[33];
+ for (int i=0; i<33; i++) {
+ values[i] = i;
+ }
+ IndexProducer producer = predicate -> {
+ Objects.requireNonNull(predicate);
+ for (final int i : values) {
+ if (!predicate.test(i)) {
+ return false;
+ }
+ }
+ return true;
+ };
+ int[] other = producer.asIndexArray();
+ assertArrayEquals(values, other);
+ }
+
+ @Test
+ public void test32Entries() {
Review Comment:
fixed
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]