Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r72513 - sandbox/assign_v2/libs/assign/v2/test/put
From: erwann.rogard_at_[hidden]
Date: 2011-06-09 11:40:24


Author: e_r
Date: 2011-06-09 11:40:23 EDT (Thu, 09 Jun 2011)
New Revision: 72513
URL: http://svn.boost.org/trac/boost/changeset/72513

Log:
upd assign_v2
Added:
   sandbox/assign_v2/libs/assign/v2/test/put/do_csv_put.cpp
      - copied unchanged from r72512, /sandbox/assign_v2/libs/assign/v2/test/put/delay_csv_put.cpp
   sandbox/assign_v2/libs/assign/v2/test/put/do_csv_put.h
      - copied unchanged from r72512, /sandbox/assign_v2/libs/assign/v2/test/put/delay_csv_put.h
   sandbox/assign_v2/libs/assign/v2/test/put/do_put.cpp
      - copied unchanged from r72512, /sandbox/assign_v2/libs/assign/v2/test/put/delay_put.cpp
   sandbox/assign_v2/libs/assign/v2/test/put/do_put.h
      - copied unchanged from r72512, /sandbox/assign_v2/libs/assign/v2/test/put/delay_put.h
Removed:
   sandbox/assign_v2/libs/assign/v2/test/put/delay_csv_put.cpp
   sandbox/assign_v2/libs/assign/v2/test/put/delay_csv_put.h
   sandbox/assign_v2/libs/assign/v2/test/put/delay_put.cpp
   sandbox/assign_v2/libs/assign/v2/test/put/delay_put.h

Deleted: sandbox/assign_v2/libs/assign/v2/test/put/delay_csv_put.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/put/delay_csv_put.cpp 2011-06-09 11:40:23 EDT (Thu, 09 Jun 2011)
+++ (empty file)
@@ -1,47 +0,0 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2011 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// Boost Software License, Version 1.0. (See accompanying file //
-// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) //
-//////////////////////////////////////////////////////////////////////////////
-#include <map>
-#include <boost/assign/v2/include/do_csv_put.hpp>
-#include <boost/assign/v2/support/config/check.hpp>
-#include <libs/assign/v2/test/put/do_csv_put.h>
-
-namespace test_assign_v2{
-namespace xxx_put{
-namespace xxx_do_csv_put{
-
- void test(){
- namespace as2 = boost::assign::v2;
-// TODO Allow CPP03
-#if BOOST_ASSIGN_V2_ENABLE_CPP0X
- // MAP
- {
- //[test_do_csv_put1
- typedef std::string month_;
- typedef int days_;
- std::map<month_, days_> q1, benchmark;
-
- benchmark[ "jan" ] = 31;
- benchmark[ "feb" ] = 28;
- benchmark[ "mar" ] = 31;
-
- BOOST_ASSIGN_V2_CHECK(
- boost::range::equal(
- benchmark,
- q1 | as2::do_csv_put<2>( "jan", 31, "feb", 28, "mar", 31 )
- )
- );
- //]
- }
-#endif
- }// test()
-
-}// xxx_do_put
-}// xxx_put
-}// xxx_test_assign

Deleted: sandbox/assign_v2/libs/assign/v2/test/put/delay_csv_put.h
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/put/delay_csv_put.h 2011-06-09 11:40:23 EDT (Thu, 09 Jun 2011)
+++ (empty file)
@@ -1,23 +0,0 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2011 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// Boost Software License, Version 1.0. (See accompanying file //
-// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) //
-//////////////////////////////////////////////////////////////////////////////
-#ifndef LIBS_ASSIGN_V2_TEST_PUT_DELAY_CSV_PUT_ER_2010_H
-#define LIBS_ASSIGN_V2_TEST_PUT_DELAY_CSV_PUT_ER_2010_H
-
-namespace test_assign_v2{
-namespace xxx_put{
-namespace xxx_do_csv_put{
-
- void test();
-
-}// xxx_do_csv_put
-}// xxx_put
-}// xxx_test_assign
-
-#endif

