Boost logo

Boost-Commit :

From: jefffaust_at_[hidden]
Date: 2007-05-24 00:02:03


Author: jefffaust
Date: 2007-05-24 00:02:03 EDT (Thu, 24 May 2007)
New Revision: 4220
URL: http://svn.boost.org/trac/boost/changeset/4220

Log:
Print tuples as tuples, not as containers. This is certainly what streaming should do. Is it also true for print()? I think so.

Text files modified:
   sandbox/explore/libs/explore/test/boost_tuple.cpp | 9 +++++++--
   1 files changed, 7 insertions(+), 2 deletions(-)

Modified: sandbox/explore/libs/explore/test/boost_tuple.cpp
==============================================================================
--- sandbox/explore/libs/explore/test/boost_tuple.cpp (original)
+++ sandbox/explore/libs/explore/test/boost_tuple.cpp 2007-05-24 00:02:03 EDT (Thu, 24 May 2007)
@@ -22,7 +22,10 @@
 
     boost::tuples::tuple<int, double> t(1, 3.14);
     explore::print(t, str_out);
- BOOST_CHECK_EQUAL(str_out.str(), "[1, 3.14]");
+
+ // I think things that already have a way to print should not change
+ //BOOST_CHECK_EQUAL(str_out.str(), "[1, 3.14]");
+ BOOST_CHECK_EQUAL(str_out.str(), "(1 3.14)");
 }
 
 BOOST_AUTO_TEST_CASE( basic_tuple_stream_test )
@@ -32,5 +35,7 @@
 
     boost::tuples::tuple<int, double> t(1, 3.14);
     str_out << t;
- BOOST_CHECK_EQUAL(str_out.str(), "[1, 3.14]");
+ // I think things that already have a way to print should not change
+ //BOOST_CHECK_EQUAL(str_out.str(), "[1, 3.14]");
+ BOOST_CHECK_EQUAL(str_out.str(), "(1 3.14)");
 }


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