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
+5 -5
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