Deleted: sandbox/assign_v2/libs/assign/v2/test/put/delay_put.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/put/delay_put.cpp 2011-06-09 11:40:23 EDT (Thu, 09 Jun 2011)
+++ (empty file)
@@ -1,119 +0,0 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2011 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// Boost Software License, Version 1.0. (See accompanying file //
-// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) //
-//////////////////////////////////////////////////////////////////////////////
-#include <deque>
-#include <map>
-#include <string>
-
-#include <boost/assign/v2/include/csv_deque_basic.hpp>
-#include <boost/assign/v2/include/csv_deque_ext.hpp>
-#include <boost/assign/v2/include/do_put.hpp>
-#include <boost/assign/v2/support/config/check.hpp>
-#include <boost/assign/v2/support/config/enable_cpp0x.hpp>
-#include <boost/circular_buffer.hpp>
-#include <boost/range/algorithm/equal.hpp>
-
-#if BOOST_ASSIGN_V2_ENABLE_CPP0X
-#include <tuple>
-#else
-#include <boost/tuple/tuple.hpp>
-#endif
-
-#include <libs/assign/v2/test/put/do_put.h>
-
-namespace test_assign_v2{
-namespace xxx_put{
-namespace xxx_do_put{
-
- void test(){
-
- namespace as2 = boost::assign::v2;
- {
- //[test_do_put1
- boost::circular_buffer<int> cb(3);
-
- BOOST_ASSIGN_V2_CHECK(
- boost::range::equal(
- cb | as2::_do_put.for_each( as2::csv_deque(1 ,2, 3) )
- , as2::csv_deque(1, 2, 3)
- )
- );
-
- BOOST_ASSIGN_V2_CHECK(
- boost::range::equal(
- cb | as2::_do_put.for_each( as2::csv_deque( 4, 5 ) ),
- as2::csv_deque( 3, 4, 5 )
- )
- );
- //]
- }
- {
- //[test_do_put2
- typedef std::string month_; typedef int days_;
- typedef std::pair<month_, days_> p_;
-//<-
-#if BOOST_ASSIGN_V2_ENALBE_CPP0X
-//->
- typedef std::tuple<month_, days_> t_;
-//<-
-#else
- typedef boost::tuple<month_, days_> t_;
-#endif
-//->
- std::deque<p_> q1;
-
- BOOST_ASSIGN_V2_CHECK(
- boost::range::equal(
- q1 | as2::_do_put.for_each<2>(
- as2::csv_deque<t_, 2>(
- "jan", 31, "feb", 28, "mar", 31
- )
- ),
- as2::csv_deque(
- p_("jan", 31), p_("feb", 28), p_("mar", 31 )
- )
- )
- );
- //]
- }
- {
- //[test_do_put3
- typedef std::string month_;
- typedef int days_;
- std::map<month_, days_> q1, benchmark;
-
- benchmark[ "jan" ] = 31;
- benchmark[ "feb" ] = 28;
- benchmark[ "mar" ] = 31;
-//<-
-#if BOOST_ASSIGN_V2_ENABLE_CPP0X
-//->
- typedef std::tuple<const char (&)[4], int> t_;
-//<-
-#else
- typedef boost::tuple<const char (&)[4], int> t_;
-#endif
-//->
- BOOST_ASSIGN_V2_CHECK(
- boost::range::equal(
- q1 | as2::_do_put.for_each<2>(
- as2::csv_deque<t_, 2>(
- "jan", 31, "feb", 28, "mar", 31
- )
- ),
- benchmark
- )
- );
- //]
- }
- }// test()
-
-}// xxx_do_put
-}// xxx_put
-}// xxx_test_assign

Deleted: sandbox/assign_v2/libs/assign/v2/test/put/delay_put.h
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/put/delay_put.h 2011-06-09 11:40:23 EDT (Thu, 09 Jun 2011)
+++ (empty file)
@@ -1,23 +0,0 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2011 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// Boost Software License, Version 1.0. (See accompanying file //
-// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) //
-//////////////////////////////////////////////////////////////////////////////
-#ifndef LIBS_ASSIGN_V2_TEST_PUT_DELAY_PUT_ER_2010_H
-#define LIBS_ASSIGN_V2_TEST_PUT_DELAY_PUT_ER_2010_H
-
-namespace test_assign_v2{
-namespace xxx_put{
-namespace xxx_do_put{
-
- void test();
-
-}// xxx_do_put
-}// xxx_put
-}// xxx_test_assign
-
-#endif


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