Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r86716 - trunk/libs/math/test
From: john_at_[hidden]
Date: 2013-11-16 04:23:13


Author: johnmaddock
Date: 2013-11-16 04:23:13 EST (Sat, 16 Nov 2013)
New Revision: 86716
URL: http://svn.boost.org/trac/boost/changeset/86716

Log:
adjustments for GCC on Linux

Text files modified:
   trunk/libs/math/test/test_ldouble_simple.cpp | 2 +-
   trunk/libs/math/test/test_zeta.hpp | 2 +-
   2 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/libs/math/test/test_ldouble_simple.cpp
==============================================================================
--- trunk/libs/math/test/test_ldouble_simple.cpp Fri Nov 15 18:54:12 2013 (r86715)
+++ trunk/libs/math/test/test_ldouble_simple.cpp 2013-11-16 04:23:13 EST (Sat, 16 Nov 2013) (r86716)
@@ -24,7 +24,7 @@
    BOOST_CHECK_EQUAL((boost::math::changesign)(1.0L), -1.0L);
    BOOST_CHECK_EQUAL((boost::math::changesign)(-1.0L), 1.0L);
 
- BOOST_CHECK_EQUAL((boost::math::fpclassify)(1.0L), FP_NORMAL);
+ BOOST_CHECK_EQUAL((boost::math::fpclassify)(1.0L), (int)FP_NORMAL);
    BOOST_CHECK_EQUAL((boost::math::isnan)(1.0L), false);
    BOOST_CHECK_EQUAL((boost::math::isinf)(1.0L), false);
    BOOST_CHECK_EQUAL((boost::math::isnormal)(1.0L), true);

Modified: trunk/libs/math/test/test_zeta.hpp
==============================================================================
--- trunk/libs/math/test/test_zeta.hpp Fri Nov 15 18:54:12 2013 (r86715)
+++ trunk/libs/math/test/test_zeta.hpp 2013-11-16 04:23:13 EST (Sat, 16 Nov 2013) (r86716)
@@ -160,7 +160,7 @@
    BOOST_CHECK_EQUAL(::boost::math::zeta(static_cast<T>(-200)), static_cast<T>(0));
    if(std::numeric_limits<T>::max_exponent >= 1024)
    {
- BOOST_CHECK_CLOSE(::boost::math::zeta(static_cast<T>(-171)), static_cast<T>(1.28194898634822427378088228065956967928127061276520385040051e172L), tolerance * 10);
+ BOOST_CHECK_CLOSE(::boost::math::zeta(static_cast<T>(-171)), static_cast<T>(1.28194898634822427378088228065956967928127061276520385040051e172L), tolerance * 200);
       BOOST_CHECK_CLOSE(::boost::math::zeta(static_cast<T>(-171.5)), static_cast<T>(4.73930233055054501360661283732419615206017226423071857829425e172L), tolerance * 1000);
       BOOST_CHECK_CLOSE(::boost::math::zeta(static_cast<T>(-172.5)), static_cast<T>(-1.30113885243175165293156588942160456456090687128236657847674e174L), tolerance * 100);
       BOOST_CHECK_CLOSE(::boost::math::zeta(static_cast<T>(-173)), static_cast<T>(-9.66241211085609184243169684777934860657838245104636064505158e174L), tolerance * 100);


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