Claude Warren created COLLECTIONS-827: -----------------------------------------
Summary: BloomFilter: Add tests using or, and and xor with different length filters. Key: COLLECTIONS-827 URL: https://issues.apache.org/jira/browse/COLLECTIONS-827 Project: Commons Collections Issue Type: Improvement Components: Collection Affects Versions: 4.5 Reporter: Claude Warren Add tests to SetOperationsTest.java to verify correct cardinaly results when different length index filters are used. tests should be for orCardinality(), andCardinality(), xorCardinality(), aherbert on 27 Feb This was the previous test using different length filters: {noformat} Shape shape2 = Shape.fromKM(3, 192); filter1 = new SparseBloomFilter(shape2, IndexProducer.fromIntArray(new int[] { 1, 63, 185})); filter2 = new SparseBloomFilter(shape, IndexProducer.fromIntArray(new int[] { 5, 64, 69 })); assertEquals(6, SetOperations.orCardinality(filter1, filter2)); assertEquals(6, SetOperations.orCardinality(filter2, filter1)); {noformat} Others should be added for and and xor. -- This message was sent by Atlassian Jira (v8.20.7#820007)