Add a test that unnecessary copies aren't made of objects inserted.

Make the exception tests track the allocator usage.
Speed up the exception tests a bit.


[SVN r3490]
This commit is contained in:
Daniel James committed 2006-12-03 23:08:17 +00:00
1 parent ec310f7b80
commit 8d8f9e1942
8 files changed
+251 -25

No files matched your search

+2 -1
View File
@@ -5,7 +5,8 @@
import testing ;
alias framework : /boost/test//boost_unit_test_framework/<optimization>speed ;
#alias framework : /boost/test//boost_unit_test_framework/<optimization>speed ;
alias framework : /boost/test//boost_unit_test_framework ;
project unordered-test/exception-tests
: requirements
+1 -1
View File
@@ -27,7 +27,7 @@ struct erase_test_base : public test::exception_base
void check(T const& x) const {
std::string scope(test::scope);
BOOST_CHECK(scope.find("hash::") != std::string::npos ||
HASH_CHECK(scope.find("hash::") != std::string::npos ||
scope.find("equal_to::") != std::string::npos ||
scope == "operator==(object, object)");
+1 -1
View File
@@ -24,7 +24,7 @@ struct self_swap_base : public test::exception_base
std::string scope(test::scope);
#if BOOST_UNORDERED_SWAP_METHOD != 2
BOOST_CHECK(
HASH_CHECK(
scope == "hash::operator(hash)" ||
scope == "hash::operator=(hash)" ||
scope == "equal_to::operator(equal_to)" ||