Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r70811 - sandbox/assign_v2/libs/assign/v2/test/ref
From: erwann.rogard_at_[hidden]
Date: 2011-03-31 23:06:50


Author: e_r
Date: 2011-03-31 23:06:49 EDT (Thu, 31 Mar 2011)
New Revision: 70811
URL: http://svn.boost.org/trac/boost/changeset/70811

Log:
upd assign_v2
Text files modified:
   sandbox/assign_v2/libs/assign/v2/test/ref/array.cpp | 16 ++++++++++++----
   sandbox/assign_v2/libs/assign/v2/test/ref/csv_array.cpp | 10 ++++++++--
   sandbox/assign_v2/libs/assign/v2/test/ref/get.cpp | 4 +++-
   3 files changed, 23 insertions(+), 7 deletions(-)

Modified: sandbox/assign_v2/libs/assign/v2/test/ref/array.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/ref/array.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/ref/array.cpp 2011-03-31 23:06:49 EDT (Thu, 31 Mar 2011)
@@ -45,7 +45,8 @@
             //[test_ref_array_read
             typedef int const T;
             T w = 11, x = 72, y = 31, z = 48;
- as2::ref::nth_result_of::array<3, T>::type ar3 = as2::ref::array( w )( x )( y );
+ as2::ref::nth_result_of::array<3, T>::type ar3
+ = as2::ref::array( w )( x )( y );
             {
                 T& a = ar3.front(); T& b = ar3.back();
 
@@ -70,8 +71,14 @@
         }
         {
             //[test_ref_array_write
- typedef int T; T x, y, z; std::vector<T> r( 3 ); r[0] = 72; r[1] = 31; r[2] = 48;
- boost::copy( r,boost::begin( as2::ref::array( x )( y )( z ) | as2::ref::_get ) );
+ typedef int T; T x, y, z; std::vector<T> r( 3 );
+ r[0] = 1; r[1] = 10; r[2] = 100;
+ boost::copy(
+ r,
+ boost::begin(
+ as2::ref::array( x )( y )( z ) | as2::ref::_get
+ )
+ );
 
             BOOST_ASSIGN_V2_CHECK( x == r[0] );
             BOOST_ASSIGN_V2_CHECK( z == r[2] );
@@ -79,7 +86,8 @@
         }
         {
             //[test_ref_array_assign
- typedef int T; T x, y, z; as2::ref::array( x )( y )( z ).assign( -1 );
+ typedef int T; T x, y, z;
+ as2::ref::array( x )( y )( z ).assign( -1 );
 
             BOOST_ASSIGN_V2_CHECK( x == -1 );
             BOOST_ASSIGN_V2_CHECK( z == -1 );

Modified: sandbox/assign_v2/libs/assign/v2/test/ref/csv_array.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/ref/csv_array.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/ref/csv_array.cpp 2011-03-31 23:06:49 EDT (Thu, 31 Mar 2011)
@@ -70,7 +70,12 @@
             //[test_ref_csv_array_write
             typedef int T; T x, y, z;
             std::vector<T> r( 3 ); r[0] = 1; r[1] = 10; r[2] = 100;
- boost::copy( r,boost::begin( as2::ref::csv_array( x, y, z ) | as2::ref::_get ) );
+ boost::copy(
+ r,
+ boost::begin(
+ as2::ref::csv_array( x, y, z ) | as2::ref::_get
+ )
+ );
 
             BOOST_ASSIGN_V2_CHECK( x == r[0] );
             BOOST_ASSIGN_V2_CHECK( z == r[2] );
@@ -78,7 +83,8 @@
         }
         {
             //[test_ref_csv_array_assign
- int x, y, z; as2::ref::csv_array( x, y, z ).assign( -1 );
+ int x, y, z;
+ as2::ref::csv_array( x, y, z ).assign( -1 );
 
             BOOST_ASSIGN_V2_CHECK( x == -1 );
             BOOST_ASSIGN_V2_CHECK( z == -1 );

Modified: sandbox/assign_v2/libs/assign/v2/test/ref/get.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/ref/get.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/ref/get.cpp 2011-03-31 23:06:49 EDT (Thu, 31 Mar 2011)
@@ -33,7 +33,9 @@
         );
         boost::copy(
             as2::csv_deque( 314, 3141, 31415 ),
- boost::begin( ref_array | as2::ref::_get )
+ boost::begin(
+ ref_array | as2::ref::_get
+ )
         );
 
         BOOST_ASSIGN_V2_CHECK( x == 314 );


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