Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r55029 - sandbox/numeric_adaptor/libs/numeric_adaptor/test
From: bruno.lalande_at_[hidden]
Date: 2009-07-19 13:31:54


Author: bruno.lalande
Date: 2009-07-19 13:31:53 EDT (Sun, 19 Jul 2009)
New Revision: 55029
URL: http://svn.boost.org/trac/boost/changeset/55029

Log:
Tests involving a non robust type now use a big epsilon.
Text files modified:
   sandbox/numeric_adaptor/libs/numeric_adaptor/test/test_heron.cpp | 5 +++--
   1 files changed, 3 insertions(+), 2 deletions(-)

Modified: sandbox/numeric_adaptor/libs/numeric_adaptor/test/test_heron.cpp
==============================================================================
--- sandbox/numeric_adaptor/libs/numeric_adaptor/test/test_heron.cpp (original)
+++ sandbox/numeric_adaptor/libs/numeric_adaptor/test/test_heron.cpp 2009-07-19 13:31:53 EDT (Sun, 19 Jul 2009)
@@ -32,10 +32,11 @@
 
 int test_main(int, char*[])
 {
+ double big_epsilon = 0.0001;
     double epsilon = 0.0000001;
 
- BOOST_CHECK_CLOSE(heron<float>(), 0.0, epsilon);
- BOOST_CHECK_CLOSE(heron<double>(), 0.32749053277825713, epsilon);
+ BOOST_CHECK_CLOSE(heron<float>(), 0.0, big_epsilon);
+ BOOST_CHECK_CLOSE(heron<double>(), 0.32749053277825713, big_epsilon);
 #if ! defined(_MSC_VER)
     BOOST_CHECK_CLOSE(heron<long double>(), 0.327490459921098, epsilon);
 #endif


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