Remove uses of assert() from tests

[SVN r33011]
This commit is contained in:
Dave Abrahams
2006-02-19 15:03:31 +00:00
parent 59ee910b2e
commit bbb8d4f19f
2 changed files with 5 additions and 2 deletions
+2 -1
View File
@@ -6,12 +6,13 @@
#define HASH_NAMESPACE boost
#include <boost/functional/hash.hpp>
#include <boost/detail/lightweight_test.hpp>
#include <vector>
int f(std::size_t hash1, int* x1) {
// Check that HASH_NAMESPACE::hash<int*> works in both files.
HASH_NAMESPACE::hash<int*> ptr_hasher;
assert(hash1 == ptr_hasher(x1));
BOOST_TEST(hash1 == ptr_hasher(x1));
// Check that std::vector<std::size_t> is avaiable in this file.
std::vector<std::size_t> x;