Boost logo

Boost-Commit :

From: jared_at_[hidden]
Date: 2007-05-23 00:15:30


Author: jared
Date: 2007-05-23 00:15:29 EDT (Wed, 23 May 2007)
New Revision: 4205
URL: http://svn.boost.org/trac/boost/changeset/4205

Log:
Streams had snuck into some of the print tests.

Text files modified:
   sandbox/explore/libs/explore/test/simple_types.cpp | 6 +++---
   1 files changed, 3 insertions(+), 3 deletions(-)

Modified: sandbox/explore/libs/explore/test/simple_types.cpp
==============================================================================
--- sandbox/explore/libs/explore/test/simple_types.cpp (original)
+++ sandbox/explore/libs/explore/test/simple_types.cpp 2007-05-23 00:15:29 EDT (Wed, 23 May 2007)
@@ -63,7 +63,7 @@
         std::stringstream str_out;
         float f = 1.234f;
         
- str_out << std::setprecision( 4) << explore::container_format() % f;
+ explore::print(f, str_out);
         BOOST_CHECK_EQUAL(str_out.str(), "1.234");
         
         BOOST_CHECK_MESSAGE(false, "Test min precision");
@@ -87,7 +87,7 @@
         std::stringstream str_out;
         double d = 1.2341234f;
         
- str_out << std::setprecision(7) << explore::container_format() % d;
+ explore::print(d, str_out);
         BOOST_CHECK_EQUAL(str_out.str(), "1.234123");
         
         BOOST_CHECK_MESSAGE(false, "Test min precision");
@@ -111,7 +111,7 @@
         std::stringstream str_out;
         bool b = true;
         
- str_out << std::boolalpha << explore::container_format() %b;
+ explore::print(b, str_out);
         BOOST_CHECK_EQUAL(str_out.str(), "true");
         
         str_out.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