Bladeren bron

Updating erase() to take const_iterator, matching the standard library.

Samuel Jaffe 8 jaren geleden
bovenliggende
commit
1d5ba8aa82
2 gewijzigde bestanden met toevoegingen van 21 en 259 verwijderingen
  1. 21 11
      bucket_hash_map.hpp
  2. 0 248
      bucket_hash_map_tc.cpp

+ 21 - 11
bucket_hash_map.hpp

@@ -145,13 +145,13 @@ public:
   size_type count(key_type const & key) const { return find(key) != end(); }
   
   // Remove
-  iterator erase(iterator it) {
-    erase_impl(it++);
-    return it;
+  iterator erase(const_iterator it) {
+    return erase_impl(unconst_iterator(it));
   }
-  iterator erase(iterator first, iterator last) {
-    while (first != last) { first = erase(first); }
-    return last;
+  iterator erase(const_iterator first, const_iterator last) {
+    iterator it = unconst_iterator(first);
+    while (last != it) { it = erase_impl(it); }
+    return it;
   }
   size_type erase(key_type const & key) {
     size_type old_size = size_;
@@ -227,13 +227,23 @@ private:
     }
   }
   
-  void erase_impl(iterator it) {
+  iterator unconst_iterator(const_iterator it) {
     auto lit = it.join_iterator();
     auto iter = it.element_iterator();
-    if (! lit.done() && ! iter.done() ) {
-      --size_;
-      lit->erase(iter.current());
-    }
+    
+    if ( lit.done() ) { return end(); }
+    auto nit = buckets_.begin();
+    std::advance(nit, std::distance(buckets_.cbegin(), lit.current()));
+    
+    return { nit, buckets_.end(), nit->erase(iter.current(), iter.current()), nit->end() };
+  }
+  
+  iterator erase_impl(iterator it) {
+    auto b = it.join_iterator();
+    auto l = it.element_iterator();
+    if ( b.done() || l.done() ) { return it; }
+    --size_;
+    return { b.current(), b.end(), b->erase(l.current()), l.end(), true };
   }
 private: // members
   impl_type buckets_{default_buckets};

+ 0 - 248
bucket_hash_map_tc.cpp

@@ -1,248 +0,0 @@
-/* Generated file, do not edit */
-
-#ifndef CXXTEST_RUNNING
-#define CXXTEST_RUNNING
-#endif
-
-#define _CXXTEST_HAVE_STD
-#define _CXXTEST_HAVE_EH
-#include <cxxtest/TestListener.h>
-#include <cxxtest/TestTracker.h>
-#include <cxxtest/TestRunner.h>
-#include <cxxtest/RealDescriptions.h>
-#include <cxxtest/TestMain.h>
-#include <cxxtest/ErrorPrinter.h>
-
-int main( int argc, char *argv[] ) {
- int status;
-    CxxTest::ErrorPrinter tmp;
-    CxxTest::RealWorldDescription::_worldName = "cxxtest";
-    status = CxxTest::Main< CxxTest::ErrorPrinter >( tmp, argc, argv );
-    return status;
-}
-bool suite_bucket_hash_map_TestSuite_init = false;
-#include "bucket_hash_map.t.h"
-
-static bucket_hash_map_TestSuite suite_bucket_hash_map_TestSuite;
-
-static CxxTest::List Tests_bucket_hash_map_TestSuite = { 0, 0 };
-CxxTest::StaticSuiteDescription suiteDescription_bucket_hash_map_TestSuite( "bucket_hash_map.t.h", 13, "bucket_hash_map_TestSuite", suite_bucket_hash_map_TestSuite, Tests_bucket_hash_map_TestSuite );
-
-static class TestDescription_suite_bucket_hash_map_TestSuite_test_default_is_empty : public CxxTest::RealTestDescription {
-public:
- TestDescription_suite_bucket_hash_map_TestSuite_test_default_is_empty() : CxxTest::RealTestDescription( Tests_bucket_hash_map_TestSuite, suiteDescription_bucket_hash_map_TestSuite, 18, "test_default_is_empty" ) {}
- void runTest() { suite_bucket_hash_map_TestSuite.test_default_is_empty(); }
-} testDescription_suite_bucket_hash_map_TestSuite_test_default_is_empty;
-
-static class TestDescription_suite_bucket_hash_map_TestSuite_test_construct_from_initializer_list : public CxxTest::RealTestDescription {
-public:
- TestDescription_suite_bucket_hash_map_TestSuite_test_construct_from_initializer_list() : CxxTest::RealTestDescription( Tests_bucket_hash_map_TestSuite, suiteDescription_bucket_hash_map_TestSuite, 22, "test_construct_from_initializer_list" ) {}
- void runTest() { suite_bucket_hash_map_TestSuite.test_construct_from_initializer_list(); }
-} testDescription_suite_bucket_hash_map_TestSuite_test_construct_from_initializer_list;
-
-static class TestDescription_suite_bucket_hash_map_TestSuite_test_swap_hashmaps : public CxxTest::RealTestDescription {
-public:
- TestDescription_suite_bucket_hash_map_TestSuite_test_swap_hashmaps() : CxxTest::RealTestDescription( Tests_bucket_hash_map_TestSuite, suiteDescription_bucket_hash_map_TestSuite, 27, "test_swap_hashmaps" ) {}
- void runTest() { suite_bucket_hash_map_TestSuite.test_swap_hashmaps(); }
-} testDescription_suite_bucket_hash_map_TestSuite_test_swap_hashmaps;
-
-static class TestDescription_suite_bucket_hash_map_TestSuite_test_insert_elements_effects_size : public CxxTest::RealTestDescription {
-public:
- TestDescription_suite_bucket_hash_map_TestSuite_test_insert_elements_effects_size() : CxxTest::RealTestDescription( Tests_bucket_hash_map_TestSuite, suiteDescription_bucket_hash_map_TestSuite, 36, "test_insert_elements_effects_size" ) {}
- void runTest() { suite_bucket_hash_map_TestSuite.test_insert_elements_effects_size(); }
-} testDescription_suite_bucket_hash_map_TestSuite_test_insert_elements_effects_size;
-
-static class TestDescription_suite_bucket_hash_map_TestSuite_test_insert_element_contains_expected : public CxxTest::RealTestDescription {
-public:
- TestDescription_suite_bucket_hash_map_TestSuite_test_insert_element_contains_expected() : CxxTest::RealTestDescription( Tests_bucket_hash_map_TestSuite, suiteDescription_bucket_hash_map_TestSuite, 42, "test_insert_element_contains_expected" ) {}
- void runTest() { suite_bucket_hash_map_TestSuite.test_insert_element_contains_expected(); }
-} testDescription_suite_bucket_hash_map_TestSuite_test_insert_element_contains_expected;
-
-static class TestDescription_suite_bucket_hash_map_TestSuite_test_insert_element_return_true : public CxxTest::RealTestDescription {
-public:
- TestDescription_suite_bucket_hash_map_TestSuite_test_insert_element_return_true() : CxxTest::RealTestDescription( Tests_bucket_hash_map_TestSuite, suiteDescription_bucket_hash_map_TestSuite, 48, "test_insert_element_return_true" ) {}
- void runTest() { suite_bucket_hash_map_TestSuite.test_insert_element_return_true(); }
-} testDescription_suite_bucket_hash_map_TestSuite_test_insert_element_return_true;
-
-static class TestDescription_suite_bucket_hash_map_TestSuite_test_insert_element_return_iterator_to_elements : public CxxTest::RealTestDescription {
-public:
- TestDescription_suite_bucket_hash_map_TestSuite_test_insert_element_return_iterator_to_elements() : CxxTest::RealTestDescription( Tests_bucket_hash_map_TestSuite, suiteDescription_bucket_hash_map_TestSuite, 53, "test_insert_element_return_iterator_to_elements" ) {}
- void runTest() { suite_bucket_hash_map_TestSuite.test_insert_element_return_iterator_to_elements(); }
-} testDescription_suite_bucket_hash_map_TestSuite_test_insert_element_return_iterator_to_elements;
-
-static class TestDescription_suite_bucket_hash_map_TestSuite_test_insert_same_element_does_not_create_duplicate : public CxxTest::RealTestDescription {
-public:
- TestDescription_suite_bucket_hash_map_TestSuite_test_insert_same_element_does_not_create_duplicate() : CxxTest::RealTestDescription( Tests_bucket_hash_map_TestSuite, suiteDescription_bucket_hash_map_TestSuite, 60, "test_insert_same_element_does_not_create_duplicate" ) {}
- void runTest() { suite_bucket_hash_map_TestSuite.test_insert_same_element_does_not_create_duplicate(); }
-} testDescription_suite_bucket_hash_map_TestSuite_test_insert_same_element_does_not_create_duplicate;
-
-static class TestDescription_suite_bucket_hash_map_TestSuite_test_insert_same_element_returns_false : public CxxTest::RealTestDescription {
-public:
- TestDescription_suite_bucket_hash_map_TestSuite_test_insert_same_element_returns_false() : CxxTest::RealTestDescription( Tests_bucket_hash_map_TestSuite, suiteDescription_bucket_hash_map_TestSuite, 67, "test_insert_same_element_returns_false" ) {}
- void runTest() { suite_bucket_hash_map_TestSuite.test_insert_same_element_returns_false(); }
-} testDescription_suite_bucket_hash_map_TestSuite_test_insert_same_element_returns_false;
-
-static class TestDescription_suite_bucket_hash_map_TestSuite_test_insert_same_element_return_same_iterator : public CxxTest::RealTestDescription {
-public:
- TestDescription_suite_bucket_hash_map_TestSuite_test_insert_same_element_return_same_iterator() : CxxTest::RealTestDescription( Tests_bucket_hash_map_TestSuite, suiteDescription_bucket_hash_map_TestSuite, 73, "test_insert_same_element_return_same_iterator" ) {}
- void runTest() { suite_bucket_hash_map_TestSuite.test_insert_same_element_return_same_iterator(); }
-} testDescription_suite_bucket_hash_map_TestSuite_test_insert_same_element_return_same_iterator;
-
-static class TestDescription_suite_bucket_hash_map_TestSuite_test_can_insert_range : public CxxTest::RealTestDescription {
-public:
- TestDescription_suite_bucket_hash_map_TestSuite_test_can_insert_range() : CxxTest::RealTestDescription( Tests_bucket_hash_map_TestSuite, suiteDescription_bucket_hash_map_TestSuite, 79, "test_can_insert_range" ) {}
- void runTest() { suite_bucket_hash_map_TestSuite.test_can_insert_range(); }
-} testDescription_suite_bucket_hash_map_TestSuite_test_can_insert_range;
-
-static class TestDescription_suite_bucket_hash_map_TestSuite_test_inserted_range_contains_all_correct_elements : public CxxTest::RealTestDescription {
-public:
- TestDescription_suite_bucket_hash_map_TestSuite_test_inserted_range_contains_all_correct_elements() : CxxTest::RealTestDescription( Tests_bucket_hash_map_TestSuite, suiteDescription_bucket_hash_map_TestSuite, 84, "test_inserted_range_contains_all_correct_elements" ) {}
- void runTest() { suite_bucket_hash_map_TestSuite.test_inserted_range_contains_all_correct_elements(); }
-} testDescription_suite_bucket_hash_map_TestSuite_test_inserted_range_contains_all_correct_elements;
-
-static class TestDescription_suite_bucket_hash_map_TestSuite_test_can_find_element_in_map : public CxxTest::RealTestDescription {
-public:
- TestDescription_suite_bucket_hash_map_TestSuite_test_can_find_element_in_map() : CxxTest::RealTestDescription( Tests_bucket_hash_map_TestSuite, suiteDescription_bucket_hash_map_TestSuite, 93, "test_can_find_element_in_map" ) {}
- void runTest() { suite_bucket_hash_map_TestSuite.test_can_find_element_in_map(); }
-} testDescription_suite_bucket_hash_map_TestSuite_test_can_find_element_in_map;
-
-static class TestDescription_suite_bucket_hash_map_TestSuite_test_count_element_in_map : public CxxTest::RealTestDescription {
-public:
- TestDescription_suite_bucket_hash_map_TestSuite_test_count_element_in_map() : CxxTest::RealTestDescription( Tests_bucket_hash_map_TestSuite, suiteDescription_bucket_hash_map_TestSuite, 99, "test_count_element_in_map" ) {}
- void runTest() { suite_bucket_hash_map_TestSuite.test_count_element_in_map(); }
-} testDescription_suite_bucket_hash_map_TestSuite_test_count_element_in_map;
-
-static class TestDescription_suite_bucket_hash_map_TestSuite_test_count_element_not_in_map : public CxxTest::RealTestDescription {
-public:
- TestDescription_suite_bucket_hash_map_TestSuite_test_count_element_not_in_map() : CxxTest::RealTestDescription( Tests_bucket_hash_map_TestSuite, suiteDescription_bucket_hash_map_TestSuite, 105, "test_count_element_not_in_map" ) {}
- void runTest() { suite_bucket_hash_map_TestSuite.test_count_element_not_in_map(); }
-} testDescription_suite_bucket_hash_map_TestSuite_test_count_element_not_in_map;
-
-static class TestDescription_suite_bucket_hash_map_TestSuite_test_equal_range_contains_element_if_present : public CxxTest::RealTestDescription {
-public:
- TestDescription_suite_bucket_hash_map_TestSuite_test_equal_range_contains_element_if_present() : CxxTest::RealTestDescription( Tests_bucket_hash_map_TestSuite, suiteDescription_bucket_hash_map_TestSuite, 111, "test_equal_range_contains_element_if_present" ) {}
- void runTest() { suite_bucket_hash_map_TestSuite.test_equal_range_contains_element_if_present(); }
-} testDescription_suite_bucket_hash_map_TestSuite_test_equal_range_contains_element_if_present;
-
-static class TestDescription_suite_bucket_hash_map_TestSuite_test_equal_range_contains_end_if_absent : public CxxTest::RealTestDescription {
-public:
- TestDescription_suite_bucket_hash_map_TestSuite_test_equal_range_contains_end_if_absent() : CxxTest::RealTestDescription( Tests_bucket_hash_map_TestSuite, suiteDescription_bucket_hash_map_TestSuite, 119, "test_equal_range_contains_end_if_absent" ) {}
- void runTest() { suite_bucket_hash_map_TestSuite.test_equal_range_contains_end_if_absent(); }
-} testDescription_suite_bucket_hash_map_TestSuite_test_equal_range_contains_end_if_absent;
-
-static class TestDescription_suite_bucket_hash_map_TestSuite_test_found_element_is_as_expected : public CxxTest::RealTestDescription {
-public:
- TestDescription_suite_bucket_hash_map_TestSuite_test_found_element_is_as_expected() : CxxTest::RealTestDescription( Tests_bucket_hash_map_TestSuite, suiteDescription_bucket_hash_map_TestSuite, 127, "test_found_element_is_as_expected" ) {}
- void runTest() { suite_bucket_hash_map_TestSuite.test_found_element_is_as_expected(); }
-} testDescription_suite_bucket_hash_map_TestSuite_test_found_element_is_as_expected;
-
-static class TestDescription_suite_bucket_hash_map_TestSuite_test_cannot_find_fake_element : public CxxTest::RealTestDescription {
-public:
- TestDescription_suite_bucket_hash_map_TestSuite_test_cannot_find_fake_element() : CxxTest::RealTestDescription( Tests_bucket_hash_map_TestSuite, suiteDescription_bucket_hash_map_TestSuite, 134, "test_cannot_find_fake_element" ) {}
- void runTest() { suite_bucket_hash_map_TestSuite.test_cannot_find_fake_element(); }
-} testDescription_suite_bucket_hash_map_TestSuite_test_cannot_find_fake_element;
-
-static class TestDescription_suite_bucket_hash_map_TestSuite_test_operator_bracket_constructs_element : public CxxTest::RealTestDescription {
-public:
- TestDescription_suite_bucket_hash_map_TestSuite_test_operator_bracket_constructs_element() : CxxTest::RealTestDescription( Tests_bucket_hash_map_TestSuite, suiteDescription_bucket_hash_map_TestSuite, 140, "test_operator_bracket_constructs_element" ) {}
- void runTest() { suite_bucket_hash_map_TestSuite.test_operator_bracket_constructs_element(); }
-} testDescription_suite_bucket_hash_map_TestSuite_test_operator_bracket_constructs_element;
-
-static class TestDescription_suite_bucket_hash_map_TestSuite_test_at_throws_on_no_key_present : public CxxTest::RealTestDescription {
-public:
- TestDescription_suite_bucket_hash_map_TestSuite_test_at_throws_on_no_key_present() : CxxTest::RealTestDescription( Tests_bucket_hash_map_TestSuite, suiteDescription_bucket_hash_map_TestSuite, 146, "test_at_throws_on_no_key_present" ) {}
- void runTest() { suite_bucket_hash_map_TestSuite.test_at_throws_on_no_key_present(); }
-} testDescription_suite_bucket_hash_map_TestSuite_test_at_throws_on_no_key_present;
-
-static class TestDescription_suite_bucket_hash_map_TestSuite_test_at_nothrow_is_element_present : public CxxTest::RealTestDescription {
-public:
- TestDescription_suite_bucket_hash_map_TestSuite_test_at_nothrow_is_element_present() : CxxTest::RealTestDescription( Tests_bucket_hash_map_TestSuite, suiteDescription_bucket_hash_map_TestSuite, 152, "test_at_nothrow_is_element_present" ) {}
- void runTest() { suite_bucket_hash_map_TestSuite.test_at_nothrow_is_element_present(); }
-} testDescription_suite_bucket_hash_map_TestSuite_test_at_nothrow_is_element_present;
-
-static class TestDescription_suite_bucket_hash_map_TestSuite_test_at_is_same_as_bracket_if_element_exists : public CxxTest::RealTestDescription {
-public:
- TestDescription_suite_bucket_hash_map_TestSuite_test_at_is_same_as_bracket_if_element_exists() : CxxTest::RealTestDescription( Tests_bucket_hash_map_TestSuite, suiteDescription_bucket_hash_map_TestSuite, 158, "test_at_is_same_as_bracket_if_element_exists" ) {}
- void runTest() { suite_bucket_hash_map_TestSuite.test_at_is_same_as_bracket_if_element_exists(); }
-} testDescription_suite_bucket_hash_map_TestSuite_test_at_is_same_as_bracket_if_element_exists;
-
-static class TestDescription_suite_bucket_hash_map_TestSuite_test_at_can_mutate_element : public CxxTest::RealTestDescription {
-public:
- TestDescription_suite_bucket_hash_map_TestSuite_test_at_can_mutate_element() : CxxTest::RealTestDescription( Tests_bucket_hash_map_TestSuite, suiteDescription_bucket_hash_map_TestSuite, 165, "test_at_can_mutate_element" ) {}
- void runTest() { suite_bucket_hash_map_TestSuite.test_at_can_mutate_element(); }
-} testDescription_suite_bucket_hash_map_TestSuite_test_at_can_mutate_element;
-
-static class TestDescription_suite_bucket_hash_map_TestSuite_test_iterator_advance_different : public CxxTest::RealTestDescription {
-public:
- TestDescription_suite_bucket_hash_map_TestSuite_test_iterator_advance_different() : CxxTest::RealTestDescription( Tests_bucket_hash_map_TestSuite, suiteDescription_bucket_hash_map_TestSuite, 173, "test_iterator_advance_different" ) {}
- void runTest() { suite_bucket_hash_map_TestSuite.test_iterator_advance_different(); }
-} testDescription_suite_bucket_hash_map_TestSuite_test_iterator_advance_different;
-
-static class TestDescription_suite_bucket_hash_map_TestSuite_test_iterator_begin_is_end_if_empty : public CxxTest::RealTestDescription {
-public:
- TestDescription_suite_bucket_hash_map_TestSuite_test_iterator_begin_is_end_if_empty() : CxxTest::RealTestDescription( Tests_bucket_hash_map_TestSuite, suiteDescription_bucket_hash_map_TestSuite, 182, "test_iterator_begin_is_end_if_empty" ) {}
- void runTest() { suite_bucket_hash_map_TestSuite.test_iterator_begin_is_end_if_empty(); }
-} testDescription_suite_bucket_hash_map_TestSuite_test_iterator_begin_is_end_if_empty;
-
-static class TestDescription_suite_bucket_hash_map_TestSuite_test_iterator_reaches_end : public CxxTest::RealTestDescription {
-public:
- TestDescription_suite_bucket_hash_map_TestSuite_test_iterator_reaches_end() : CxxTest::RealTestDescription( Tests_bucket_hash_map_TestSuite, suiteDescription_bucket_hash_map_TestSuite, 187, "test_iterator_reaches_end" ) {}
- void runTest() { suite_bucket_hash_map_TestSuite.test_iterator_reaches_end(); }
-} testDescription_suite_bucket_hash_map_TestSuite_test_iterator_reaches_end;
-
-static class TestDescription_suite_bucket_hash_map_TestSuite_test_erasing_element_reduces_size : public CxxTest::RealTestDescription {
-public:
- TestDescription_suite_bucket_hash_map_TestSuite_test_erasing_element_reduces_size() : CxxTest::RealTestDescription( Tests_bucket_hash_map_TestSuite, suiteDescription_bucket_hash_map_TestSuite, 194, "test_erasing_element_reduces_size" ) {}
- void runTest() { suite_bucket_hash_map_TestSuite.test_erasing_element_reduces_size(); }
-} testDescription_suite_bucket_hash_map_TestSuite_test_erasing_element_reduces_size;
-
-static class TestDescription_suite_bucket_hash_map_TestSuite_test_erase_end_is_fine : public CxxTest::RealTestDescription {
-public:
- TestDescription_suite_bucket_hash_map_TestSuite_test_erase_end_is_fine() : CxxTest::RealTestDescription( Tests_bucket_hash_map_TestSuite, suiteDescription_bucket_hash_map_TestSuite, 201, "test_erase_end_is_fine" ) {}
- void runTest() { suite_bucket_hash_map_TestSuite.test_erase_end_is_fine(); }
-} testDescription_suite_bucket_hash_map_TestSuite_test_erase_end_is_fine;
-
-static class TestDescription_suite_bucket_hash_map_TestSuite_test_erase_end_does_not_effect_size : public CxxTest::RealTestDescription {
-public:
- TestDescription_suite_bucket_hash_map_TestSuite_test_erase_end_does_not_effect_size() : CxxTest::RealTestDescription( Tests_bucket_hash_map_TestSuite, suiteDescription_bucket_hash_map_TestSuite, 208, "test_erase_end_does_not_effect_size" ) {}
- void runTest() { suite_bucket_hash_map_TestSuite.test_erase_end_does_not_effect_size(); }
-} testDescription_suite_bucket_hash_map_TestSuite_test_erase_end_does_not_effect_size;
-
-static class TestDescription_suite_bucket_hash_map_TestSuite_test_erase_end_returns_end : public CxxTest::RealTestDescription {
-public:
- TestDescription_suite_bucket_hash_map_TestSuite_test_erase_end_returns_end() : CxxTest::RealTestDescription( Tests_bucket_hash_map_TestSuite, suiteDescription_bucket_hash_map_TestSuite, 215, "test_erase_end_returns_end" ) {}
- void runTest() { suite_bucket_hash_map_TestSuite.test_erase_end_returns_end(); }
-} testDescription_suite_bucket_hash_map_TestSuite_test_erase_end_returns_end;
-
-static class TestDescription_suite_bucket_hash_map_TestSuite_test_erase_key_missing_key_no_result : public CxxTest::RealTestDescription {
-public:
- TestDescription_suite_bucket_hash_map_TestSuite_test_erase_key_missing_key_no_result() : CxxTest::RealTestDescription( Tests_bucket_hash_map_TestSuite, suiteDescription_bucket_hash_map_TestSuite, 220, "test_erase_key_missing_key_no_result" ) {}
- void runTest() { suite_bucket_hash_map_TestSuite.test_erase_key_missing_key_no_result(); }
-} testDescription_suite_bucket_hash_map_TestSuite_test_erase_key_missing_key_no_result;
-
-static class TestDescription_suite_bucket_hash_map_TestSuite_test_erase_key_incorrect_key_no_result : public CxxTest::RealTestDescription {
-public:
- TestDescription_suite_bucket_hash_map_TestSuite_test_erase_key_incorrect_key_no_result() : CxxTest::RealTestDescription( Tests_bucket_hash_map_TestSuite, suiteDescription_bucket_hash_map_TestSuite, 225, "test_erase_key_incorrect_key_no_result" ) {}
- void runTest() { suite_bucket_hash_map_TestSuite.test_erase_key_incorrect_key_no_result(); }
-} testDescription_suite_bucket_hash_map_TestSuite_test_erase_key_incorrect_key_no_result;
-
-static class TestDescription_suite_bucket_hash_map_TestSuite_test_erase_key_correct_key_one : public CxxTest::RealTestDescription {
-public:
- TestDescription_suite_bucket_hash_map_TestSuite_test_erase_key_correct_key_one() : CxxTest::RealTestDescription( Tests_bucket_hash_map_TestSuite, suiteDescription_bucket_hash_map_TestSuite, 231, "test_erase_key_correct_key_one" ) {}
- void runTest() { suite_bucket_hash_map_TestSuite.test_erase_key_correct_key_one(); }
-} testDescription_suite_bucket_hash_map_TestSuite_test_erase_key_correct_key_one;
-
-static class TestDescription_suite_bucket_hash_map_TestSuite_test_erase_range : public CxxTest::RealTestDescription {
-public:
- TestDescription_suite_bucket_hash_map_TestSuite_test_erase_range() : CxxTest::RealTestDescription( Tests_bucket_hash_map_TestSuite, suiteDescription_bucket_hash_map_TestSuite, 237, "test_erase_range" ) {}
- void runTest() { suite_bucket_hash_map_TestSuite.test_erase_range(); }
-} testDescription_suite_bucket_hash_map_TestSuite_test_erase_range;
-
-static class TestDescription_suite_bucket_hash_map_TestSuite_test_clear : public CxxTest::RealTestDescription {
-public:
- TestDescription_suite_bucket_hash_map_TestSuite_test_clear() : CxxTest::RealTestDescription( Tests_bucket_hash_map_TestSuite, suiteDescription_bucket_hash_map_TestSuite, 246, "test_clear" ) {}
- void runTest() { suite_bucket_hash_map_TestSuite.test_clear(); }
-} testDescription_suite_bucket_hash_map_TestSuite_test_clear;
-
-#include <cxxtest/Root.cpp>
-const char* CxxTest::RealWorldDescription::_worldName = "cxxtest";