You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Claude Warren (Jira)" <ji...@apache.org> on 2022/07/30 17:57:00 UTC

[jira] [Updated] (COLLECTIONS-827) BloomFilter: Add tests using or, and and xor with different length filters.

     [ https://issues.apache.org/jira/browse/COLLECTIONS-827?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claude Warren updated COLLECTIONS-827:
--------------------------------------
    Assignee: Claude Warren

> 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
>            Assignee: Claude Warren
>            Priority: Minor
>              Labels: bloom-filter
>
> 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.10#820010)