Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r71471 - in sandbox/assign_v2/libs/assign/v2/test: . option
From: erwann.rogard_at_[hidden]
Date: 2011-04-24 21:53:12


Author: e_r
Date: 2011-04-24 21:53:12 EDT (Sun, 24 Apr 2011)
New Revision: 71471
URL: http://svn.boost.org/trac/boost/changeset/71471

Log:
upd assign_v2
Text files modified:
   sandbox/assign_v2/libs/assign/v2/test/deque.cpp | 76 ++++++++++++++++++++--------------------
   sandbox/assign_v2/libs/assign/v2/test/option/iterate.cpp | 44 +++++++++++-----------
   2 files changed, 60 insertions(+), 60 deletions(-)

Modified: sandbox/assign_v2/libs/assign/v2/test/deque.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/deque.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/deque.cpp 2011-04-24 21:53:12 EDT (Sun, 24 Apr 2011)
@@ -29,14 +29,14 @@
         {
             //[test_deque_str_literal
             typedef as2::result_of::deque<char*>::type C;
-
+
             C deque = as2::deque<char*>( "x" )( "y" )( "z" );
-
- std::deque<std::string> benchmark;
- benchmark.push_back( "x" );
- benchmark.push_back( "y" );
+
+ std::deque<std::string> benchmark;
+ benchmark.push_back( "x" );
+ benchmark.push_back( "y" );
             benchmark.push_back( "z" );
-
+
             BOOST_ASSIGN_V2_CHECK( boost::range::equal( benchmark, deque ) );
             //]
         }
@@ -59,30 +59,30 @@
             BOOST_ASSIGN_V2_CHECK( cont1.empty() );
 
             cont1( x, 3 )( y )( z, 3, 3 )( "qux" );
-
- BOOST_ASSIGN_V2_CHECK( boost::range::equal( benchmark, cont1 ) );
-
+
+ BOOST_ASSIGN_V2_CHECK( boost::range::equal( benchmark, cont1 ) );
+
             C cont2 = as2::deque<word_>( x, 3 )( y )( z, 3, 3 )( "qux" );
