Boost logo

Boost-Commit :

From: john_at_[hidden]
Date: 2007-11-05 07:08:40


Author: johnmaddock
Date: 2007-11-05 07:08:39 EST (Mon, 05 Nov 2007)
New Revision: 40781
URL: http://svn.boost.org/trac/boost/changeset/40781

Log:
Changed test so that input values are exact binary values to fix failure at float precision.
Text files modified:
   trunk/libs/math/test/asinh_test.hpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/libs/math/test/asinh_test.hpp
==============================================================================
--- trunk/libs/math/test/asinh_test.hpp (original)
+++ trunk/libs/math/test/asinh_test.hpp 2007-11-05 07:08:39 EST (Mon, 05 Nov 2007)
@@ -47,9 +47,9 @@
     BOOST_MESSAGE("Testing asinh in the real domain for "
         << string_type_name<T>::_() << ".");
     
- for (int i = 0; i <= 100; i++)
+ for (int i = 0; i <= 200; i++)
     {
- T x = static_cast<T>(i-50)/static_cast<T>(5);
+ T x = static_cast<T>(i-80)/static_cast<T>(4);
         
         BOOST_CHECK_PREDICATE(::std::less_equal<T>(),
             (asinh_error_evaluator(x))


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