Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r58611 - trunk/libs/random
From: steven_at_[hidden]
Date: 2009-12-31 17:15:26


Author: steven_watanabe
Date: 2009-12-31 17:15:26 EST (Thu, 31 Dec 2009)
New Revision: 58611
URL: http://svn.boost.org/trac/boost/changeset/58611

Log:
Try to get more information out of the failing tests.
Text files modified:
   trunk/libs/random/instantiate.cpp | 6 ++++--
   1 files changed, 4 insertions(+), 2 deletions(-)

Modified: trunk/libs/random/instantiate.cpp
==============================================================================
--- trunk/libs/random/instantiate.cpp (original)
+++ trunk/libs/random/instantiate.cpp 2009-12-31 17:15:26 EST (Thu, 31 Dec 2009)
@@ -138,9 +138,11 @@
     Converted c = static_cast<Converted>(t);
     if(static_cast<T>(c) == t) {
         URNG urng2(c);
- BOOST_CHECK_MESSAGE(urng == urng2, std::string("Testing seed constructor: ") + typeid(Converted).name());
+ std::ostringstream msg;
+ msg << "Testing seed: type " << typeid(Converted).name() << ", value " << c;
+ BOOST_CHECK_MESSAGE(urng == urng2, msg.str());
         urng2.seed(c);
- BOOST_CHECK(urng == urng2);
+ BOOST_CHECK_MESSAGE(urng == urng2, msg.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