|
|
@ -45,6 +45,10 @@ BOOST_AUTO_TEST_CASE(bloom_create_insert_serialize) |
|
|
|
expected[i] = (char)vch[i]; |
|
|
|
expected[i] = (char)vch[i]; |
|
|
|
|
|
|
|
|
|
|
|
BOOST_CHECK_EQUAL_COLLECTIONS(stream.begin(), stream.end(), expected.begin(), expected.end()); |
|
|
|
BOOST_CHECK_EQUAL_COLLECTIONS(stream.begin(), stream.end(), expected.begin(), expected.end()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BOOST_CHECK_MESSAGE( filter.contains(ParseHex("99108ad8ed9bb6274d3980bab5a85c048f0950c8")), "BloomFilter doesn't contain just-inserted object!"); |
|
|
|
|
|
|
|
filter.clear(); |
|
|
|
|
|
|
|
BOOST_CHECK_MESSAGE( !filter.contains(ParseHex("99108ad8ed9bb6274d3980bab5a85c048f0950c8")), "BloomFilter should be empty!"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
BOOST_AUTO_TEST_CASE(bloom_create_insert_serialize_with_tweak) |
|
|
|
BOOST_AUTO_TEST_CASE(bloom_create_insert_serialize_with_tweak) |
|
|
|