Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r82783 - trunk/libs/test/test
From: gennadiy.rozental_at_[hidden]
Date: 2013-02-08 02:42:34


Author: rogeeff
Date: 2013-02-08 02:42:31 EST (Fri, 08 Feb 2013)
New Revision: 82783
URL: http://svn.boost.org/trac/boost/changeset/82783

Log:
ifdef new tool usage
Text files modified:
   trunk/libs/test/test/test_fp_comparisons.cpp | 8 +++++---
   1 files changed, 5 insertions(+), 3 deletions(-)

Modified: trunk/libs/test/test/test_fp_comparisons.cpp
==============================================================================
--- trunk/libs/test/test/test_fp_comparisons.cpp (original)
+++ trunk/libs/test/test/test_fp_comparisons.cpp 2013-02-08 02:42:31 EST (Fri, 08 Feb 2013)
@@ -59,7 +59,7 @@
     fp2 = static_cast<FPT>(second); \
     epsilon = static_cast<FPT>(e); \
                                             \
- BOOST_CHECK( !check_is_close( fp1, fp2, ::fpc::percent_tolerance( epsilon ) ) ); \
+ BOOST_TEST( !check_is_close( fp1, fp2, ::fpc::percent_tolerance( epsilon ) ) ); \
 /**/
 #endif
 
@@ -119,7 +119,7 @@
     fp2 = static_cast<FPT>(second); \
     epsilon = static_cast<FPT>(e); \
                                             \
- BOOST_CHECK( !check_is_close( fp1, fp2, epsilon ) ); \
+ BOOST_TEST( !check_is_close( fp1, fp2, epsilon ) ); \
 /**/
 #endif
 
@@ -149,7 +149,7 @@
     CHECK_NOT_CLOSE( 1, 1.0002, 1.1e-4 );
 
 #undef CHECK_CLOSE
-#undef CHECK_NOT_CLOSE
+#undef CHECK_NOT_CLOSE
 }
 
 //____________________________________________________________________________//
@@ -168,7 +168,9 @@
     BOOST_CHECK_SMALL( 1e-6, 1e-5 );
     BOOST_CHECK_SMALL( -1e-6, 1e-5 );
 
+#ifndef BOOST_TEST_NO_NEW_TOOLS
     BOOST_TEST( 1e-6 != 0., 1e-7 );
+#endif
 }
 
 //____________________________________________________________________________//


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk