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

View File

@@ -12,6 +12,7 @@
#include "../helpers/random_values.hpp"
#include "../helpers/invariants.hpp"
#include "../helpers/strong.hpp"
#include "../helpers/input_iterator.hpp"
#include <cmath>
@@ -31,7 +32,7 @@ struct insert_test_base : public test::exception_base
void check(T const& x, strong_type const& strong) const {
std::string scope(test::scope);
if(scope.find_first_of("hash::operator()") == std::string::npos)
if(scope.find("hash::operator()") == std::string::npos)
strong.test(x);
test::check_equivalent_keys(x);
}