Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r69771 - sandbox/SOC/2010/phoenix3/libs/phoenix/test/scope
From: thom.heller_at_[hidden]
Date: 2011-03-09 09:05:26


Author: theller
Date: 2011-03-09 09:05:24 EST (Wed, 09 Mar 2011)
New Revision: 69771
URL: http://svn.boost.org/trac/boost/changeset/69771

Log:
fixed error in the dynamic_scope test
Text files modified:
   sandbox/SOC/2010/phoenix3/libs/phoenix/test/scope/dynamic_tests.cpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: sandbox/SOC/2010/phoenix3/libs/phoenix/test/scope/dynamic_tests.cpp
==============================================================================
--- sandbox/SOC/2010/phoenix3/libs/phoenix/test/scope/dynamic_tests.cpp (original)
+++ sandbox/SOC/2010/phoenix3/libs/phoenix/test/scope/dynamic_tests.cpp 2011-03-09 09:05:24 EST (Wed, 09 Mar 2011)
@@ -58,7 +58,7 @@
 
                 (std::cout << clos.message << clos.num << ", " << clos.real << '\n')();
                 BOOST_TEST(clos.num() == -1);
- BOOST_TEST(clos.real() == 3.14);
+ BOOST_TEST(std::fabs(clos.real()- 3.14) < 1.e-8);
                 BOOST_TEST(clos.message() == "Direct Init ");
             }
 


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