-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_copy.cpp
More file actions
23 lines (20 loc) · 764 Bytes
/
test_copy.cpp
File metadata and controls
23 lines (20 loc) · 764 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// test_copy.hpp
//
// Copyright (c) 2009
// Steven Watanabe
//
// 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 "./copy.hpp"
#include "./push_front.hpp"
#include "./inserter.hpp"
#include "./front_inserter.hpp"
#include "./list.hpp"
#include "./assert_same.hpp"
#include "./eval.hpp"
ASSERT_SAME(eval(copy(list(), inserter(type(push_front), list()))), eval(list()));
ASSERT_SAME(eval(copy(list(type<int>(), type<char>()), inserter(type(push_front), list()))),
eval(list(type<char>(), type<int>())));
ASSERT_SAME(eval(copy(list(type<int>(), type<char>()), front_inserter(list()))),
eval(list(type<char>(), type<int>())));