Revert conversion from lightweight test to Boost.Test.

Merged revisions 47545 via svnmerge from 
https://svn.boost.org/svn/boost/trunk

........
  r47545 | danieljames | 2008-07-18 13:31:18 +0100 (Fri, 18 Jul 2008) | 1 line
  
  Revert conversion from lightweight test to Boost.Test.
........


[SVN r47586]
This commit is contained in:
Daniel James
2008-07-19 09:02:10 +00:00
parent b3e82db752
commit e810954b62
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();
}