Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r74725 - trunk/libs/math/special_functions
From: gennadiy.rozental_at_[hidden]
Date: 2011-10-05 05:35:57


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

Log:
eliminated unit_test_framework and BOOST_MESSAGE
Text files modified:
   trunk/libs/math/special_functions/acosh_test.hpp | 10 +++++-----
   trunk/libs/math/special_functions/asinh_test.hpp | 10 +++++-----
   trunk/libs/math/special_functions/atanh_test.hpp | 14 +++++++-------
   trunk/libs/math/special_functions/sinc_test.hpp | 12 ++++++------
   trunk/libs/math/special_functions/sinhc_test.hpp | 12 ++++++------
   trunk/libs/math/special_functions/special_functions_test.cpp | 28 +++++++++++++---------------
   6 files changed, 42 insertions(+), 44 deletions(-)

Modified: trunk/libs/math/special_functions/acosh_test.hpp
==============================================================================
--- trunk/libs/math/special_functions/acosh_test.hpp (original)
+++ trunk/libs/math/special_functions/acosh_test.hpp 2011-10-05 05:35:55 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++)
@@ -60,8 +60,8 @@
 
 void acosh_manual_check()
 {
- BOOST_MESSAGE(" ");
- BOOST_MESSAGE("acosh");
+ BOOST_TEST_MESSAGE(" ");
+ BOOST_TEST_MESSAGE("acosh");
     
     for (int i = 0; i <= 100; i++)
     {
@@ -70,7 +70,7 @@
         long double xl =
                 static_cast<long double>(i-50)/static_cast<long double>(5);
         
- BOOST_MESSAGE( ::std::setw(15)
+ BOOST_TEST_MESSAGE( ::std::setw(15)
                      << acosh_error_evaluator(xf)
                      << ::std::setw(15)
                      << acosh_error_evaluator(xd)
@@ -78,6 +78,6 @@
                      << acosh_error_evaluator(xl));
     }
     
- BOOST_MESSAGE(" ");
+ BOOST_TEST_MESSAGE(" ");
 }
 

Modified: trunk/libs/math/special_functions/asinh_test.hpp
==============================================================================
--- trunk/libs/math/special_functions/asinh_test.hpp (original)
+++ trunk/libs/math/special_functions/asinh_test.hpp 2011-10-05 05:35:55 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 <= 100; 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 <= 100; i++)
     {
@@ -70,7 +70,7 @@
         long double xl =
                 static_cast<long double>(i-50)/static_cast<long double>(5);
         
- BOOST_MESSAGE( ::std::setw(15)
+ BOOST_TEST_MESSAGE( ::std::setw(15)
                      << asinh_error_evaluator(xf)
                      << ::std::setw(15)
                      << asinh_error_evaluator(xd)
@@ -78,6 +78,6 @@
                      << asinh_error_evaluator(xl));
     }
     
- BOOST_MESSAGE(" ");
+ BOOST_TEST_MESSAGE(" ");
 }
 

Modified: trunk/libs/math/special_functions/atanh_test.hpp
==============================================================================
--- trunk/libs/math/special_functions/atanh_test.hpp (original)
+++ trunk/libs/math/special_functions/atanh_test.hpp 2011-10-05 05:35:55 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++)
     {
@@ -116,7 +116,7 @@
                 std::numeric_limits<long double>::has_infinity
             )
         {
- BOOST_MESSAGE( ::std::setw(15)
+ BOOST_TEST_MESSAGE( ::std::setw(15)
                         << atanh_error_evaluator(xf)
                         << ::std::setw(15)
                         << atanh_error_evaluator(xd)
@@ -140,11 +140,11 @@
                         numeric_limits<long double>::epsilon())
                 )
             {
- BOOST_MESSAGE("Platform's numerics may lack precision.");
+ BOOST_TEST_MESSAGE("Platform's numerics may lack precision.");
             }
             else
             {
- BOOST_MESSAGE( ::std::setw(15)
+ BOOST_TEST_MESSAGE( ::std::setw(15)
                             << atanh_error_evaluator(xf)
                             << ::std::setw(15)
                             << atanh_error_evaluator(xd)
@@ -154,6 +154,6 @@
         }
     }
     
- BOOST_MESSAGE(" ");
+ BOOST_TEST_MESSAGE(" ");
 }
 

Modified: trunk/libs/math/special_functions/sinc_test.hpp
==============================================================================
--- trunk/libs/math/special_functions/sinc_test.hpp (original)
+++ trunk/libs/math/special_functions/sinc_test.hpp 2011-10-05 05:35:55 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,12 +61,12 @@
     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++)
     {
- 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 @@
                                                 static_cast<long double>(50)));
     }
     
- BOOST_MESSAGE(" ");
+ BOOST_TEST_MESSAGE(" ");
 }
 
 

Modified: trunk/libs/math/special_functions/sinhc_test.hpp
==============================================================================
--- trunk/libs/math/special_functions/sinhc_test.hpp (original)
+++ trunk/libs/math/special_functions/sinhc_test.hpp 2011-10-05 05:35:55 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,12 +61,12 @@
     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++)
     {
- 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 @@
                                                 static_cast<long double>(50)));
     }
     
- BOOST_MESSAGE(" ");
+ BOOST_TEST_MESSAGE(" ");
 }
     
 

Modified: trunk/libs/math/special_functions/special_functions_test.cpp
==============================================================================
--- trunk/libs/math/special_functions/special_functions_test.cpp (original)
+++ trunk/libs/math/special_functions/special_functions_test.cpp 2011-10-05 05:35:55 EDT (Wed, 05 Oct 2011)
@@ -13,8 +13,6 @@
 
 #include <boost/test/unit_test.hpp>
 #include <boost/test/unit_test_log.hpp>
-#include <boost/test/test_case_template.hpp>
-
 
 template<typename T>
 struct string_type_name;
@@ -52,21 +50,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));
@@ -91,7 +89,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 */
 
@@ -119,13 +117,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));


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