forked from boostorg/container_hash
Add tests against Peter's spec.
[SVN r28281]
This commit is contained in:
1 parent
72cd8cdaa1
commit
0fae4b4f65
10 files changed
+207
-28
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user