-
- BOOST_ASSIGN_V2_CHECK( boost::range::equal( benchmark, cont2 ) );
+
+ BOOST_ASSIGN_V2_CHECK( boost::range::equal( benchmark, cont2 ) );
             //]
         }
         {
             //[test_csv_deque_str_literal
             typedef as2::result_of::csv_deque<const char[2]>::type C1;
             typedef as2::result_of::csv_deque<std::string>::type C2;
-
- BOOST_MPL_ASSERT(( is_same<C1, as2::result_of::deque<char*>::type> ));
- BOOST_MPL_ASSERT(( is_same<C2, as2::result_of::deque<std::string>::type> ));
-
- C1 deque1 = as2::csv_deque( "x", "y", "z" );
- C2 deque2 = as2::csv_deque<std::string>( "x", "y", "z" );
-
- std::deque<std::string> benchmark;
- benchmark.push_back( "x" );
- benchmark.push_back( "y" );
+
+ BOOST_MPL_ASSERT(( boost::is_same<C1, as2::result_of::deque<char*>::type> ));
+ BOOST_MPL_ASSERT(( boost::is_same<C2, as2::result_of::deque<std::string>::type> ));
+
+ C1 deque1 = as2::csv_deque( "x", "y", "z" );
+ C2 deque2 = as2::csv_deque<std::string>( "x", "y", "z" );
+
+ std::deque<std::string> benchmark;
+ benchmark.push_back( "x" );
+ benchmark.push_back( "y" );
             benchmark.push_back( "z" );
-
+
             BOOST_ASSIGN_V2_CHECK( boost::range::equal( benchmark, deque1 ) );
             BOOST_ASSIGN_V2_CHECK( boost::range::equal( benchmark, deque2 ) );
             //]
@@ -91,28 +91,28 @@
             //[test_csv_deque_str
             typedef std::string T;
             typedef as2::result_of::csv_deque<T>::type C;
-
- BOOST_MPL_ASSERT(( is_same<C, as2::result_of::deque<std::string>::type> ));
-
- C deque = as2::csv_deque<T>( "x", "y", "z" );
-
- std::deque<std::string> benchmark;
- benchmark.push_back( "x" );
- benchmark.push_back( "y" );
+
+ BOOST_MPL_ASSERT(( boost::is_same<C, as2::result_of::deque<std::string>::type> ));
+
+ C deque = as2::csv_deque<T>( "x", "y", "z" );
+
+ std::deque<std::string> benchmark;
+ benchmark.push_back( "x" );
+ benchmark.push_back( "y" );
             benchmark.push_back( "z" );
-
+
             BOOST_ASSIGN_V2_CHECK( boost::range::equal( benchmark, deque ) );
             //]
         }
         {
             //[test_csv_deque_ints
             typedef as2::result_of::csv_deque<int>::type C;
-
+
             BOOST_MPL_ASSERT(( boost::is_same<C, as2::result_of::deque<int>::type> ));
 
             C series1 = as2::csv_deque( 0, 1, 1, 2, 3, 5, 8 );
-
- std::deque<int> benchmark;
+
+ std::deque<int> benchmark;
             benchmark.push_back( 0 );
             benchmark.push_back( 1 );
             benchmark.push_back( 1 );
@@ -130,12 +130,12 @@
         }
         {
             //[test_csv_deque_converter
- typedef boost::array<int, 5> C; C const& ar = /*<<Notice unqualified>>*/converter(
+ typedef boost::array<int, 5> C; C const& ar = /*<<Notice unqualified>>*/converter(
                 as2::csv_deque( 1, 2, 3, 4, 5 )
             );
-
- BOOST_ASSIGN_V2_CHECK(
- boost::range::equal( ar, as2::csv_deque( 1, 2, 3, 4, 5 ) )
+
+ BOOST_ASSIGN_V2_CHECK(
+ boost::range::equal( ar, as2::csv_deque( 1, 2, 3, 4, 5 ) )
             );
             //]
         }

Modified: sandbox/assign_v2/libs/assign/v2/test/option/iterate.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/option/iterate.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/option/iterate.cpp 2011-04-24 21:53:12 EDT (Sun, 24 Apr 2011)
@@ -11,7 +11,7 @@
 #include <boost/array.hpp>
 #include <boost/assign/v2/detail/config/check.hpp>
 #include <boost/assign/v2/deque.hpp>
-#include <boost/assign/v2/option/modifier/iterate.hpp>
+#include <boost/assign/v2/option/modifier/iterate.hpp>
 #include <boost/assign/v2/include/csv_put.hpp>
 #include <boost/lambda/lambda.hpp>
 #include <boost/mpl/assert.hpp>
@@ -29,7 +29,7 @@
 
     void test()
     {
- namespace as2 = boost::assign::v2;
+ namespace as2 = boost::assign::v2;
         {
             //[test_option_iterate_meta
             typedef as2::functor_aux::iterate arg_;
@@ -39,27 +39,27 @@
             typedef as2::modifier_tag::iterate<arg_> tag1_;
             typedef as2::interpreter_aux::replace_modifier_tag<put_> meta2_;
             typedef ::boost::mpl::apply1<meta2_, tag1_>::type result2_;
- BOOST_MPL_ASSERT(( is_same<result1_, result2_> ));
+ BOOST_MPL_ASSERT(( boost::is_same<result1_, result2_> ));
             //]
         }
         {
             //[test_option_iterate_shifted
- typedef int T; boost::array<T, 10> alternating;
+ typedef int T; boost::array<T, 10> alternating;
             alternating[0] = -1; alternating[1] = +1;
- alternating[2] = -2;
+ alternating[2] = -2;
 
- int index = 3;
- as2::csv_put(
+ int index = 3;
+ as2::csv_put(
                 alternating
                 , as2::_iterate = boost::lambda::var( index )++
- , +2, -3, +3, -4, +4, -5, +5
+ , +2, -3, +3, -4, +4, -5, +5
             );
 
- BOOST_ASSIGN_V2_CHECK(
- boost::range::equal(
- alternating,
- as2::csv_deque( -1, +1, -2, +2, -3, +3, -4, +4, -5, +5 )
- )
+ BOOST_ASSIGN_V2_CHECK(
+ boost::range::equal(
+ alternating,
+ as2::csv_deque( -1, +1, -2, +2, -3, +3, -4, +4, -5, +5 )
+ )
             );
             //]
         }
@@ -72,7 +72,7 @@
             typedef as2::modifier_tag::iterate<arg_> tag1_;
             typedef as2:: interpreter_aux::replace_modifier_tag<put_> meta2_;
             typedef ::boost::mpl::apply1<meta2_, tag1_>::type result2_;
- BOOST_MPL_ASSERT(( is_same<result1_, result2_> ));
+ BOOST_MPL_ASSERT(( boost::is_same<result1_, result2_> ));
             //]
         }
         {
@@ -80,19 +80,19 @@
             as2::result_of::csv_deque<int>::type tmp = as2::csv_deque<int>
                 ( -1, +1, -2, as2::as_arg_list( std::list<int>( 7 ) ) );
 
- int index = 3;
+ int index = 3;
             BOOST_AUTO(
                 alternating ,
- (
- tmp % ( as2::_iterate = boost::lambda::var( index )++ )
+ (
+ tmp % ( as2::_iterate = boost::lambda::var( index )++ )
                 )( +2 )( -3 )( +3 )( -4 )( +4 )( -5 )( +5 )
             );
 
- BOOST_ASSIGN_V2_CHECK(
- boost::range::equal(
- alternating,
- as2::csv_deque( -1, +1, -2, +2, -3, +3, -4, +4, -5, +5 )
- )
+ BOOST_ASSIGN_V2_CHECK(
+ boost::range::equal(
+ alternating,
+ as2::csv_deque( -1, +1, -2, +2, -3, +3, -4, +4, -5, +5 )
+ )
             );
             //]
         }


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