]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/assign/test/basic.cpp
0efdfa30e92cb2f5f0f1baaf61fbbda9ee0ca396
1 // Boost.Assign library
3 // Copyright Thorsten Ottosen 2003-2004. Use, modification and
4 // distribution is subject to the Boost Software License, Version
5 // 1.0. (See accompanying file LICENSE_1_0.txt or copy at
6 // http://www.boost.org/LICENSE_1_0.txt)
8 // For more information, see http://www.boost.org/libs/assign/
11 #include <boost/detail/workaround.hpp>
13 #if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x564))
14 # pragma warn -8091 // supress warning in Boost.Test
15 # pragma warn -8057 // unused argument argc/argv in Boost.Test
18 #include <boost/assign/std/vector.hpp>
19 #include <boost/assign/std/map.hpp>
24 using namespace boost
;
25 using namespace boost::assign
;
27 void check_basic_usage()
30 v
+= 1,2,3,4,5,6,7,8,9;
31 push_back( v
)(10)(11);
33 insert( m
)( "foo", 1 )( "bar", 2 );
38 #include <boost/test/unit_test.hpp>
39 using boost::unit_test::test_suite
;
41 test_suite
* init_unit_test_suite( int argc
, char* argv
[] )
43 test_suite
* test
= BOOST_TEST_SUITE( "Assign Test Suite" );
45 test
->add( BOOST_TEST_CASE( &check_basic_usage
) );