mirror of
https://github.com/boostorg/unordered.git
synced 2025-11-01 00:01:37 +01:00
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:
@@ -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
|
||||
|
||||
@@ -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)");
|
||||
|
||||
|
||||
@@ -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)" ||
|
||||
|
||||
Reference in New Issue
Block a user