|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r70327 - in sandbox/assign_v2/libs/assign/v2/test: . modifier put/pipe/modifier unit_testing utility
From: erwann.rogard_at_[hidden]
Date: 2011-03-21 13:55:34
Author: e_r
Date: 2011-03-21 13:55:33 EDT (Mon, 21 Mar 2011)
New Revision: 70327
URL: http://svn.boost.org/trac/boost/changeset/70327
Log:
upd assign_v2
Text files modified:
sandbox/assign_v2/libs/assign/v2/test/modifier.cpp | 31 --------------
sandbox/assign_v2/libs/assign/v2/test/modifier.h | 22 ----------
sandbox/assign_v2/libs/assign/v2/test/modifier/deduce.cpp | 82 ---------------------------------------
sandbox/assign_v2/libs/assign/v2/test/modifier/deduce.h | 24 -----------
sandbox/assign_v2/libs/assign/v2/test/modifier/iterate.cpp | 3
sandbox/assign_v2/libs/assign/v2/test/modifier/lookup.cpp | 3
sandbox/assign_v2/libs/assign/v2/test/modifier/repeat.cpp | 5 +
sandbox/assign_v2/libs/assign/v2/test/modifier/standard.cpp | 3
sandbox/assign_v2/libs/assign/v2/test/put/pipe/modifier/iterate.cpp | 3
sandbox/assign_v2/libs/assign/v2/test/put/pipe/modifier/lookup.cpp | 3
sandbox/assign_v2/libs/assign/v2/test/put/pipe/modifier/repeat.cpp | 3
sandbox/assign_v2/libs/assign/v2/test/put/pipe/modifier/standard.cpp | 3
sandbox/assign_v2/libs/assign/v2/test/unit_testing/fun.cpp | 32 ---------------
sandbox/assign_v2/libs/assign/v2/test/unit_testing/modifier.cpp | 41 -------------------
sandbox/assign_v2/libs/assign/v2/test/utility/csv.cpp | 2
15 files changed, 24 insertions(+), 236 deletions(-)
Modified: sandbox/assign_v2/libs/assign/v2/test/modifier.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/modifier.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/modifier.cpp 2011-03-21 13:55:33 EDT (Mon, 21 Mar 2011)
@@ -1,30 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 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 <libs/assign/v2/test/modifier/deduce.h>
-#include <libs/assign/v2/test/modifier/iterate.h>
-#include <libs/assign/v2/test/modifier/lookup.h>
-#include <libs/assign/v2/test/modifier/repeat.h>
-#include <libs/assign/v2/test/modifier/standard.h>
-#include <libs/assign/v2/test/modifier.h>
-
-namespace test_assign_v2{
-namespace xxx_modifier{
-
- void test(){
- xxx_deduce::test();
- xxx_iterate::test();
- xxx_lookup::test();
- xxx_repeat::test();
- xxx_standard::test();
- }
-
-}// xxx_modifier
-}// xxx_test_assign
-
+// TODO remove file
\ No newline at end of file
Modified: sandbox/assign_v2/libs/assign/v2/test/modifier.h
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/modifier.h (original)
+++ sandbox/assign_v2/libs/assign/v2/test/modifier.h 2011-03-21 13:55:33 EDT (Mon, 21 Mar 2011)
@@ -1,21 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 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_MODIFIER_ER_2010_H
-#define LIBS_ASSIGN_V2_TEST_MODIFIER_ER_2010_H
-
-namespace test_assign_v2{
-namespace xxx_modifier{
-
- void test();
-
-}// xxx_modifier
-}// xxx_test_assign
-
-#endif // LIBS_ASSIGN_V2_TEST_MODIFIER_ER_2010_H
+// TODO remove file
\ No newline at end of file
Modified: sandbox/assign_v2/libs/assign/v2/test/modifier/deduce.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/modifier/deduce.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/modifier/deduce.cpp 2011-03-21 13:55:33 EDT (Mon, 21 Mar 2011)
@@ -1,81 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 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 <list>
-#include <map>
-#include <queue>
-#include <set>
-#include <stack>
-#include <vector>
-#include <string>
-#include <boost/array.hpp>
-
-#include <boost/type_traits/is_same.hpp>
-#include <boost/ptr_container/ptr_array.hpp>
-#include <boost/ptr_container/ptr_deque.hpp>
-#include <boost/ptr_container/ptr_list.hpp>
-#include <boost/ptr_container/ptr_vector.hpp>
-
-#include <boost/assign/v2/modifier/deduce.hpp>
-#include <libs/assign/v2/test/modifier/deduce.h>
-
-namespace test_assign_v2{
-namespace xxx_modifier{
-namespace xxx_deduce{
-
- // --User may skip this file-- //
- // It checks internal details. //
- // --------------------------- //
-
- void test()
- {
- using namespace boost;
- namespace as2 = assign::v2;
-
- {
- typedef as2::modifier_tag::push_back answer_;
- as2::aux::check_deduce<std::deque<int>, answer_>();
- as2::aux::check_deduce<std::list<int>, answer_>();
- as2::aux::check_deduce<std::vector<int>, answer_>();
-
- as2::aux::check_deduce<boost::ptr_deque<int>, answer_>();
- as2::aux::check_deduce<boost::ptr_list<int>, answer_>();
- as2::aux::check_deduce<boost::ptr_vector<int>, answer_>();
- }
- {
- typedef as2::modifier_tag::iterate<> answer_;
- as2::aux::check_deduce<boost::array<int, 1>, answer_>();
- as2::aux::check_deduce<boost::ptr_array<int, 1>, answer_>();
- }
- {
- typedef as2::modifier_tag::push answer_;
- as2::aux::check_deduce<std::queue<int>, answer_>();
- as2::aux::check_deduce<std::stack<int>, answer_>();
- }
- {
- typedef as2::modifier_tag::insert answer_;
- as2::aux::check_deduce<std::set<int>, answer_>();
- typedef std::string str_;
- as2::aux::check_deduce<std::map<str_, int>, answer_>();
- }
- {
- //[put_deduce_map
- typedef std::map<std::string, int> C;
- typedef as2::aux::deduce_modifier_tag<C>::type found_;
- typedef as2::modifier_tag::insert answer_;
- BOOST_MPL_ASSERT(( boost::is_same<found_, answer_> ));
- //]
- }
- }
-
-
-}// xxx_deduce
-}// xxx_modifier
-}// test_assign_v2
+// TODO remove file
Modified: sandbox/assign_v2/libs/assign/v2/test/modifier/deduce.h
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/modifier/deduce.h (original)
+++ sandbox/assign_v2/libs/assign/v2/test/modifier/deduce.h 2011-03-21 13:55:33 EDT (Mon, 21 Mar 2011)
@@ -1,23 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 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_MODIFIER_DEDUCE_ER_2010_H
-#define LIBS_ASSIGN_V2_TEST_MODIFIER_DEDUCE_ER_2010_H
-
-namespace test_assign_v2{
-namespace xxx_modifier{
-namespace xxx_deduce{
-
- void test();
-
-}// xxx_deduce
-}// xxx_modifier
-}// xxx_test_assign
-
-#endif // LIBS_ASSIGN_V2_TEST_MODIFIER_DEDUCE_ER_2010_H
+// TODO remove file
\ No newline at end of file
Modified: sandbox/assign_v2/libs/assign/v2/test/modifier/iterate.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/modifier/iterate.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/modifier/iterate.cpp 2011-03-21 13:55:33 EDT (Mon, 21 Mar 2011)
@@ -10,8 +10,9 @@
#include <boost/array.hpp>
#include <boost/assign/v2/detail/config/check.hpp>
-#include <boost/assign/v2/modifier/iterate.hpp>
#include <boost/assign/v2/put/put.hpp>
+// Options come next
+#include <boost/assign/v2/optional/iterate.hpp>
#include <boost/assign/v2/deque.hpp>
#include <boost/lambda/lambda.hpp>
#include <boost/lambda/bind.hpp>
Modified: sandbox/assign_v2/libs/assign/v2/test/modifier/lookup.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/modifier/lookup.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/modifier/lookup.cpp 2011-03-21 13:55:33 EDT (Mon, 21 Mar 2011)
@@ -13,8 +13,9 @@
#include <boost/assign/v2/detail/config/check.hpp>
#include <boost/assign/v2/fun.hpp>
-#include <boost/assign/v2/modifier/lookup.hpp>
#include <boost/assign/v2/put/put.hpp>
+// Options come next
+#include <boost/assign/v2/optional/lookup.hpp>
#include <boost/assign/v2/deque.hpp>
#include <boost/lambda/lambda.hpp>
#include <boost/mpl/assert.hpp>
Modified: sandbox/assign_v2/libs/assign/v2/test/modifier/repeat.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/modifier/repeat.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/modifier/repeat.cpp 2011-03-21 13:55:33 EDT (Mon, 21 Mar 2011)
@@ -10,9 +10,10 @@
#include <vector>
#include <boost/typeof/typeof.hpp>
#include <boost/assign/v2/detail/config/check.hpp>
-#include <boost/assign/v2/modifier/push_front.hpp>
-#include <boost/assign/v2/modifier/repeat.hpp>
#include <boost/assign/v2/put/put.hpp>
+// Options come next
+#include <boost/assign/v2/optional/push_front.hpp>
+#include <boost/assign/v2/optional/repeat.hpp>
#include <boost/assign/v2/deque.hpp>
#include <boost/range/algorithm/equal.hpp>
#include <libs/assign/v2/test/modifier/repeat.h>
Modified: sandbox/assign_v2/libs/assign/v2/test/modifier/standard.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/modifier/standard.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/modifier/standard.cpp 2011-03-21 13:55:33 EDT (Mon, 21 Mar 2011)
@@ -13,9 +13,10 @@
#include <set>
#include <string>
#include <boost/assign/v2/detail/config/check.hpp>
-#include <boost/assign/v2/modifier/standard.hpp>
#include <boost/assign/v2/put/put.hpp>
#include <boost/assign/v2/deque.hpp>
+// Options come next
+#include <boost/assign/v2/optional/standard.hpp>
#include <boost/range/begin.hpp>
#include <boost/range/end.hpp>
#include <boost/range/algorithm/equal.hpp>
Modified: sandbox/assign_v2/libs/assign/v2/test/put/pipe/modifier/iterate.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/put/pipe/modifier/iterate.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/put/pipe/modifier/iterate.cpp 2011-03-21 13:55:33 EDT (Mon, 21 Mar 2011)
@@ -9,9 +9,10 @@
//////////////////////////////////////////////////////////////////////////////
#include <boost/assign/v2/detail/config/check.hpp>
-#include <boost/assign/v2/modifier/iterate.hpp>
#include <boost/assign/v2/put/pipe/csv_put.hpp>
#include <boost/assign/v2/deque/csv_deque.hpp>
+// Options come next
+#include <boost/assign/v2/optional/iterate.hpp>
#include <boost/array.hpp>
#include <boost/lambda/lambda.hpp>
#include <boost/range/algorithm/equal.hpp>
Modified: sandbox/assign_v2/libs/assign/v2/test/put/pipe/modifier/lookup.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/put/pipe/modifier/lookup.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/put/pipe/modifier/lookup.cpp 2011-03-21 13:55:33 EDT (Mon, 21 Mar 2011)
@@ -13,8 +13,9 @@
#include <boost/typeof/typeof.hpp>
#include <boost/assign/v2/detail/config/check.hpp>
#include <boost/assign/v2/fun.hpp>
-#include <boost/assign/v2/modifier/lookup.hpp>
#include <boost/assign/v2/put/pipe/csv_put.hpp>
+// Options come next
+#include <boost/assign/v2/optional/lookup.hpp>
#include <libs/assign/v2/test/put/pipe/modifier/lookup.h>
namespace test_assign_v2{
Modified: sandbox/assign_v2/libs/assign/v2/test/put/pipe/modifier/repeat.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/put/pipe/modifier/repeat.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/put/pipe/modifier/repeat.cpp 2011-03-21 13:55:33 EDT (Mon, 21 Mar 2011)
@@ -9,9 +9,10 @@
//////////////////////////////////////////////////////////////////////////////
#include <vector>
#include <boost/assign/v2/detail/config/check.hpp>
-#include <boost/assign/v2/modifier/repeat.hpp>
#include <boost/assign/v2/put/pipe/csv_put.hpp>
#include <boost/assign/v2/deque.hpp>
+// Options come next
+#include <boost/assign/v2/optional/repeat.hpp>
#include <boost/range/algorithm/equal.hpp>
#include <libs/assign/v2/test/put/pipe/modifier/repeat.h>
Modified: sandbox/assign_v2/libs/assign/v2/test/put/pipe/modifier/standard.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/put/pipe/modifier/standard.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/put/pipe/modifier/standard.cpp 2011-03-21 13:55:33 EDT (Mon, 21 Mar 2011)
@@ -16,9 +16,10 @@
#include <boost/range/begin.hpp>
#include <boost/range/iterator.hpp>
#include <boost/assign/v2/detail/config/check.hpp>
-#include <boost/assign/v2/modifier/standard.hpp>
#include <boost/assign/v2/put/pipe/csv_put.hpp>
#include <boost/assign/v2/deque.hpp>
+// Options come next
+#include <boost/assign/v2/optional/standard.hpp>
#include <libs/assign/v2/test/put/pipe/modifier/standard.h>
namespace test_assign_v2{
Modified: sandbox/assign_v2/libs/assign/v2/test/unit_testing/fun.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/unit_testing/fun.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/unit_testing/fun.cpp 2011-03-21 13:55:33 EDT (Mon, 21 Mar 2011)
@@ -1,31 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 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_UNIT_TEST_FUN_ER_2010_CPP
-#define LIBS_ASSIGN_V2_TEST_UNIT_TEST_FUN_ER_2010_CPP
-
-#include <boost/test/test_tools.hpp>
-#define BOOST_ASSIGN_V2_CHECK( p ) BOOST_CHECK( p )
-
-#include <libs/assign/v2/test/fun.cpp>
-
-#include <boost/test/unit_test.hpp>
-using boost::unit_test::test_suite;
-test_suite* init_unit_test_suite( int argc, char* argv[] )
-{
- test_suite* test = BOOST_TEST_SUITE( "BOOST_ASSIGN_V2" );
- using namespace test_assign_v2;
- {
-
- test->add( BOOST_TEST_CASE( &xxx_fun::test ) );
- }
- return test;
-}
-
-#endif // LIBS_ASSIGN_V2_TEST_UNIT_TEST_FUN_ER_2010_CPP
\ No newline at end of file
+// TODO remove file
\ No newline at end of file
Modified: sandbox/assign_v2/libs/assign/v2/test/unit_testing/modifier.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/unit_testing/modifier.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/unit_testing/modifier.cpp 2011-03-21 13:55:33 EDT (Mon, 21 Mar 2011)
@@ -1,40 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 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_UNIT_TEST_MODIFIER_ER_2010_CPP
-#define LIBS_ASSIGN_V2_TEST_UNIT_TEST_MODIFIER_ER_2010_CPP
-
-#include <boost/test/test_tools.hpp>
-#define BOOST_ASSIGN_V2_CHECK( p ) BOOST_CHECK( p )
-
-#include <libs/assign/v2/test/modifier/deduce.cpp>
-#include <libs/assign/v2/test/modifier/iterate.cpp>
-#include <libs/assign/v2/test/modifier/lookup.cpp>
-#include <libs/assign/v2/test/modifier/repeat.cpp>
-#include <libs/assign/v2/test/modifier/standard.cpp>
-
-
-#include <boost/test/unit_test.hpp>
-using boost::unit_test::test_suite;
-test_suite* init_unit_test_suite( int argc, char* argv[] )
-{
- test_suite* test = BOOST_TEST_SUITE( "BOOST_ASSIGN_V2" );
- using namespace test_assign_v2;
- {
- namespace ns = xxx_modifier;
- test->add( BOOST_TEST_CASE( &ns::xxx_deduce::test ) );
- test->add( BOOST_TEST_CASE( &ns::xxx_iterate::test ) );
- test->add( BOOST_TEST_CASE( &ns::xxx_lookup::test ) );
- test->add( BOOST_TEST_CASE( &ns::xxx_repeat::test ) );
- test->add( BOOST_TEST_CASE( &ns::xxx_standard::test ) );
- }
- return test;
-}
-
-#endif // LIBS_ASSIGN_V2_TEST_UNIT_TEST_MODIFIER_ER_2010_CPP
+// TODO remove file
\ No newline at end of file
Modified: sandbox/assign_v2/libs/assign/v2/test/utility/csv.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/utility/csv.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/utility/csv.cpp 2011-03-21 13:55:33 EDT (Mon, 21 Mar 2011)
@@ -12,7 +12,7 @@
#include <boost/assign/v2/utility/csv.hpp>
#include <boost/assign/v2/deque.hpp>
#include <boost/assign/v2/put/put.hpp>
-#include <boost/assign/v2/modifier/push_front.hpp>
+#include <boost/assign/v2/optional/push_front.hpp>
#include <boost/range/algorithm/equal.hpp>
#include <libs/assign/v2/test/utility/csv.h>
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