Revert conversion from lightweight test to Boost.Test.

[SVN r47545]
This commit is contained in:
Daniel James
2008-07-18 12:31:18 +00:00
parent 62226713a2
commit 4bb4957dc4
32 changed files with 228 additions and 229 deletions
+8 -8
View File
@@ -48,7 +48,7 @@ namespace boost
# endif
#endif
#include <boost/test/minimal.hpp>
#include <boost/detail/lightweight_test.hpp>
#ifdef TEST_EXTENSIONS
@@ -59,13 +59,13 @@ namespace boost
void custom_tests()
{
HASH_NAMESPACE::hash<test::custom> custom_hasher;
BOOST_CHECK(custom_hasher(10) == 100u);
BOOST_TEST(custom_hasher(10) == 100u);
test::custom x(55);
BOOST_CHECK(custom_hasher(x) == 550u);
BOOST_TEST(custom_hasher(x) == 550u);
{
using namespace HASH_NAMESPACE;
BOOST_CHECK(custom_hasher(x) == hash_value(x));
BOOST_TEST(custom_hasher(x) == hash_value(x));
}
std::vector<test::custom> custom_vector;
@@ -83,17 +83,17 @@ void custom_tests()
HASH_NAMESPACE::hash_combine(seed2, 250u);
HASH_NAMESPACE::hash_combine(seed2, 350u);
BOOST_CHECK(seed ==
BOOST_TEST(seed ==
HASH_NAMESPACE::hash_range(custom_vector.begin(), custom_vector.end()));
BOOST_CHECK(seed == seed2);
BOOST_TEST(seed == seed2);
}
#endif // TEST_EXTENSIONS
int test_main(int, char**)
int main()
{
#ifdef TEST_EXTENSIONS
custom_tests();
#endif
return 0;
return boost::report_errors();
}