mirror of
https://github.com/boostorg/unordered.git
synced 2025-10-17 09:55:24 +02:00
Update the unordered tests. Several changes including extra erase tests. The newer version of the containers have a hairy erase implementation, so need to test all the special cases. Also, a few extra tests here and there, avoid a couple of warnings and remove some old TODOs.
[SVN r3341]
This commit is contained in:
@@ -27,8 +27,6 @@ struct erase_test_base : public test::exception_base
|
||||
void check(T const& x) const {
|
||||
std::string scope(test::scope);
|
||||
|
||||
// TODO: Instead of checking for 'operator==', I should check against
|
||||
// a scope stack.
|
||||
BOOST_CHECK(scope.find("hash::") != std::string::npos ||
|
||||
scope.find("equal_to::") != std::string::npos ||
|
||||
scope == "operator==(object, object)");
|
||||
@@ -52,11 +50,6 @@ struct erase_by_key_test1 : public erase_test_base<T>
|
||||
}
|
||||
};
|
||||
|
||||
// TODO: More tests...
|
||||
// Better test by key.
|
||||
// Test other erase signatures - generally they won't throw, but the standard
|
||||
// does allow them to. And test clear as well.
|
||||
|
||||
RUN_EXCEPTION_TESTS(
|
||||
(erase_by_key_test1),
|
||||
CONTAINER_SEQ)
|
||||
|
Reference in New Issue
Block a user