void test_round_even( double n, double x )
{
double r = boost::numeric::RoundEven<double>::nearbyint(n);
- BOOST_CHECK( r == x ) ;
+ BOOST_TEST( r == x ) ;
}
void test_round_even()
// Match 'w' and 'i' which should be equal.
bool double_to_int_OK = std::equal(W.begin(),W.end(),I.begin()) ;
- BOOST_CHECK_MESSAGE(double_to_int_OK, "converter (int,double) as function object");
+ BOOST_TEST(double_to_int_OK);
// Create a sequence of double values from s using a default numeric::converter (which should be the trivial conv).
std::vector<double> D ;
// Match 's' and 'd' which should be equal.
bool double_to_double_OK = std::equal(S.begin(),S.end(),D.begin()) ;
- BOOST_CHECK_MESSAGE(double_to_double_OK, "converter (double,double) as function object");
+ BOOST_TEST(double_to_double_OK);
}
#if BOOST_WORKAROUND(__IBMCPP__, <= 600 ) // VCAPP6
//---------------------------------
}
-int test_main( int, char* argv[] )
+int main()
{
std::cout << std::setprecision( std::numeric_limits<long double>::digits10 ) ;
test_converter_as_function_object();
test_optimizations() ;
- return 0;
+ return boost::report_errors();
}
//---------------------------------------------------------------------------