From b8d3aa2a686031498710822255e7a7f51e6a3c69 Mon Sep 17 00:00:00 2001 From: LeonineKing1199 Date: Fri, 3 Dec 2021 11:19:58 -0800 Subject: [PATCH] Light cleanup of test --- test/unordered/transparent_tests.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/unordered/transparent_tests.cpp b/test/unordered/transparent_tests.cpp index ff782632..089747ba 100644 --- a/test/unordered/transparent_tests.cpp +++ b/test/unordered/transparent_tests.cpp @@ -532,6 +532,9 @@ typedef boost::unordered_map transparent_unordered_map; +// test that in the presence of the member function template `erase()`, we still +// invoke the correct iterator overloads when the type is implicitly convertible +// transparent_unordered_map::iterator erase_overload_compile_test() { convertible_to_iterator c; @@ -565,11 +568,9 @@ template void test_transparent_erase() BOOST_TEST(key::count_ == expected_key_count); num_erased = map.erase(0); - BOOST_TEST(key::count_ == expected_key_count); BOOST_TEST(num_erased == 1); BOOST_TEST(map.size() == 2); BOOST_TEST(map.find(0) == map.end()); - BOOST_TEST(key::count_ == expected_key_count); num_erased = map.erase(1337); BOOST_TEST(num_erased == 0);