Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r74722 - trunk/libs/math/test
From: gennadiy.rozental_at_[hidden]
Date: 2011-10-05 05:28:27


Author: rogeeff
Date: 2011-10-05 05:28:25 EDT (Wed, 05 Oct 2011)
New Revision: 74722
URL: http://svn.boost.org/trac/boost/changeset/74722

Log:
eliminated unit_test_framework and BOOST_MESSAGE
Text files modified:
   trunk/libs/math/test/acosh_test.hpp | 12 ++++++------
   trunk/libs/math/test/asinh_test.hpp | 12 ++++++------
   trunk/libs/math/test/atanh_test.hpp | 18 +++++++++---------
   trunk/libs/math/test/complex_test.cpp | 8 ++++----
   trunk/libs/math/test/sinc_test.hpp | 14 +++++++-------
   trunk/libs/math/test/sinhc_test.hpp | 14 +++++++-------
   trunk/libs/math/test/special_functions_test.cpp | 26 +++++++++++++-------------
   trunk/libs/math/test/test_signed_zero.cpp | 2 +-
   8 files changed, 53 insertions(+), 53 deletions(-)

Modified: trunk/libs/math/test/acosh_test.hpp
==============================================================================
--- trunk/libs/math/test/acosh_test.hpp (original)
+++ trunk/libs/math/test/acosh_test.hpp 2011-10-05 05:28:25 EDT (Wed, 05 Oct 2011)
@@ -44,7 +44,7 @@
 
 BOOST_TEST_CASE_TEMPLATE_FUNCTION(acosh_test, T)
 {
- BOOST_MESSAGE("Testing acosh in the real domain for "
+ BOOST_TEST_MESSAGE("Testing acosh in the real domain for "
         << string_type_name<T>::_() << ".");
     
     for (int i = 0; i <= 100; i++)
@@ -81,8 +81,8 @@
 
 void acosh_manual_check()
 {
- BOOST_MESSAGE(" ");
- BOOST_MESSAGE("acosh");
+ BOOST_TEST_MESSAGE(" ");
+ BOOST_TEST_MESSAGE("acosh");
     
     for (int i = 0; i <= 100; i++)
     {
@@ -92,20 +92,20 @@
                 static_cast<long double>(i-50)/static_cast<long double>(5);
         
 #ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
- BOOST_MESSAGE( ::std::setw(15)
+ BOOST_TEST_MESSAGE( ::std::setw(15)
                      << acosh_error_evaluator(xf)
                      << ::std::setw(15)
                      << acosh_error_evaluator(xd)
                      << ::std::setw(15)
                      << acosh_error_evaluator(xl));
 #else
- BOOST_MESSAGE( ::std::setw(15)
+ BOOST_TEST_MESSAGE( ::std::setw(15)
                      << acosh_error_evaluator(xf)
                      << ::std::setw(15)
                      << acosh_error_evaluator(xd));
 #endif
     }
     
- BOOST_MESSAGE(" ");
+ BOOST_TEST_MESSAGE(" ");
 }
 

Modified: trunk/libs/math/test/asinh_test.hpp
==============================================================================
--- trunk/libs/math/test/asinh_test.hpp (original)
+++ trunk/libs/math/test/asinh_test.hpp 2011-10-05 05:28:25 EDT (Wed, 05 Oct 2011)
@@ -44,7 +44,7 @@
 
 BOOST_TEST_CASE_TEMPLATE_FUNCTION(asinh_test, T)
 {
- BOOST_MESSAGE("Testing asinh in the real domain for "
+ BOOST_TEST_MESSAGE("Testing asinh in the real domain for "
         << string_type_name<T>::_() << ".");
     
     for (int i = 0; i <= 80; i++)
@@ -60,8 +60,8 @@
 
 void asinh_manual_check()
 {
- BOOST_MESSAGE(" ");
- BOOST_MESSAGE("asinh");
+ BOOST_TEST_MESSAGE(" ");
+ BOOST_TEST_MESSAGE("asinh");
     
     for (int i = 0; i <= 80; i++)
     {
@@ -71,20 +71,20 @@
                 static_cast<long double>(i-40)/static_cast<long double>(4);
         
 #ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
- BOOST_MESSAGE( ::std::setw(15)
+ BOOST_TEST_MESSAGE( ::std::setw(15)
                      << asinh_error_evaluator(xf)
                      << ::std::setw(15)
                      << asinh_error_evaluator(xd)
                      << ::std::setw(15)
                      << asinh_error_evaluator(xl));
 #else
- BOOST_MESSAGE( ::std::setw(15)
+ BOOST_TEST_MESSAGE( ::std::setw(15)
                      << asinh_error_evaluator(xf)
                      << ::std::setw(15)
                      << asinh_error_evaluator(xd));
 #endif
     }
     
- BOOST_MESSAGE(" ");
+ BOOST_TEST_MESSAGE(" ");
 }
 

Modified: trunk/libs/math/test/atanh_test.hpp
==============================================================================
--- trunk/libs/math/test/atanh_test.hpp (original)
+++ trunk/libs/math/test/atanh_test.hpp 2011-10-05 05:28:25 EDT (Wed, 05 Oct 2011)
@@ -53,7 +53,7 @@
     using ::boost::math::atanh;
     
     
- BOOST_MESSAGE("Testing atanh in the real domain for "
+ BOOST_TEST_MESSAGE("Testing atanh in the real domain for "
         << string_type_name<T>::_() << ".");
     
     BOOST_CHECK_PREDICATE(::std::less_equal<T>(),
@@ -94,8 +94,8 @@
     using ::std::numeric_limits;
     
     
- BOOST_MESSAGE(" ");
- BOOST_MESSAGE("atanh");
+ BOOST_TEST_MESSAGE(" ");
+ BOOST_TEST_MESSAGE("atanh");
     
     for (int i = 0; i <= 100; i++)
     {
@@ -117,14 +117,14 @@
             )
         {
 #ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
- BOOST_MESSAGE( ::std::setw(15)
+ BOOST_TEST_MESSAGE( ::std::setw(15)
                         << atanh_error_evaluator(xf)
                         << ::std::setw(15)
                         << atanh_error_evaluator(xd)
                         << ::std::setw(15)
                         << atanh_error_evaluator(xl));
 #else
- BOOST_MESSAGE( ::std::setw(15)
+ BOOST_TEST_MESSAGE( ::std::setw(15)
                         << atanh_error_evaluator(xf)
                         << ::std::setw(15)
                         << atanh_error_evaluator(xd));
@@ -147,19 +147,19 @@
                         numeric_limits<long double>::epsilon())
                 )
             {
- BOOST_MESSAGE("Platform's numerics may lack precision.");
+ BOOST_TEST_MESSAGE("Platform's numerics may lack precision.");
             }
             else
             {
 #ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
- BOOST_MESSAGE( ::std::setw(15)
+ BOOST_TEST_MESSAGE( ::std::setw(15)
                             << atanh_error_evaluator(xf)
                             << ::std::setw(15)
                             << atanh_error_evaluator(xd)
                             << ::std::setw(15)
                             << atanh_error_evaluator(xl));
 #else
- BOOST_MESSAGE( ::std::setw(15)
+ BOOST_TEST_MESSAGE( ::std::setw(15)
                             << atanh_error_evaluator(xf)
                             << ::std::setw(15)
                             << atanh_error_evaluator(xd));
@@ -168,6 +168,6 @@
         }
     }
     
- BOOST_MESSAGE(" ");
+ BOOST_TEST_MESSAGE(" ");
 }
 

Modified: trunk/libs/math/test/complex_test.cpp
==============================================================================
--- trunk/libs/math/test/complex_test.cpp (original)
+++ trunk/libs/math/test/complex_test.cpp 2011-10-05 05:28:25 EDT (Wed, 05 Oct 2011)
@@ -22,8 +22,8 @@
 #endif
 
 #ifndef VERBOSE
-#undef BOOST_MESSAGE
-#define BOOST_MESSAGE(x)
+#undef BOOST_TEST_MESSAGE
+#define BOOST_TEST_MESSAGE(x)
 #endif
 
 //
@@ -59,7 +59,7 @@
          }
          else
          {
- BOOST_MESSAGE("Expected {0,0} but got: " << b);
+ BOOST_TEST_MESSAGE("Expected {0,0} but got: " << b);
          }
       }
       return result;
@@ -73,7 +73,7 @@
       }
       else
       {
- BOOST_MESSAGE("Found {0,0} but expected: " << a);
+ BOOST_TEST_MESSAGE("Found {0,0} but expected: " << a);
       }
    }
 

Modified: trunk/libs/math/test/sinc_test.hpp
==============================================================================
--- trunk/libs/math/test/sinc_test.hpp (original)
+++ trunk/libs/math/test/sinc_test.hpp 2011-10-05 05:28:25 EDT (Wed, 05 Oct 2011)
@@ -27,7 +27,7 @@
     using ::boost::math::sinc_pi;
     
     
- BOOST_MESSAGE("Testing sinc_pi in the real domain for "
+ BOOST_TEST_MESSAGE("Testing sinc_pi in the real domain for "
         << string_type_name<T>::_() << ".");
     
     BOOST_CHECK_PREDICATE(::std::less_equal<T>(),
@@ -46,7 +46,7 @@
     using ::boost::math::sinc_pi;
     
     
- BOOST_MESSAGE("Testing sinc_pi in the complex domain for "
+ BOOST_TEST_MESSAGE("Testing sinc_pi in the complex domain for "
         << string_type_name<T>::_() << ".");
     
     BOOST_CHECK_PREDICATE(::std::less_equal<T>(),
@@ -61,13 +61,13 @@
     using ::boost::math::sinc_pi;
     
     
- BOOST_MESSAGE(" ");
- BOOST_MESSAGE("sinc_pi");
+ BOOST_TEST_MESSAGE(" ");
+ BOOST_TEST_MESSAGE("sinc_pi");
     
     for (int i = 0; i <= 100; i++)
     {
 #ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
- BOOST_MESSAGE( ::std::setw(15)
+ BOOST_TEST_MESSAGE( ::std::setw(15)
                     << sinc_pi<float>(static_cast<float>(i-50)/
                                                 static_cast<float>(50))
                     << ::std::setw(15)
@@ -77,7 +77,7 @@
                     << sinc_pi<long double>(static_cast<long double>(i-50)/
                                                 static_cast<long double>(50)));
 #else
- BOOST_MESSAGE( ::std::setw(15)
+ BOOST_TEST_MESSAGE( ::std::setw(15)
                     << sinc_pi<float>(static_cast<float>(i-50)/
                                                 static_cast<float>(50))
                     << ::std::setw(15)
@@ -86,7 +86,7 @@
 #endif
     }
     
- BOOST_MESSAGE(" ");
+ BOOST_TEST_MESSAGE(" ");
 }
 
 

Modified: trunk/libs/math/test/sinhc_test.hpp
==============================================================================
--- trunk/libs/math/test/sinhc_test.hpp (original)
+++ trunk/libs/math/test/sinhc_test.hpp 2011-10-05 05:28:25 EDT (Wed, 05 Oct 2011)
@@ -27,7 +27,7 @@
     using ::boost::math::sinhc_pi;
     
     
- BOOST_MESSAGE("Testing sinhc_pi in the real domain for "
+ BOOST_TEST_MESSAGE("Testing sinhc_pi in the real domain for "
         << string_type_name<T>::_() << ".");
     
     BOOST_CHECK_PREDICATE(::std::less_equal<T>(),
@@ -46,7 +46,7 @@
     using ::boost::math::sinhc_pi;
     
     
- BOOST_MESSAGE("Testing sinhc_pi in the complex domain for "
+ BOOST_TEST_MESSAGE("Testing sinhc_pi in the complex domain for "
         << string_type_name<T>::_() << ".");
     
     BOOST_CHECK_PREDICATE(::std::less_equal<T>(),
@@ -61,13 +61,13 @@
     using ::boost::math::sinhc_pi;
     
     
- BOOST_MESSAGE(" ");
- BOOST_MESSAGE("sinc_pi");
+ BOOST_TEST_MESSAGE(" ");
+ BOOST_TEST_MESSAGE("sinc_pi");
     
     for (int i = 0; i <= 100; i++)
     {
 #ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
- BOOST_MESSAGE( ::std::setw(15)
+ BOOST_TEST_MESSAGE( ::std::setw(15)
                     << sinhc_pi<float>(static_cast<float>(i-50)/
                                                 static_cast<float>(50))
                     << ::std::setw(15)
@@ -77,7 +77,7 @@
                     << sinhc_pi<long double>(static_cast<long double>(i-50)/
                                                 static_cast<long double>(50)));
 #else
- BOOST_MESSAGE( ::std::setw(15)
+ BOOST_TEST_MESSAGE( ::std::setw(15)
                     << sinhc_pi<float>(static_cast<float>(i-50)/
                                                 static_cast<float>(50))
                     << ::std::setw(15)
@@ -86,7 +86,7 @@
 #endif
     }
     
- BOOST_MESSAGE(" ");
+ BOOST_TEST_MESSAGE(" ");
 }
     
 

Modified: trunk/libs/math/test/special_functions_test.cpp
==============================================================================
--- trunk/libs/math/test/special_functions_test.cpp (original)
+++ trunk/libs/math/test/special_functions_test.cpp 2011-10-05 05:28:25 EDT (Wed, 05 Oct 2011)
@@ -59,21 +59,21 @@
 
 
 
-boost::unit_test_framework::test_suite * init_unit_test_suite(int, char *[])
+boost::unit_test::test_suite * init_unit_test_suite(int, char *[])
 {
     ::boost::unit_test::unit_test_log.
         set_threshold_level(::boost::unit_test::log_messages);
     
- boost::unit_test_framework::test_suite * test =
+ boost::unit_test::test_suite * test =
         BOOST_TEST_SUITE("special_functions_test");
     
- BOOST_MESSAGE("Results of special functions test.");
- BOOST_MESSAGE(" ");
- BOOST_MESSAGE("(C) Copyright Hubert Holin 2003-2005.");
- BOOST_MESSAGE("Distributed under the Boost Software License, Version 1.0.");
- BOOST_MESSAGE("(See accompanying file LICENSE_1_0.txt or copy at");
- BOOST_MESSAGE("http://www.boost.org/LICENSE_1_0.txt)");
- BOOST_MESSAGE(" ");
+ BOOST_TEST_MESSAGE("Results of special functions test.");
+ BOOST_TEST_MESSAGE(" ");
+ BOOST_TEST_MESSAGE("(C) Copyright Hubert Holin 2003-2005.");
+ BOOST_TEST_MESSAGE("Distributed under the Boost Software License, Version 1.0.");
+ BOOST_TEST_MESSAGE("(See accompanying file LICENSE_1_0.txt or copy at");
+ BOOST_TEST_MESSAGE("http://www.boost.org/LICENSE_1_0.txt)");
+ BOOST_TEST_MESSAGE(" ");
     
 #define BOOST_SPECIAL_FUNCTIONS_COMMON_GENERATOR(fct) \
     test->add(BOOST_TEST_CASE_TEMPLATE(fct##_test, test_types));
@@ -98,7 +98,7 @@
 
 #define BOOST_SPECIAL_FUNCTIONS_TEST \
     BOOST_SPECIAL_FUNCTIONS_COMMON_TEST \
- BOOST_MESSAGE("Warning: no template templates; curtailed functionality.");
+ BOOST_TEST_MESSAGE("Warning: no template templates; curtailed functionality.");
     
 #else /* BOOST_NO_TEMPLATE_TEMPLATES */
 
@@ -126,13 +126,13 @@
         
     using ::std::numeric_limits;
     
- BOOST_MESSAGE("epsilon");
+ BOOST_TEST_MESSAGE("epsilon");
     
- BOOST_MESSAGE( ::std::setw(15) << numeric_limits<float>::epsilon()
+ BOOST_TEST_MESSAGE( ::std::setw(15) << numeric_limits<float>::epsilon()
                 << ::std::setw(15) << numeric_limits<double>::epsilon()
                 << ::std::setw(15) << numeric_limits<long double>::epsilon());
     
- BOOST_MESSAGE(" ");
+ BOOST_TEST_MESSAGE(" ");
     
     test->add(BOOST_TEST_CASE(atanh_manual_check));
     test->add(BOOST_TEST_CASE(asinh_manual_check));

Modified: trunk/libs/math/test/test_signed_zero.cpp
==============================================================================
--- trunk/libs/math/test/test_signed_zero.cpp (original)
+++ trunk/libs/math/test/test_signed_zero.cpp 2011-10-05 05:28:25 EDT (Wed, 05 Oct 2011)
@@ -51,7 +51,7 @@
 
   if (signbit(static_cast<CharType>(-1e-6f)/(std::numeric_limits<CharType>::max)()) != -0)
   {
- BOOST_MESSAGE("Signed zero is not supported on this platform.");
+ BOOST_TEST_MESSAGE("Signed zero is not supported on this platform.");
     return;
   }
 


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