Boost logo

Boost-Commit :

From: dannyh_at_[hidden]
Date: 2007-05-26 22:45:22


Author: dannyh
Date: 2007-05-26 22:45:22 EDT (Sat, 26 May 2007)
New Revision: 4300
URL: http://svn.boost.org/trac/boost/changeset/4300

Log:
changed after fix to pointer printing and support for ranges.

Text files modified:
   sandbox/explore/libs/explore/test/simple_types.cpp | 8 ++++----
   sandbox/explore/libs/explore/test/std_vector.cpp | 12 ++++++------
   2 files changed, 10 insertions(+), 10 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-26 22:45:22 EDT (Sat, 26 May 2007)
@@ -32,15 +32,15 @@
     
     str_out.str("");
     
- pi = &i;
- explore::print(pi, str_out);
+ //pi = &i;
+ //explore::print(pi, str_out);
     // technically, we should force this to be true, though
     // it is highly unlikely to be false. Otherwise this test is only
     // telling you whether the following is even valid.
- BOOST_CHECK(0 != boost::lexical_cast<std::string>((long)pi).compare("123"));
+ //BOOST_CHECK(0 != boost::lexical_cast<std::string>((long)pi).compare("123"));
 
     // this is not a useful test. pointers should print out as pointers.
- BOOST_CHECK_EQUAL(str_out.str(), "123");
+ //BOOST_CHECK_EQUAL(str_out.str(), "123");
 }
 
 BOOST_AUTO_TEST_CASE( int_stream_test )

Modified: sandbox/explore/libs/explore/test/std_vector.cpp
==============================================================================
--- sandbox/explore/libs/explore/test/std_vector.cpp (original)
+++ sandbox/explore/libs/explore/test/std_vector.cpp 2007-05-26 22:45:22 EDT (Sat, 26 May 2007)
@@ -42,10 +42,10 @@
     explore::print(vi.begin(), ++(++vi.begin()), str_out);
     BOOST_CHECK_EQUAL(str_out.str(), "[1, 2]");
         
- //str_out.str("");
+ str_out.str("");
         
- //explore::print(boost::make_iterator_range(vi.begin(), ++(++vi.begin())), str_out);
- //BOOST_CHECK_EQUAL(str_out.str(), "[1, 2]");
+ explore::print(boost::make_iterator_range(vi.begin(), ++(++vi.begin())), str_out);
+ BOOST_CHECK_EQUAL(str_out.str(), "[1, 2]");
 }
 
 BOOST_AUTO_TEST_CASE( basic_vector_stream_test )
@@ -112,10 +112,10 @@
     explore::print(vvi.begin(), ++(++vvi.begin()), str_out);
     BOOST_CHECK_EQUAL(str_out.str(), "[[1, 2, 3], [1, 2, 3]]");
         
- //str_out.str("");
+ str_out.str("");
         
- //explore::print(boost::make_iterator_range(vvi.begin(), ++(++vvi.begin())), str_out);
- //BOOST_CHECK_EQUAL(str_out.str(), "[[1, 2, 3], [1, 2, 3]]");
+ explore::print(boost::make_iterator_range(vvi.begin(), ++(++vvi.begin())), str_out);
+ BOOST_CHECK_EQUAL(str_out.str(), "[[1, 2, 3], [1, 2, 3]]");
 }
 
 BOOST_AUTO_TEST_CASE( vector_in_vector_stream_test )


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