|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r73636 - sandbox/bloom_filter/trunk/libs/bloom_filter/test
From: cpp.cabrera_at_[hidden]
Date: 2011-08-10 04:09:48
Author: alejandro
Date: 2011-08-10 04:09:48 EDT (Wed, 10 Aug 2011)
New Revision: 73636
URL: http://svn.boost.org/trac/boost/changeset/73636
Log:
Added test case:
- checkExtenders: verifies that all extension functions provided
compile.
Text files modified:
sandbox/bloom_filter/trunk/libs/bloom_filter/test/twohash_basic_bloom_filter-pass.cpp | 22 ++++++++++++++++++++++
1 files changed, 22 insertions(+), 0 deletions(-)
Modified: sandbox/bloom_filter/trunk/libs/bloom_filter/test/twohash_basic_bloom_filter-pass.cpp
==============================================================================
--- sandbox/bloom_filter/trunk/libs/bloom_filter/test/twohash_basic_bloom_filter-pass.cpp (original)
+++ sandbox/bloom_filter/trunk/libs/bloom_filter/test/twohash_basic_bloom_filter-pass.cpp 2011-08-10 04:09:48 EDT (Wed, 10 Aug 2011)
@@ -38,6 +38,28 @@
boost_hash<int, 0>, cube> cube_extender_bloom;
}
+BOOST_AUTO_TEST_CASE(checkExtenders)
+{
+ using boost::bloom_filters::detail::zero;
+ using boost::bloom_filters::detail::square;
+ using boost::bloom_filters::detail::fourth;
+
+ twohash_basic_bloom_filter<int, 8, 2, 0,
+ boost_hash<int, 0>,
+ murmurhash3<int>,
+ zero> zero_extend_bloom;
+
+ twohash_basic_bloom_filter<int, 8, 2, 0,
+ boost_hash<int, 0>,
+ murmurhash3<int>,
+ square> square_extend_bloom;
+
+ twohash_basic_bloom_filter<int, 8, 2, 0,
+ boost_hash<int, 0>,
+ murmurhash3<int>,
+ fourth> fourth_extend_bloom;
+}
+
BOOST_AUTO_TEST_CASE(rangeConstructor) {
int elems[5] = {1,2,3,4,5};
twohash_basic_bloom_filter<int, 8> bloom(elems, elems+5);
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk