|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r81622 - trunk/libs/multiprecision/test
From: john_at_[hidden]
Date: 2012-11-29 06:04:23
Author: johnmaddock
Date: 2012-11-29 06:04:22 EST (Thu, 29 Nov 2012)
New Revision: 81622
URL: http://svn.boost.org/trac/boost/changeset/81622
Log:
Add missing -= operator to tests.
Text files modified:
trunk/libs/multiprecision/test/test_cpp_int.cpp | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
Modified: trunk/libs/multiprecision/test/test_cpp_int.cpp
==============================================================================
--- trunk/libs/multiprecision/test/test_cpp_int.cpp (original)
+++ trunk/libs/multiprecision/test/test_cpp_int.cpp 2012-11-29 06:04:22 EST (Thu, 29 Nov 2012)
@@ -83,6 +83,7 @@
BOOST_CHECK_EQUAL((mpz_int(a)+=b).str(), (test_type(a1) += b1).str());
BOOST_CHECK_EQUAL((mpz_int(b)+=a).str(), (test_type(b1) += a1).str());
BOOST_CHECK_EQUAL(mpz_int(a-b).str(), test_type(a1 - b1).str());
+ BOOST_CHECK_EQUAL((mpz_int(a)-=b).str(), (test_type(a1) -= b1).str());
BOOST_CHECK_EQUAL(mpz_int(mpz_int(-a)+b).str(), test_type(test_type(-a1) + b1).str());
BOOST_CHECK_EQUAL(mpz_int(mpz_int(-a)-b).str(), test_type(test_type(-a1) - b1).str());
BOOST_CHECK_EQUAL(mpz_int(c * d).str(), test_type(c1 * d1).str());
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