forked from boostorg/fusion
added test for copy
[SVN r70009]
This commit is contained in:
@ -14,6 +14,7 @@ import testing ;
|
|||||||
[ run algorithm/all.cpp : : : : ]
|
[ run algorithm/all.cpp : : : : ]
|
||||||
[ run algorithm/any.cpp : : : : ]
|
[ run algorithm/any.cpp : : : : ]
|
||||||
[ run algorithm/clear.cpp : : : : ]
|
[ run algorithm/clear.cpp : : : : ]
|
||||||
|
[ run algorithm/copy.cpp : : : : ]
|
||||||
[ run algorithm/count.cpp : : : : ]
|
[ run algorithm/count.cpp : : : : ]
|
||||||
[ run algorithm/count_if.cpp : : : : ]
|
[ run algorithm/count_if.cpp : : : : ]
|
||||||
[ run algorithm/erase.cpp : : : : ]
|
[ run algorithm/erase.cpp : : : : ]
|
||||||
@ -111,7 +112,7 @@ import testing ;
|
|||||||
[ run sequence/zip_view2.cpp : : : : ]
|
[ run sequence/zip_view2.cpp : : : : ]
|
||||||
[ run sequence/zip_view_ignore.cpp : : : : ]
|
[ run sequence/zip_view_ignore.cpp : : : : ]
|
||||||
[ run sequence/repetitive_view.cpp : : : : ]
|
[ run sequence/repetitive_view.cpp : : : : ]
|
||||||
[ run sequence/deduce_sequence.cpp : : : : ]
|
[ run sequence/deduce_sequence.cpp : : : : ]
|
||||||
[ run sequence/adapt_adt_named.cpp : : : : ]
|
[ run sequence/adapt_adt_named.cpp : : : : ]
|
||||||
[ run sequence/adapt_adt.cpp : : : : ]
|
[ run sequence/adapt_adt.cpp : : : : ]
|
||||||
[ run sequence/adapt_assoc_adt_named.cpp : : : : ]
|
[ run sequence/adapt_assoc_adt_named.cpp : : : : ]
|
||||||
|
26
test/algorithm/copy.cpp
Normal file
26
test/algorithm/copy.cpp
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
/*=============================================================================
|
||||||
|
Copyright (c) 2001-2011 Joel de Guzman
|
||||||
|
|
||||||
|
Distributed under 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/detail/lightweight_test.hpp>
|
||||||
|
#include <boost/fusion/container/vector/vector.hpp>
|
||||||
|
#include <boost/fusion/container/list/list.hpp>
|
||||||
|
#include <boost/fusion/sequence/comparison.hpp>
|
||||||
|
#include <boost/fusion/algorithm/auxiliary/copy.hpp>
|
||||||
|
|
||||||
|
int
|
||||||
|
main()
|
||||||
|
{
|
||||||
|
{
|
||||||
|
boost::fusion::vector<int, short, double> v(1, 2, 3);
|
||||||
|
boost::fusion::list<int, short, double> l;
|
||||||
|
|
||||||
|
boost::fusion::copy(v, l);
|
||||||
|
BOOST_TEST(v == l);
|
||||||
|
}
|
||||||
|
|
||||||
|
return boost::report_errors();
|
||||||
|
}
|
||||||
|
|
Reference in New Issue
Block a user