forked from boostorg/unordered
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:
@ -58,7 +58,7 @@ namespace erase_tests {
|
|||||||
typename Container::key_type key = test::get_key<Container>(*x.begin());
|
typename Container::key_type key = test::get_key<Container>(*x.begin());
|
||||||
std::size_t count = x.count(key);
|
std::size_t count = x.count(key);
|
||||||
iterator pos = x.erase(x.begin());
|
iterator pos = x.erase(x.begin());
|
||||||
BOOST_ASSERT(BOOST_TEST(pos == x.begin()));
|
BOOST_TEST(pos == x.begin());
|
||||||
--size;
|
--size;
|
||||||
BOOST_TEST(x.count(key) == count - 1);
|
BOOST_TEST(x.count(key) == count - 1);
|
||||||
BOOST_TEST(x.size() == size);
|
BOOST_TEST(x.size() == size);
|
||||||
|
@ -213,8 +213,8 @@ UNORDERED_AUTO_TEST (allocator_check) {
|
|||||||
typedef boost::allocator_rebind<A<int>, float>::type alloc_rebound;
|
typedef boost::allocator_rebind<A<int>, float>::type alloc_rebound;
|
||||||
alloc_rebound b;
|
alloc_rebound b;
|
||||||
A<int> a(b);
|
A<int> a(b);
|
||||||
BOOST_ASSERT(alloc_rebound(a) == b);
|
BOOST_TEST(alloc_rebound(a) == b);
|
||||||
BOOST_ASSERT(A<int>(b) == a);
|
BOOST_TEST(A<int>(b) == a);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef BOOST_UNORDERED_FOA_TESTS
|
#ifdef BOOST_UNORDERED_FOA_TESTS
|
||||||
|
@ -1641,7 +1641,7 @@ template <class UnorderedMap> void test_map_transparent_subscript(UnorderedMap*)
|
|||||||
int key_count = key::count_;
|
int key_count = key::count_;
|
||||||
|
|
||||||
map[0] = 7331;
|
map[0] = 7331;
|
||||||
BOOST_ASSERT(BOOST_TEST_EQ(key::count_, key_count));
|
BOOST_TEST_EQ(key::count_, key_count);
|
||||||
|
|
||||||
map[4] = 7331;
|
map[4] = 7331;
|
||||||
BOOST_TEST_EQ(key::count_, key_count + 1);
|
BOOST_TEST_EQ(key::count_, key_count + 1);
|
||||||
@ -1664,7 +1664,7 @@ void test_map_non_transparent_subscript(UnorderedMap*)
|
|||||||
int key_count = key::count_;
|
int key_count = key::count_;
|
||||||
|
|
||||||
map[0] = 7331;
|
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_;
|
key_count = key::count_;
|
||||||
map[4] = 7331;
|
map[4] = 7331;
|
||||||
|
Reference in New Issue
Block a user