|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r74043 - sandbox/big_number/libs/math/test
From: john_at_[hidden]
Date: 2011-08-24 07:57:52
Author: johnmaddock
Date: 2011-08-24 07:57:52 EDT (Wed, 24 Aug 2011)
New Revision: 74043
URL: http://svn.boost.org/trac/boost/changeset/74043
Log:
Add test cases for expression-template used in boolean context.
Text files modified:
sandbox/big_number/libs/math/test/test_arithmetic.cpp | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
Modified: sandbox/big_number/libs/math/test/test_arithmetic.cpp
==============================================================================
--- sandbox/big_number/libs/math/test/test_arithmetic.cpp (original)
+++ sandbox/big_number/libs/math/test/test_arithmetic.cpp 2011-08-24 07:57:52 EDT (Wed, 24 Aug 2011)
@@ -680,6 +680,15 @@
{
BOOST_ERROR("Unexpected zero result");
}
+ if(a + b){}
+ else
+ {
+ BOOST_ERROR("Unexpected zero result");
+ }
+ if(b - 2)
+ {
+ BOOST_ERROR("Unexpected non-zero result");
+ }
}
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