|
Boost-Commit : |
From: john_at_[hidden]
Date: 2007-11-07 06:50:02
Author: johnmaddock
Date: 2007-11-07 06:50:02 EST (Wed, 07 Nov 2007)
New Revision: 40881
URL: http://svn.boost.org/trac/boost/changeset/40881
Log:
Change test (again) so that the range of values tested matches original test: last change started testing more extreme input values, which caused regressions on Mac OS X.
Text files modified:
trunk/libs/math/test/asinh_test.hpp | 12 ++++++------
1 files changed, 6 insertions(+), 6 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-07 06:50:02 EST (Wed, 07 Nov 2007)
@@ -47,9 +47,9 @@
BOOST_MESSAGE("Testing asinh in the real domain for "
<< string_type_name<T>::_() << ".");
- for (int i = 0; i <= 200; i++)
+ for (int i = 0; i <= 80; i++)
{
- T x = static_cast<T>(i-80)/static_cast<T>(4);
+ T x = static_cast<T>(i-40)/static_cast<T>(4);
BOOST_CHECK_PREDICATE(::std::less_equal<T>(),
(asinh_error_evaluator(x))
@@ -63,12 +63,12 @@
BOOST_MESSAGE(" ");
BOOST_MESSAGE("asinh");
- for (int i = 0; i <= 100; i++)
+ for (int i = 0; i <= 80; i++)
{
- float xf = static_cast<float>(i-50)/static_cast<float>(5);
- double xd = static_cast<double>(i-50)/static_cast<double>(5);
+ float xf = static_cast<float>(i-40)/static_cast<float>(4);
+ double xd = static_cast<double>(i-40)/static_cast<double>(4);
long double xl =
- static_cast<long double>(i-50)/static_cast<long double>(5);
+ static_cast<long double>(i-40)/static_cast<long double>(4);
BOOST_MESSAGE( ::std::setw(15)
<< asinh_error_evaluator(xf)
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