Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r83329 - trunk/libs/math/test
From: john_at_[hidden]
Date: 2013-03-06 04:13:13


Author: johnmaddock
Date: 2013-03-06 04:13:10 EST (Wed, 06 Mar 2013)
New Revision: 83329
URL: http://svn.boost.org/trac/boost/changeset/83329

Log:
Don't mix Boost.Test with multiprecision types.
Text files modified:
   trunk/libs/math/test/test_tgamma_ratio.cpp | 17 +++++++++++++++++
   trunk/libs/math/test/test_tgamma_ratio.hpp | 4 ++++
   2 files changed, 21 insertions(+), 0 deletions(-)

Modified: trunk/libs/math/test/test_tgamma_ratio.cpp
==============================================================================
--- trunk/libs/math/test/test_tgamma_ratio.cpp (original)
+++ trunk/libs/math/test/test_tgamma_ratio.cpp 2013-03-06 04:13:10 EST (Wed, 06 Mar 2013)
@@ -140,6 +140,23 @@
       "to pass.</note>" << std::cout;
 #endif
    
+#ifndef BOOST_MATH_BUGGY_LARGE_FLOAT_CONSTANTS
+ test_spots(0.1F, "float");
+#endif
+ test_spots(0.1, "double");
+#ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
+ test_spots(0.1L, "long double");
+#ifndef BOOST_MATH_NO_REAL_CONCEPT_TESTS
+#if !BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x582))
+ test_spots(boost::math::concepts::real_concept(0.1), "real_concept");
+#endif
+#endif
+#else
+ std::cout << "<note>The long double tests have been disabled on this platform "
+ "either because the long double overloads of the usual math functions are "
+ "not available at all, or because they are too inaccurate for these tests "
+ "to pass.</note>" << std::cout;
+#endif
 }
 
 

Modified: trunk/libs/math/test/test_tgamma_ratio.hpp
==============================================================================
--- trunk/libs/math/test/test_tgamma_ratio.hpp (original)
+++ trunk/libs/math/test/test_tgamma_ratio.hpp 2013-03-06 04:13:10 EST (Wed, 06 Mar 2013)
@@ -116,7 +116,11 @@
 
    do_test_tgamma_ratio<T>(tgamma_ratio_data, name, "tgamma ratios");
 
+}
 
+template <class T>
+void test_spots(T, const char*)
+{
 #ifdef _MSC_VER
 # pragma warning(push)
 # pragma warning(disable:4127 4756)


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