Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r56326 - sandbox/explore/libs/explore/test
From: jeff_at_[hidden]
Date: 2009-09-20 16:48:25


Author: jefffaust
Date: 2009-09-20 16:48:24 EDT (Sun, 20 Sep 2009)
New Revision: 56326
URL: http://svn.boost.org/trac/boost/changeset/56326

Log:
Add test for get_cols.
Text files modified:
   sandbox/explore/libs/explore/test/columnated.cpp | 4 ++++
   1 files changed, 4 insertions(+), 0 deletions(-)

Modified: sandbox/explore/libs/explore/test/columnated.cpp
==============================================================================
--- sandbox/explore/libs/explore/test/columnated.cpp (original)
+++ sandbox/explore/libs/explore/test/columnated.cpp 2009-09-20 16:48:24 EDT (Sun, 20 Sep 2009)
@@ -40,6 +40,8 @@
         vi.push_back(i);
     }
 
+ BOOST_CHECK_EQUAL(get_cols(str_out), 0);
+
     str_out << cols(3) << start(str_to<C>("")) << boost::explore::end(str_to<C>("")) << vi;
 
     BOOST_CHECK_EQUAL(output(str_out),
@@ -52,6 +54,8 @@
 
     str_out << cols(3) << item_width(5) << start(str_to<C>("")) << boost::explore::end(str_to<C>("")) << vi;
 
+ BOOST_CHECK_EQUAL(get_cols(str_out), 3);
+
     BOOST_CHECK_EQUAL(output(str_out),
         " 0, 1, 2, \n"
         " 3, 4, 5, \n"


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