You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Alex Herbert (Jira)" <ji...@apache.org> on 2022/08/10 09:29:00 UTC

[jira] [Resolved] (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 ]

Alex Herbert resolved COLLECTIONS-827.
--------------------------------------
    Fix Version/s: 4.5
       Resolution: Done

> 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
>             Fix For: 4.5
>
>
> 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)