Boost logo

Boost-Commit :

From: nesotto_at_[hidden]
Date: 2007-10-23 15:34:07


Author: nesotto
Date: 2007-10-23 15:34:06 EDT (Tue, 23 Oct 2007)
New Revision: 40374
URL: http://svn.boost.org/trac/boost/changeset/40374

Log:
added test for operator()
Text files modified:
   trunk/libs/range/test/iterator_range.cpp | 1 +
   trunk/libs/range/test/sub_range.cpp | 1 +
   2 files changed, 2 insertions(+), 0 deletions(-)

Modified: trunk/libs/range/test/iterator_range.cpp
==============================================================================
--- trunk/libs/range/test/iterator_range.cpp (original)
+++ trunk/libs/range/test/iterator_range.cpp 2007-10-23 15:34:06 EDT (Tue, 23 Oct 2007)
@@ -95,6 +95,7 @@
     BOOST_CHECK_EQUAL( cr.front(), 'h' );
     BOOST_CHECK_EQUAL( cr.back(), 'd' );
     BOOST_CHECK_EQUAL( cr[1], 'e' );
+ BOOST_CHECK_EQUAL( cr(1), 'e' );
 
     rrr = make_iterator_range( str, 1, -1 );
     BOOST_CHECK( rrr == as_literal("ello worl") );

Modified: trunk/libs/range/test/sub_range.cpp
==============================================================================
--- trunk/libs/range/test/sub_range.cpp (original)
+++ trunk/libs/range/test/sub_range.cpp 2007-10-23 15:34:06 EDT (Tue, 23 Oct 2007)
@@ -127,6 +127,7 @@
     BOOST_CHECK_EQUAL( cr.front(), 'h' );
     BOOST_CHECK_EQUAL( cr.back(), 'd' );
     BOOST_CHECK_EQUAL( cr[1], 'e' );
+ BOOST_CHECK_EQUAL( cr(1), 'e' );
 
     rrr = make_iterator_range( str, 1, -1 );
     BOOST_CHECK( rrr == as_literal("ello worl") );


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