Test inserting and constructing from input iterators.

Check thrown exception types properly.
Return by reference from 'get_key' so that the keys aren't copied.


[SVN r3115]
This commit is contained in:
Daniel James
2006-08-06 20:42:45 +00:00
parent 034b97fd23
commit 828dbe5078
9 changed files with 96 additions and 11 deletions
+8 -1
View File
@@ -25,7 +25,14 @@ struct erase_test_base : public test::exception_base
}
void check(T const& x) const {
// TODO: Check that exception was thrown by hash or predicate object?
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)");
test::check_equivalent_keys(x);
}
};