|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r69460 - sandbox/assign_v2/libs/assign/v2/test/put/deque
From: erwann.rogard_at_[hidden]
Date: 2011-03-01 21:20:38
Author: e_r
Date: 2011-03-01 21:20:37 EST (Tue, 01 Mar 2011)
New Revision: 69460
URL: http://svn.boost.org/trac/boost/changeset/69460
Log:
upd assign_v2
Added:
sandbox/assign_v2/libs/assign/v2/test/put/deque/ext.cpp (contents, props changed)
sandbox/assign_v2/libs/assign/v2/test/put/deque/ext.h (contents, props changed)
Added: sandbox/assign_v2/libs/assign/v2/test/put/deque/ext.cpp
==============================================================================
--- (empty file)
+++ sandbox/assign_v2/libs/assign/v2/test/put/deque/ext.cpp 2011-03-01 21:20:37 EST (Tue, 01 Mar 2011)
@@ -0,0 +1,46 @@
+//////////////////////////////////////////////////////////////////////////////
+// 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 <boost/typeof/typeof.hpp>
+#include <boost/range/size.hpp>
+#include <boost/assign/v2/detail/config/check.hpp>
+#include <boost/assign/v2/put/deque.hpp>
+#include <boost/assign/v2/put/ext.hpp>
+
+#include <libs/assign/v2/test/put/deque/ext.h>
+
+namespace test_assign_v2{
+namespace xxx_put{
+namespace xxx_deque{
+namespace xxx_ext{
+
+ // Tests interaction between different functionalities
+
+ void test(){
+
+ namespace as2 = boost::assign::v2;
+
+ {
+ //[put_deque_modulo_repeat
+ BOOST_AUTO(
+ cont, (
+ as2::deque<int>( as2::_nil ) % ( as2::_repeat = 2 )
+ )( -1 )( 0 )( 1 )
+ );
+ BOOST_ASSIGN_V2_CHECK( boost::size( cont ) == 6 );
+ //]
+ BOOST_ASSIGN_V2_CHECK( cont.front() == -1 );
+ BOOST_ASSIGN_V2_CHECK( cont.back() == 1 );
+ }
+ }
+
+}// xxx_ext
+}// xxx_deque
+}// xxx_put
+}// test_assign_v2
Added: sandbox/assign_v2/libs/assign/v2/test/put/deque/ext.h
==============================================================================
--- (empty file)
+++ sandbox/assign_v2/libs/assign/v2/test/put/deque/ext.h 2011-03-01 21:20:37 EST (Tue, 01 Mar 2011)
@@ -0,0 +1,25 @@
+//////////////////////////////////////////////////////////////////////////////
+// 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_PUT_DEQUE_EXT_ER_2010_H
+#define LIBS_ASSIGN_V2_TEST_PUT_DEQUE_EXT_ER_2010_H
+
+namespace test_assign_v2{
+namespace xxx_put{
+namespace xxx_deque{
+namespace xxx_ext{
+
+ void test();
+
+}// xxx_ext
+}// xxx_deque
+}// xxx_put
+}// test_assign_v2
+
+#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