Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r60657 - trunk/libs/random/test
From: steven_at_[hidden]
Date: 2010-03-16 17:22:29


Author: steven_watanabe
Date: 2010-03-16 17:22:29 EDT (Tue, 16 Mar 2010)
New Revision: 60657
URL: http://svn.boost.org/trac/boost/changeset/60657

Log:
Add some extra printing to make it easier to trace failures.
Text files modified:
   trunk/libs/random/test/instantiate.cpp | 4 ++++
   1 files changed, 4 insertions(+), 0 deletions(-)

Modified: trunk/libs/random/test/instantiate.cpp
==============================================================================
--- trunk/libs/random/test/instantiate.cpp (original)
+++ trunk/libs/random/test/instantiate.cpp 2010-03-16 17:22:29 EDT (Tue, 16 Mar 2010)
@@ -50,6 +50,7 @@
 template<class URNG, class Dist>
 void instantiate_dist(URNG& urng, const char * name, const Dist& dist)
 {
+ std::cout << "Testing " << name << std::endl;
   // this makes a copy of urng
   boost::variate_generator<URNG, Dist> gen(urng, dist);
 
@@ -115,6 +116,7 @@
 template<class URNG, class RealType>
 void instantiate_real_dist(URNG& urng, RealType /* ignored */)
 {
+ std::cout << "Testing real distributions with " << typeid(RealType).name() << std::endl;
   instantiate_dist(urng, "uniform_01",
                    boost::uniform_01<RealType>());
   instantiate_dist(urng, "uniform_real",
@@ -278,6 +280,8 @@
 #ifndef BOOST_RANDOM_NO_STREAM_OPERATORS
   // Streamable concept not supported for broken compilers
 
+ std::cout << "Testing stream operators" << std::endl;
+
   // advance a little so that state is relatively arbitrary
   for(int i = 0; i < 9307; ++i)
     urng();


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