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

View File

@@ -13,7 +13,7 @@
# endif
#endif
#include <boost/test/minimal.hpp>
#include <boost/detail/lightweight_test.hpp>
#ifdef TEST_EXTENSIONS
@@ -41,13 +41,13 @@ void generic_complex_tests(std::complex<T> v)
{
HASH_NAMESPACE::hash<std::complex<T> > complex_hasher;
BOOST_CHECK(complex_hasher(v) == complex_hasher(v));
BOOST_TEST(complex_hasher(v) == complex_hasher(v));
HASH_NAMESPACE::hash<T> real_hasher;
T real = v.real();
T imag = v.imag();
BOOST_CHECK(real_hasher(real) == complex_hasher(std::complex<T>(real)));
BOOST_TEST(real_hasher(real) == complex_hasher(std::complex<T>(real)));
if(imag != 0 && real_hasher(real) == complex_hasher(v)) {
std::ostringstream os;
@@ -90,7 +90,7 @@ void complex_integral_tests(Integer*)
}
}
int test_main(int, char**)
int main()
{
complex_float_tests((float*) 0);
complex_float_tests((double*) 0);
@@ -102,7 +102,7 @@ int test_main(int, char**)
complex_integral_tests((unsigned int*) 0);
complex_integral_tests((unsigned long*) 0);
return 0;
return boost::report_errors();
}
#endif