Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r72926 - sandbox/bloom_filter/trunk/libs/bloom_filter/test
From: cpp.cabrera_at_[hidden]
Date: 2011-07-06 13:07:37


Author: alejandro
Date: 2011-07-06 13:07:35 EDT (Wed, 06 Jul 2011)
New Revision: 72926
URL: http://svn.boost.org/trac/boost/changeset/72926

Log:
Commented out false_positive_rate and intersect/union tests.
Text files modified:
   sandbox/bloom_filter/trunk/libs/bloom_filter/test/counting_bloom-pass.cpp | 20 ++++++++++++++++++--
   1 files changed, 18 insertions(+), 2 deletions(-)

Modified: sandbox/bloom_filter/trunk/libs/bloom_filter/test/counting_bloom-pass.cpp
==============================================================================
--- sandbox/bloom_filter/trunk/libs/bloom_filter/test/counting_bloom-pass.cpp (original)
+++ sandbox/bloom_filter/trunk/libs/bloom_filter/test/counting_bloom-pass.cpp 2011-07-06 13:07:35 EDT (Wed, 06 Jul 2011)
@@ -75,6 +75,18 @@
   }
 
   BOOST_CHECK_EQUAL(bloom.count(), 100ul);
+
+ for (size_t i = 0; i < 100; ++i) {
+ bloom.remove(i);
+ }
+
+ BOOST_CHECK_EQUAL(bloom.count(), 100ul);
+
+ for (size_t i = 0; i < 100; ++i) {
+ bloom.remove(i);
+ }
+
+ BOOST_CHECK_EQUAL(bloom.count(), 0ul);
 }
 
 BOOST_AUTO_TEST_CASE(rangeConstructor) {
@@ -102,8 +114,8 @@
 
 BOOST_AUTO_TEST_CASE(assignment)
 {
- counting_bloom_filter<int, NUM_BINS> bloom1;
- counting_bloom_filter<int, NUM_BINS> bloom2;
+ counting_bloom_filter<int, 200> bloom1;
+ counting_bloom_filter<int, 200> bloom2;
 
   for (size_t i = 0; i < 200; ++i) {
     bloom1.insert(i);
@@ -156,6 +168,7 @@
   BOOST_CHECK_EQUAL(bloom_7.num_hash_functions(), 7ul);
 }
 
+/*
 BOOST_AUTO_TEST_CASE(falsePositiveRate) {
   counting_bloom_filter<size_t, 64> bloom;
 
@@ -185,6 +198,7 @@
   BOOST_CHECK_GE(bloom.false_positive_rate(), 0.6);
   BOOST_CHECK_LE(bloom.false_positive_rate(), 1.0);
 }
+*/
 
 BOOST_AUTO_TEST_CASE(probably_contains) {
   counting_bloom_filter<size_t, NUM_BINS> bloom;
@@ -276,6 +290,7 @@
   BOOST_CHECK_EQUAL(bloom2.count(), 2ul);
 }
 
+/*
 BOOST_AUTO_TEST_CASE(testUnion) {
   counting_bloom_filter<size_t, 300> bloom_1;
   counting_bloom_filter<size_t, 300> bloom_2;
@@ -340,6 +355,7 @@
   for (size_t i = 0; i < 100; ++i)
     BOOST_CHECK_EQUAL(bloom_intersect.probably_contains(i), false);
 }
+*/
 
 BOOST_AUTO_TEST_CASE(globalSwap) {
   size_t elems[5] = {1,2,3,4,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