Remove erroneous asserts from the test suite

These asserts were erroneously being removed in release builds of the tests which is never the intention
This commit is contained in:
Christian Mazakas
2023-06-19 09:21:48 -07:00
parent 2eebe157fd
commit b2a4b22c89
3 changed files with 5 additions and 5 deletions

View File

@ -58,7 +58,7 @@ namespace erase_tests {
typename Container::key_type key = test::get_key<Container>(*x.begin());
std::size_t count = x.count(key);
iterator pos = x.erase(x.begin());
BOOST_ASSERT(BOOST_TEST(pos == x.begin()));
BOOST_TEST(pos == x.begin());
--size;
BOOST_TEST(x.count(key) == count - 1);
BOOST_TEST(x.size() == size);

View File

@ -213,8 +213,8 @@ UNORDERED_AUTO_TEST (allocator_check) {
typedef boost::allocator_rebind<A<int>, float>::type alloc_rebound;
alloc_rebound b;
A<int> a(b);
BOOST_ASSERT(alloc_rebound(a) == b);
BOOST_ASSERT(A<int>(b) == a);
BOOST_TEST(alloc_rebound(a) == b);
BOOST_TEST(A<int>(b) == a);
}
#ifdef BOOST_UNORDERED_FOA_TESTS

View File

@ -1641,7 +1641,7 @@ template <class UnorderedMap> void test_map_transparent_subscript(UnorderedMap*)
int key_count = key::count_;
map[0] = 7331;
BOOST_ASSERT(BOOST_TEST_EQ(key::count_, key_count));
BOOST_TEST_EQ(key::count_, key_count);
map[4] = 7331;
BOOST_TEST_EQ(key::count_, key_count + 1);
@ -1664,7 +1664,7 @@ void test_map_non_transparent_subscript(UnorderedMap*)
int key_count = key::count_;
map[0] = 7331;
BOOST_ASSERT(BOOST_TEST_EQ(key::count_, key_count + 1));
BOOST_TEST_EQ(key::count_, key_count + 1);
key_count = key::count_;
map[4] = 7331;