Add tests against Peter's spec.

[SVN r28281]
This commit is contained in:
Daniel James
2005-04-16 16:56:27 +00:00
parent 72cd8cdaa1
commit 0fae4b4f65
10 changed files with 207 additions and 28 deletions
+5
View File
@@ -53,6 +53,11 @@ BOOST_AUTO_UNIT_TEST(custom_tests)
test::custom x(55);
BOOST_CHECK(custom_hasher(x) == 550u);
{
using namespace HASH_NAMESPACE;
BOOST_CHECK(custom_hasher(x) == hash_value(x));
}
std::vector<test::custom> custom_vector;
custom_vector.push_back(5);
custom_vector.push_back(25);