Home
last modified time | relevance | path

Searched refs:BOOST_HOF_TEST_CHECK (Results 1 – 25 of 51) sorted by relevance

123

/third_party/boost/libs/hof/test/
Dprotect.cpp38 BOOST_HOF_TEST_CHECK(boost::hof::protect(boost::hof::lazy(f)(1))() == 1); in BOOST_HOF_TEST_CASE()
42BOOST_HOF_TEST_CHECK(&boost::hof::protect(boost::hof::lazy(g)(std::placeholders::_1))(i[0]) == &i[… in BOOST_HOF_TEST_CASE()
44BOOST_HOF_TEST_CHECK(&boost::hof::protect(boost::hof::lazy(g)(std::placeholders::_1))(i[0], i[1]) … in BOOST_HOF_TEST_CASE()
45BOOST_HOF_TEST_CHECK(&boost::hof::protect(boost::hof::lazy(g)(std::placeholders::_2))(i[0], i[1]) … in BOOST_HOF_TEST_CASE()
47BOOST_HOF_TEST_CHECK(&boost::hof::protect(boost::hof::lazy(g)(std::placeholders::_1))(i[0], i[1], … in BOOST_HOF_TEST_CASE()
48BOOST_HOF_TEST_CHECK(&boost::hof::protect(boost::hof::lazy(g)(std::placeholders::_2))(i[0], i[1], … in BOOST_HOF_TEST_CASE()
49BOOST_HOF_TEST_CHECK(&boost::hof::protect(boost::hof::lazy(g)(std::placeholders::_3))(i[0], i[1], … in BOOST_HOF_TEST_CASE()
51BOOST_HOF_TEST_CHECK(&boost::hof::protect(boost::hof::lazy(g)(std::placeholders::_1))(i[0], i[1], … in BOOST_HOF_TEST_CASE()
52BOOST_HOF_TEST_CHECK(&boost::hof::protect(boost::hof::lazy(g)(std::placeholders::_2))(i[0], i[1], … in BOOST_HOF_TEST_CASE()
53BOOST_HOF_TEST_CHECK(&boost::hof::protect(boost::hof::lazy(g)(std::placeholders::_3))(i[0], i[1], … in BOOST_HOF_TEST_CASE()
[all …]
Dconstruct.cpp73 BOOST_HOF_TEST_CHECK(v.size() == 5); in BOOST_HOF_TEST_CASE()
74 BOOST_HOF_TEST_CHECK(v == std::vector<int>{5, 5, 5, 5, 5}); in BOOST_HOF_TEST_CASE()
80 BOOST_HOF_TEST_CHECK(v.size() == 5); in BOOST_HOF_TEST_CASE()
81 BOOST_HOF_TEST_CHECK(v == std::vector<int>{5, 5, 5, 5, 5}); in BOOST_HOF_TEST_CASE()
87 BOOST_HOF_TEST_CHECK(v.size() == 5); in BOOST_HOF_TEST_CASE()
88 BOOST_HOF_TEST_CHECK(v == std::vector<int>{5, 5, 5, 5, 5}); in BOOST_HOF_TEST_CASE()
94 BOOST_HOF_TEST_CHECK(x.mem1 == 0); in BOOST_HOF_TEST_CASE()
95 BOOST_HOF_TEST_CHECK(x.mem2 == ""); in BOOST_HOF_TEST_CASE()
101 BOOST_HOF_TEST_CHECK(x.mem1 == 0); in BOOST_HOF_TEST_CASE()
102 BOOST_HOF_TEST_CHECK(x.mem2 == ""); in BOOST_HOF_TEST_CASE()
[all …]
Dif.cpp47 BOOST_HOF_TEST_CHECK(test_int<is_5>()(5)); in BOOST_HOF_TEST_CASE()
48 BOOST_HOF_TEST_CHECK(test_int<is_5>()(5L)); in BOOST_HOF_TEST_CASE()
49 BOOST_HOF_TEST_CHECK(test_int<is_5>()(5.0)); in BOOST_HOF_TEST_CASE()
50 BOOST_HOF_TEST_CHECK(test_int<is_5>()(6.0)); in BOOST_HOF_TEST_CASE()
52 BOOST_HOF_TEST_CHECK(test_int<is_not_5>()(6)); in BOOST_HOF_TEST_CASE()
53 BOOST_HOF_TEST_CHECK(test_int<is_not_5>()(6L)); in BOOST_HOF_TEST_CASE()
54 BOOST_HOF_TEST_CHECK(test_int<is_not_5>()(5.0)); in BOOST_HOF_TEST_CASE()
55 BOOST_HOF_TEST_CHECK(test_int<is_not_5>()(6.0)); in BOOST_HOF_TEST_CASE()
83 BOOST_HOF_TEST_CHECK(test_int_c<is_5>()(5)); in BOOST_HOF_TEST_CASE()
84 BOOST_HOF_TEST_CHECK(test_int_c<is_5>()(5L)); in BOOST_HOF_TEST_CASE()
[all …]
Dpipable.cpp42 BOOST_HOF_TEST_CHECK(3 == (1 | binary_pipable(2))); in BOOST_HOF_TEST_CASE()
43 BOOST_HOF_TEST_CHECK(3 == (binary_pipable(1, 2))); in BOOST_HOF_TEST_CASE()
44 BOOST_HOF_TEST_CHECK(3 == (3 | unary_pipable)); in BOOST_HOF_TEST_CASE()
45 BOOST_HOF_TEST_CHECK(3 == (3 | unary_pipable())); in BOOST_HOF_TEST_CASE()
46 BOOST_HOF_TEST_CHECK(3 == (unary_pipable(3))); in BOOST_HOF_TEST_CASE()
48 BOOST_HOF_TEST_CHECK(3 == (2 | binary_pipable(i1))); in BOOST_HOF_TEST_CASE()
49 BOOST_HOF_TEST_CHECK(3 == (i1 | mutable_pipable(2))); in BOOST_HOF_TEST_CASE()
50 BOOST_HOF_TEST_CHECK(3 == (i1)); in BOOST_HOF_TEST_CASE()
52 BOOST_HOF_TEST_CHECK(3 == (mutable_pipable(i2, 2))); in BOOST_HOF_TEST_CASE()
53 BOOST_HOF_TEST_CHECK(3 == (i2)); in BOOST_HOF_TEST_CASE()
[all …]
Dtuple_for_each.cpp33 BOOST_HOF_TEST_CHECK( s == 123 ); in BOOST_HOF_TEST_CASE()
41 BOOST_HOF_TEST_CHECK( s == 123 ); in BOOST_HOF_TEST_CASE()
53 BOOST_HOF_TEST_CHECK( s == 123 ); in BOOST_HOF_TEST_CASE()
61 BOOST_HOF_TEST_CHECK( s == 123 ); in BOOST_HOF_TEST_CASE()
75 BOOST_HOF_TEST_CHECK( s == 123 ); in BOOST_HOF_TEST_CASE()
87 BOOST_HOF_TEST_CHECK( s == 123 ); in BOOST_HOF_TEST_CASE()
95 BOOST_HOF_TEST_CHECK( s == 123 ); in BOOST_HOF_TEST_CASE()
107 BOOST_HOF_TEST_CHECK( s == 123 ); in BOOST_HOF_TEST_CASE()
115 BOOST_HOF_TEST_CHECK( s == 123 ); in BOOST_HOF_TEST_CASE()
128 BOOST_HOF_TEST_CHECK( s == 12 ); in BOOST_HOF_TEST_CASE()
[all …]
Dinfix.cpp35 BOOST_HOF_TEST_CHECK(3 == (1 <sum> 2)); in BOOST_HOF_TEST_CASE()
38 BOOST_HOF_TEST_CHECK(3 == (sum(1, 2))); in BOOST_HOF_TEST_CASE()
46 BOOST_HOF_TEST_CHECK(3 == (1 <sum1> 2)); in BOOST_HOF_TEST_CASE()
49 BOOST_HOF_TEST_CHECK(3 == (sum1(1, 2))); in BOOST_HOF_TEST_CASE()
57 BOOST_HOF_TEST_CHECK(3 == (1 <sum2> 2)); in BOOST_HOF_TEST_CASE()
59 BOOST_HOF_TEST_CHECK(3 == (sum2(1, 2))); in BOOST_HOF_TEST_CASE()
66 BOOST_HOF_TEST_CHECK(3 == (1 <sum3> 2)); in BOOST_HOF_TEST_CASE()
69 BOOST_HOF_TEST_CHECK(3 == (sum3(1, 2))); in BOOST_HOF_TEST_CASE()
78 BOOST_HOF_TEST_CHECK(3 == (1 <sum4> 2)); in BOOST_HOF_TEST_CASE()
80 BOOST_HOF_TEST_CHECK(3 == (sum4(1, 2))); in BOOST_HOF_TEST_CASE()
[all …]
Dmatch.cpp67 BOOST_HOF_TEST_CHECK(fun(1) == 1); in BOOST_HOF_TEST_CASE()
68 BOOST_HOF_TEST_CHECK(fun(foo()) == 2); in BOOST_HOF_TEST_CASE()
77 BOOST_HOF_TEST_CHECK(boost::hof::reveal(fun)(1) == 1); in BOOST_HOF_TEST_CASE()
78 BOOST_HOF_TEST_CHECK(boost::hof::reveal(fun)(foo()) == 2); in BOOST_HOF_TEST_CASE()
92 BOOST_HOF_TEST_CHECK(lam(1) == 1); in BOOST_HOF_TEST_CASE()
93 BOOST_HOF_TEST_CHECK(lam(foo()) == 2); in BOOST_HOF_TEST_CASE()
107 BOOST_HOF_TEST_CHECK(lam(1) == 1); in BOOST_HOF_TEST_CASE()
108 BOOST_HOF_TEST_CHECK(lam(foo()) == 2); in BOOST_HOF_TEST_CASE()
131 BOOST_HOF_TEST_CHECK(lam(1) == 1); in BOOST_HOF_TEST_CASE()
132 BOOST_HOF_TEST_CHECK(lam(foo()) == 2); in BOOST_HOF_TEST_CASE()
[all …]
Dunpack.cpp36 BOOST_HOF_TEST_CHECK(3 == boost::hof::unpack(unary_class())(std::make_tuple(3))); in BOOST_HOF_TEST_CASE()
37 BOOST_HOF_TEST_CHECK(3 == unary_unpack(std::make_tuple(3))); in BOOST_HOF_TEST_CASE()
38 BOOST_HOF_TEST_CHECK(3 == unary_unpack_reveal(std::make_tuple(3))); in BOOST_HOF_TEST_CASE()
40 BOOST_HOF_TEST_CHECK(3 == unary_unpack(std::tuple<int&>(ifu))); in BOOST_HOF_TEST_CASE()
51 BOOST_HOF_TEST_CHECK(3 == boost::hof::unpack(unary_class())(boost::hof::pack(3))); in BOOST_HOF_TEST_CASE()
52 BOOST_HOF_TEST_CHECK(3 == unary_unpack(boost::hof::pack(3))); in BOOST_HOF_TEST_CASE()
53 BOOST_HOF_TEST_CHECK(3 == unary_unpack_reveal(boost::hof::pack(3))); in BOOST_HOF_TEST_CASE()
55 BOOST_HOF_TEST_CHECK(3 == unary_unpack(boost::hof::pack_forward(ifu))); in BOOST_HOF_TEST_CASE()
64 BOOST_HOF_TEST_CHECK(3 == boost::hof::unpack(binary_class())(std::make_tuple(1, 2))); in BOOST_HOF_TEST_CASE()
65 BOOST_HOF_TEST_CHECK(3 == binary_unpack(std::make_tuple(1, 2))); in BOOST_HOF_TEST_CASE()
[all …]
Dfirst_of.cpp60 BOOST_HOF_TEST_CHECK(f(t1()) == 1); in BOOST_HOF_TEST_CASE()
61 BOOST_HOF_TEST_CHECK(f(t2()) == 2); in BOOST_HOF_TEST_CASE()
62 BOOST_HOF_TEST_CHECK(f(t3()) == 3); in BOOST_HOF_TEST_CASE()
71 BOOST_HOF_TEST_CHECK(boost::hof::first_of(f1{}, f2{})(t1()) == 1); in BOOST_HOF_TEST_CASE()
72 BOOST_HOF_TEST_CHECK(boost::hof::first_of(f1{}, f2{})(t2()) == 2); in BOOST_HOF_TEST_CASE()
83BOOST_HOF_TEST_CHECK(boost::hof::first_of(boost::hof::first_of(f1{}, f2{}), boost::hof::first_of(f… in BOOST_HOF_TEST_CASE()
84BOOST_HOF_TEST_CHECK(boost::hof::first_of(boost::hof::first_of(f1{}, f2{}), boost::hof::first_of(f… in BOOST_HOF_TEST_CASE()
92 BOOST_HOF_TEST_CHECK(boost::hof::first_of(f1{}, boost::hof::first_of(f2{}, f3{}))(t1()) == 1); in BOOST_HOF_TEST_CASE()
93 BOOST_HOF_TEST_CHECK(boost::hof::first_of(f1{}, boost::hof::first_of(f2{}, f3{}))(t2()) == 2); in BOOST_HOF_TEST_CASE()
94 BOOST_HOF_TEST_CHECK(boost::hof::first_of(f1{}, boost::hof::first_of(f2{}, f3{}))(t3()) == 3); in BOOST_HOF_TEST_CASE()
[all …]
Dpartial.cpp37 BOOST_HOF_TEST_CHECK(3 == binary_partial(1)(2)); in BOOST_HOF_TEST_CASE()
38 BOOST_HOF_TEST_CHECK(3 == binary_partial(1, 2)); in BOOST_HOF_TEST_CASE()
39 BOOST_HOF_TEST_CHECK(3 == unary_partial()(3)); in BOOST_HOF_TEST_CASE()
40 BOOST_HOF_TEST_CHECK(3 == unary_partial(3)); in BOOST_HOF_TEST_CASE()
41 BOOST_HOF_TEST_CHECK(3 == mono_partial(2)); in BOOST_HOF_TEST_CASE()
42 BOOST_HOF_TEST_CHECK(3 == mono_partial()(2)); in BOOST_HOF_TEST_CASE()
45 BOOST_HOF_TEST_CHECK(3 == binary_partial(2)(i1)); in BOOST_HOF_TEST_CASE()
46 BOOST_HOF_TEST_CHECK(3 == mutable_partial(std::ref(i1))(2)); in BOOST_HOF_TEST_CASE()
47 BOOST_HOF_TEST_CHECK(3 == i1); in BOOST_HOF_TEST_CASE()
49 BOOST_HOF_TEST_CHECK(3 == mutable_partial(i2, 2)); in BOOST_HOF_TEST_CASE()
[all …]
Dreverse_fold.cpp39 BOOST_HOF_TEST_CHECK(boost::hof::reverse_fold(max_f(), 0)(2, 3, 4, 5) == 5); in BOOST_HOF_TEST_CASE()
40 BOOST_HOF_TEST_CHECK(boost::hof::reverse_fold(max_f(), 0)(5, 4, 3, 2) == 5); in BOOST_HOF_TEST_CASE()
41 BOOST_HOF_TEST_CHECK(boost::hof::reverse_fold(max_f(), 0)(2, 3, 5, 4) == 5); in BOOST_HOF_TEST_CASE()
50 BOOST_HOF_TEST_CHECK(boost::hof::reverse_fold(max_f(), 0)() == 0); in BOOST_HOF_TEST_CASE()
51 BOOST_HOF_TEST_CHECK(boost::hof::reverse_fold(max_f(), 0)(5) == 5); in BOOST_HOF_TEST_CASE()
65 BOOST_HOF_TEST_CHECK(find_positive_max() == 0); in BOOST_HOF_TEST_CASE()
66 BOOST_HOF_TEST_CHECK(find_positive_max(5) == 5); in BOOST_HOF_TEST_CASE()
74 BOOST_HOF_TEST_CHECK(boost::hof::reverse_fold(max_f())(5) == 5); in BOOST_HOF_TEST_CASE()
81 BOOST_HOF_TEST_CHECK(boost::hof::reverse_fold(max_f())(2, 3, 4, 5) == 5); in BOOST_HOF_TEST_CASE()
82 BOOST_HOF_TEST_CHECK(boost::hof::reverse_fold(max_f())(5, 4, 3, 2) == 5); in BOOST_HOF_TEST_CASE()
[all …]
Dfold.cpp39 BOOST_HOF_TEST_CHECK(boost::hof::fold(max_f(), 0)(2, 3, 4, 5) == 5); in BOOST_HOF_TEST_CASE()
40 BOOST_HOF_TEST_CHECK(boost::hof::fold(max_f(), 0)(5, 4, 3, 2) == 5); in BOOST_HOF_TEST_CASE()
41 BOOST_HOF_TEST_CHECK(boost::hof::fold(max_f(), 0)(2, 3, 5, 4) == 5); in BOOST_HOF_TEST_CASE()
50 BOOST_HOF_TEST_CHECK(boost::hof::fold(max_f(), 0)() == 0); in BOOST_HOF_TEST_CASE()
51 BOOST_HOF_TEST_CHECK(boost::hof::fold(max_f(), 0)(5) == 5); in BOOST_HOF_TEST_CASE()
65 BOOST_HOF_TEST_CHECK(find_positive_max() == 0); in BOOST_HOF_TEST_CASE()
66 BOOST_HOF_TEST_CHECK(find_positive_max(5) == 5); in BOOST_HOF_TEST_CASE()
74 BOOST_HOF_TEST_CHECK(boost::hof::fold(max_f())(5) == 5); in BOOST_HOF_TEST_CASE()
81 BOOST_HOF_TEST_CHECK(boost::hof::fold(max_f())(2, 3, 4, 5) == 5); in BOOST_HOF_TEST_CASE()
82 BOOST_HOF_TEST_CHECK(boost::hof::fold(max_f())(5, 4, 3, 2) == 5); in BOOST_HOF_TEST_CASE()
[all …]
Dpack.cpp17 BOOST_HOF_TEST_CHECK(p2(binary_class()) == p1(binary_class())); in BOOST_HOF_TEST_CASE()
20 BOOST_HOF_TEST_CHECK(boost::hof::pack_basic(1, 2)(binary_class()) == 3 ); in BOOST_HOF_TEST_CASE()
23 BOOST_HOF_TEST_CHECK(boost::hof::pack(1, 2)(binary_class()) == 3 ); in BOOST_HOF_TEST_CASE()
26 BOOST_HOF_TEST_CHECK(boost::hof::pack_forward(1, 2)(binary_class()) == 3 ); in BOOST_HOF_TEST_CASE()
80 BOOST_HOF_TEST_CHECK(boost::hof::pack_basic(x, y)(binary_class()) == 3 ); in BOOST_HOF_TEST_CASE()
86 BOOST_HOF_TEST_CHECK(boost::hof::pack(std::ref(x), std::ref(y))(binary_class()) == 3 ); in BOOST_HOF_TEST_CASE()
92 BOOST_HOF_TEST_CHECK(boost::hof::pack_forward(x, y)(binary_class()) == 3 ); in BOOST_HOF_TEST_CASE()
98 BOOST_HOF_TEST_CHECK(boost::hof::pack_basic()(boost::hof::always(3)) == 3 ); in BOOST_HOF_TEST_CASE()
104 BOOST_HOF_TEST_CHECK(boost::hof::pack_basic(3)(boost::hof::identity) == 3 ); in BOOST_HOF_TEST_CASE()
110 BOOST_HOF_TEST_CHECK(boost::hof::pack_join(p, boost::hof::pack(2))(binary_class()) == 3); in BOOST_HOF_TEST_CASE()
[all …]
Dlazy.cpp30 BOOST_HOF_TEST_CHECK(&boost::hof::detail::ref_transformer()(std::ref(i))(0,0,0) == &i); in BOOST_HOF_TEST_CASE()
31 BOOST_HOF_TEST_CHECK(&boost::hof::detail::pick_transformer(std::ref(i))(0,0,0) == &i); in BOOST_HOF_TEST_CASE()
32BOOST_HOF_TEST_CHECK(&boost::hof::detail::lazy_transform(std::ref(i), boost::hof::pack_basic(0,0,0… in BOOST_HOF_TEST_CASE()
39 BOOST_HOF_TEST_CHECK(boost::hof::detail::id_transformer()(i)(0,0,0) == i); in BOOST_HOF_TEST_CASE()
40 BOOST_HOF_TEST_CHECK(boost::hof::detail::pick_transformer(i)(0,0,0) == i); in BOOST_HOF_TEST_CASE()
41 BOOST_HOF_TEST_CHECK(boost::hof::detail::lazy_transform(i, boost::hof::pack_basic(0,0,0)) == i); in BOOST_HOF_TEST_CASE()
49 BOOST_HOF_TEST_CHECK(boost::hof::detail::bind_transformer()(fi)(0,0,0) == id(5)); in BOOST_HOF_TEST_CASE()
50 BOOST_HOF_TEST_CHECK(boost::hof::detail::pick_transformer(fi)(0,0,0) == id(5)); in BOOST_HOF_TEST_CASE()
51BOOST_HOF_TEST_CHECK(boost::hof::detail::lazy_transform(fi, boost::hof::pack_basic(0,0,0)) == id(5… in BOOST_HOF_TEST_CASE()
112 BOOST_HOF_TEST_CHECK( boost::hof::lazy(Y())( std::ref(i))() == 7 ); in BOOST_HOF_TEST_CASE()
[all …]
Dreveal.cpp35 BOOST_HOF_TEST_CHECK(boost::hof::reveal(f)(t1()) == 1); in BOOST_HOF_TEST_CASE()
36 BOOST_HOF_TEST_CHECK(boost::hof::reveal(f)(t2()) == 2); in BOOST_HOF_TEST_CASE()
37 BOOST_HOF_TEST_CHECK(boost::hof::reveal(f)(t3()) == 3); in BOOST_HOF_TEST_CASE()
68 BOOST_HOF_TEST_CHECK(boost::hof::reveal(lam)(t1()) == 1); in BOOST_HOF_TEST_CASE()
69 BOOST_HOF_TEST_CHECK(boost::hof::reveal(lam)(t2()) == 2); in BOOST_HOF_TEST_CASE()
70 BOOST_HOF_TEST_CHECK(boost::hof::reveal(lam)(t3()) == 3); in BOOST_HOF_TEST_CASE()
98 BOOST_HOF_TEST_CHECK(boost::hof::reveal(static_fun)(t1()) == 1); in BOOST_HOF_TEST_CASE()
99 BOOST_HOF_TEST_CHECK(boost::hof::reveal(static_fun)(t2()) == 2); in BOOST_HOF_TEST_CASE()
100 BOOST_HOF_TEST_CHECK(boost::hof::reveal(static_fun)(t3()) == 3); in BOOST_HOF_TEST_CASE()
102 BOOST_HOF_TEST_CHECK(static_fun(t1()) == 1); in BOOST_HOF_TEST_CASE()
[all …]
Dlambda.cpp35 BOOST_HOF_TEST_CHECK(3 == add_one(2)); in BOOST_HOF_TEST_CASE()
41 BOOST_HOF_TEST_CHECK(3 == add_one_again(2)); in BOOST_HOF_TEST_CASE()
47 BOOST_HOF_TEST_CHECK(3 == add_one_again(2)); in BOOST_HOF_TEST_CASE()
59 BOOST_HOF_TEST_CHECK(add_one(2) == 3); in BOOST_HOF_TEST_CASE()
72 BOOST_HOF_TEST_CHECK(3 == sum_partial(1, 2)); in BOOST_HOF_TEST_CASE()
73 BOOST_HOF_TEST_CHECK(3 == sum_partial(1)(2)); in BOOST_HOF_TEST_CASE()
86 BOOST_HOF_TEST_CHECK(3 == add_one_pipable(2)); in BOOST_HOF_TEST_CASE()
87 BOOST_HOF_TEST_CHECK(3 == (2 | add_one_pipable)); in BOOST_HOF_TEST_CASE()
100 BOOST_HOF_TEST_CHECK(3 == (1 <sum_infix> 2)); in BOOST_HOF_TEST_CASE()
Dcapture.cpp14 BOOST_HOF_TEST_CHECK(boost::hof::capture_basic(1, 2)(binary_class())() == 3); in BOOST_HOF_TEST_CASE()
17 BOOST_HOF_TEST_CHECK(boost::hof::capture_basic(1)(binary_class())(2) == 3); in BOOST_HOF_TEST_CASE()
20 BOOST_HOF_TEST_CHECK(boost::hof::capture_basic()(binary_class())(1, 2) == 3); in BOOST_HOF_TEST_CASE()
25 BOOST_HOF_TEST_CHECK(boost::hof::capture_forward(one, two)(binary_class())() == 3); in BOOST_HOF_TEST_CASE()
26 BOOST_HOF_TEST_CHECK(boost::hof::capture_forward(1, 2)(binary_class())() == 3); in BOOST_HOF_TEST_CASE()
29 BOOST_HOF_TEST_CHECK(boost::hof::capture_forward(1)(binary_class())(2) == 3); in BOOST_HOF_TEST_CASE()
32 BOOST_HOF_TEST_CHECK(boost::hof::capture_forward()(binary_class())(one, two) == 3); in BOOST_HOF_TEST_CASE()
35 BOOST_HOF_TEST_CHECK(boost::hof::capture(1, 2)(binary_class())() == 3); in BOOST_HOF_TEST_CASE()
38 BOOST_HOF_TEST_CHECK(boost::hof::capture(1)(binary_class())(2) == 3); in BOOST_HOF_TEST_CASE()
41 BOOST_HOF_TEST_CHECK(boost::hof::capture()(binary_class())(1, 2) == 3); in BOOST_HOF_TEST_CASE()
[all …]
Dcompose.cpp77 BOOST_HOF_TEST_CHECK(boost::hof::compose(boost::hof::identity)(3) == 3); in BOOST_HOF_TEST_CASE()
78 BOOST_HOF_TEST_CHECK(boost::hof::compose(boost::hof::identity, boost::hof::identity)(3) == 3); in BOOST_HOF_TEST_CASE()
79BOOST_HOF_TEST_CHECK(boost::hof::compose(boost::hof::identity, boost::hof::identity, boost::hof::i… in BOOST_HOF_TEST_CASE()
89 BOOST_HOF_TEST_CHECK(r == 4); in BOOST_HOF_TEST_CASE()
96 BOOST_HOF_TEST_CHECK(r == 0); in BOOST_HOF_TEST_CASE()
107 BOOST_HOF_TEST_CHECK(r == 3); in BOOST_HOF_TEST_CASE()
118 BOOST_HOF_TEST_CHECK(r == 0); in BOOST_HOF_TEST_CASE()
128 BOOST_HOF_TEST_CHECK(r == 4); in BOOST_HOF_TEST_CASE()
141 BOOST_HOF_TEST_CHECK(r == 4); in BOOST_HOF_TEST_CASE()
149 BOOST_HOF_TEST_CHECK(f_compose_single_function(3) == 4); in BOOST_HOF_TEST_CASE()
[all …]
Dflow.cpp76 BOOST_HOF_TEST_CHECK(boost::hof::flow(boost::hof::identity)(3) == 3); in BOOST_HOF_TEST_CASE()
77 BOOST_HOF_TEST_CHECK(boost::hof::flow(boost::hof::identity, boost::hof::identity)(3) == 3); in BOOST_HOF_TEST_CASE()
78BOOST_HOF_TEST_CHECK(boost::hof::flow(boost::hof::identity, boost::hof::identity, boost::hof::iden… in BOOST_HOF_TEST_CASE()
88 BOOST_HOF_TEST_CHECK(r == 4); in BOOST_HOF_TEST_CASE()
95 BOOST_HOF_TEST_CHECK(r == -6); in BOOST_HOF_TEST_CASE()
104 BOOST_HOF_TEST_CHECK(r == 3); in BOOST_HOF_TEST_CASE()
114 BOOST_HOF_TEST_CHECK(r == 4); in BOOST_HOF_TEST_CASE()
124 BOOST_HOF_TEST_CHECK(r == 4); in BOOST_HOF_TEST_CASE()
132 BOOST_HOF_TEST_CHECK(f_flow_single_function(3) == 4); in BOOST_HOF_TEST_CASE()
140 BOOST_HOF_TEST_CHECK(f_flow_function(3) == 4); in BOOST_HOF_TEST_CASE()
[all …]
Dfunction.cpp32 BOOST_HOF_TEST_CHECK(3 == sum_init(1, 2)); in BOOST_HOF_TEST_CASE()
43 BOOST_HOF_TEST_CHECK(3 == sum_partial(1, 2)); in BOOST_HOF_TEST_CASE()
44 BOOST_HOF_TEST_CHECK(3 == sum_partial(1)(2)); in BOOST_HOF_TEST_CASE()
79 BOOST_HOF_TEST_CHECK(3 == sum_partial(1, 2)); in BOOST_HOF_TEST_CASE()
80 BOOST_HOF_TEST_CHECK(3 == sum_partial(1)(2)); in BOOST_HOF_TEST_CASE()
91 BOOST_HOF_TEST_CHECK(3 == add_one_pipable(2)); in BOOST_HOF_TEST_CASE()
92 BOOST_HOF_TEST_CHECK(3 == (2 | add_one_pipable)); in BOOST_HOF_TEST_CASE()
103 BOOST_HOF_TEST_CHECK(3 == (1 <sum_infix> 2)); in BOOST_HOF_TEST_CASE()
Dlift.cpp33 BOOST_HOF_TEST_CHECK(max_f()(3, 4) == std::max(3, 4)); in BOOST_HOF_TEST_CASE()
35 BOOST_HOF_TEST_CHECK(sum_f()(1, 2) == 3); in BOOST_HOF_TEST_CASE()
43 BOOST_HOF_TEST_CHECK(my_max(3, 4) == std::max(3, 4)); in BOOST_HOF_TEST_CASE()
45 BOOST_HOF_TEST_CHECK(BOOST_HOF_LIFT(std::max)(3, 4) == std::max(3, 4)); in BOOST_HOF_TEST_CASE()
46 BOOST_HOF_TEST_CHECK(BOOST_HOF_LIFT(sum)(1, 2) == 3); in BOOST_HOF_TEST_CASE()
54 BOOST_HOF_TEST_CHECK(pmax(3, 4) == std::max(3, 4)); in BOOST_HOF_TEST_CASE()
56 BOOST_HOF_TEST_CHECK(psum(1, 2) == 3); in BOOST_HOF_TEST_CASE()
Dflip.cpp13 BOOST_HOF_TEST_CHECK(3 == boost::hof::flip(boost::hof::_ - boost::hof::_)(2, 5)); in BOOST_HOF_TEST_CASE()
22 BOOST_HOF_TEST_CHECK(1 == boost::hof::arg(one{})(1, 2, 3, 4)); in BOOST_HOF_TEST_CASE()
24 BOOST_HOF_TEST_CHECK(2 == boost::hof::flip(boost::hof::arg(one{}))(1, 2, 3, 4)); in BOOST_HOF_TEST_CASE()
27 BOOST_HOF_TEST_CHECK(2 == boost::hof::arg(two{})(1, 2, 3, 4)); in BOOST_HOF_TEST_CASE()
29 BOOST_HOF_TEST_CHECK(1 == boost::hof::flip(boost::hof::arg(two{}))(1, 2, 3, 4)); in BOOST_HOF_TEST_CASE()
32 BOOST_HOF_TEST_CHECK(3 == boost::hof::arg(three{})(1, 2, 3, 4)); in BOOST_HOF_TEST_CASE()
34 BOOST_HOF_TEST_CHECK(3 == boost::hof::flip(boost::hof::arg(three{}))(1, 2, 3, 4)); in BOOST_HOF_TEST_CASE()
60 BOOST_HOF_TEST_CHECK(boost::hof::flip(f())(nullptr, 2) == 2); in BOOST_HOF_TEST_CASE()
Dalways.cpp16 BOOST_HOF_TEST_CHECK( boost::hof::always(ten)(1,2,3,4,5) == 10 ); in BOOST_HOF_TEST_CASE()
19 BOOST_HOF_TEST_CHECK( boost::hof::always(std::ref(i))(1,2,3,4,5) == 10 ); in BOOST_HOF_TEST_CASE()
20 BOOST_HOF_TEST_CHECK( &boost::hof::always(std::ref(i))(1,2,3,4,5) == &i ); in BOOST_HOF_TEST_CASE()
29 BOOST_HOF_TEST_CHECK( boost::hof::always_ref(i)(1,2,3,4,5) == 10 ); in BOOST_HOF_TEST_CASE()
30 BOOST_HOF_TEST_CHECK( &boost::hof::always_ref(i)(1,2,3,4,5) == &i ); in BOOST_HOF_TEST_CASE()
38 BOOST_HOF_TEST_CHECK(gten(1,2,3,4,5) == 10); in BOOST_HOF_TEST_CASE()
45 BOOST_HOF_TEST_CHECK(f(1,2,3,4,5) == 10); in BOOST_HOF_TEST_CASE()
Dmutable.cpp36 BOOST_HOF_TEST_CHECK(boost::hof::mutable_(mutable_fun())(3) == 4); in BOOST_HOF_TEST_CASE()
43 BOOST_HOF_TEST_CHECK(by_5() == 6); in BOOST_HOF_TEST_CASE()
44 BOOST_HOF_TEST_CHECK(by_5() == 11); in BOOST_HOF_TEST_CASE()
62 BOOST_HOF_TEST_CHECK(boost::hof::mutable_(mutable_move_fun())(3) == 4); in BOOST_HOF_TEST_CASE()
69 BOOST_HOF_TEST_CHECK(by_5() == 6); in BOOST_HOF_TEST_CASE()
70 BOOST_HOF_TEST_CHECK(by_5() == 11); in BOOST_HOF_TEST_CASE()
Dindirect.cpp12BOOST_HOF_TEST_CHECK(3 == boost::hof::indirect(std::unique_ptr<binary_class>(new binary_class()))(… in BOOST_HOF_TEST_CASE()
13BOOST_HOF_TEST_CHECK(3 == boost::hof::reveal(boost::hof::indirect(std::unique_ptr<binary_class>(ne… in BOOST_HOF_TEST_CASE()
17 BOOST_HOF_TEST_CHECK(3 == boost::hof::indirect(&f)(1, 2)); in BOOST_HOF_TEST_CASE()
18 BOOST_HOF_TEST_CHECK(3 == boost::hof::reveal(boost::hof::indirect(&f))(1, 2)); in BOOST_HOF_TEST_CASE()
40 BOOST_HOF_TEST_CHECK(mf.value == 17); in BOOST_HOF_TEST_CASE()
49 BOOST_HOF_TEST_CHECK(mf->value == 17); in BOOST_HOF_TEST_CASE()

123