|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r55097 - trunk/libs/units/test
From: steven_at_[hidden]
Date: 2009-07-22 17:59:15
Author: steven_watanabe
Date: 2009-07-22 17:59:15 EDT (Wed, 22 Jul 2009)
New Revision: 55097
URL: http://svn.boost.org/trac/boost/changeset/55097
Log:
Loosen requirements on signbit to 0/nonzero instead of 0/1
Text files modified:
trunk/libs/units/test/test_cmath.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Modified: trunk/libs/units/test/test_cmath.cpp
==============================================================================
--- trunk/libs/units/test/test_cmath.cpp (original)
+++ trunk/libs/units/test/test_cmath.cpp 2009-07-22 17:59:15 EDT (Wed, 22 Jul 2009)
@@ -137,7 +137,7 @@
BOOST_CHECK((bu::round)(E4 - 0.00000000001 * bu::joules) == -3.0*bu::joules);
BOOST_CHECK((bu::round)(E5 + 0.00000000001 * bu::joules) == 3.0*bu::joules);
- BOOST_CHECK((bu::signbit)(E4) == 1);
+ BOOST_CHECK((bu::signbit)(E4) != 0);
BOOST_CHECK((bu::signbit)(E5) == 0);
BOOST_CHECK((bu::trunc)(E4) == -2.0*bu::joules);
BOOST_CHECK((bu::trunc)(E5) == 2.0*bu::joules);
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