Home
last modified time | relevance | path

Searched refs:test_one (Results 1 – 25 of 76) sorted by relevance

1234

/llvm-project/libcxx/test/std/algorithms/alg.sorting/alg.merge/
H A Dinplace_merge.pass.cpp52 test_one(unsigned N, unsigned M) in test_one() function
76 test_one<Iter>(N, 0); in test()
77 test_one<Iter>(N, N/4); in test()
78 test_one<Iter>(N, N/2); in test()
79 test_one<Iter>(N, 3*N/4); in test()
80 test_one<Iter>(N, N); in test()
87 test_one<Iter>(0, 0); in test()
88 test_one<Iter>(1, 0); in test()
89 test_one<Iter>(1, 1); in test()
90 test_one<Iter>(2, 0); in test()
[all …]
H A Dinplace_merge_comp.pass.cpp66 test_one(unsigned N, unsigned M) in test_one()
94 test_one<Iter>(N, 0); in test()
95 test_one<Iter>(N, N/4); in test()
96 test_one<Iter>(N, N/2); in test()
97 test_one<Iter>(N, 3*N/4); in test()
98 test_one<Iter>(N, N); in test()
105 test_one<Iter>(0, 0); in test()
106 test_one<Iter>(1, 0); in test()
107 test_one<Iter>(1, 1); in test()
108 test_one<Ite in test()
65 test_one(unsigned N, unsigned M) test_one() function
[all...]
/llvm-project/libcxx/test/std/ranges/range.adaptors/range.split/
H A Dgeneral.pass.cpp128 constexpr void test_one(T&& input, Separator&& separator, std::array<U, M> expected) { in test_one() function
242 test_one("abc def"sv, short_sep, expected); in main_test()
243 test_one("abc12def"sv, long_sep, expected); in main_test()
249 test_one("abc def"sv, short_sep, expected); in main_test()
250 test_one("abc12121212def"sv, long_sep, expected); in main_test()
256 test_one("abc def "sv, short_sep, expected); in main_test()
257 test_one("abc12def12"sv, long_sep, expected); in main_test()
263 test_one(" abc def"sv, short_sep, expected); in main_test()
264 test_one("12abc12def"sv, long_sep, expected); in main_test()
270 test_one("abc"sv, short_sep, expected); in main_test()
[all …]
/llvm-project/libcxx/test/std/ranges/range.adaptors/range.lazy.split/
H A Dgeneral.pass.cpp170 constexpr void test_one(T&& input, Separator&& separator, std::array<U, M> expected) { in test_one() function
294 test_one("abc def"sv, short_sep, expected); in main_test()
295 test_one("abc12def"sv, long_sep, expected); in main_test()
301 test_one("abc def"sv, short_sep, expected); in main_test()
302 test_one("abc12121212def"sv, long_sep, expected); in main_test()
308 test_one("abc def "sv, short_sep, expected); in main_test()
309 test_one("abc12def12"sv, long_sep, expected); in main_test()
315 test_one(" abc def"sv, short_sep, expected); in main_test()
316 test_one("12abc12def"sv, long_sep, expected); in main_test()
322 test_one("abc"sv, short_sep, expected); in main_test()
[all …]
/llvm-project/libcxx/test/std/iterators/predef.iterators/move.iterators/move.iter.ops/move.iter.op.comp/
H A Dop_eq.pass.cpp41 TEST_CONSTEXPR_CXX17 void test_one() in test_one() function
57 test_one<CustomIt>(); in test()
58 test_one<cpp17_input_iterator<int*> >(); in test()
59 test_one<forward_iterator<int*> >(); in test()
60 test_one<bidirectional_iterator<int*> >(); in test()
61 test_one<random_access_iterator<int*> >(); in test()
62 test_one<int*>(); in test()
63 test_one<const int*>(); in test()
66 test_one<contiguous_iterator<int*>>(); in test()
67 test_one<three_way_contiguous_iterator<int*>>(); in test()
H A Dop_neq.pass.cpp49 TEST_CONSTEXPR_CXX17 void test_one() in test_one() function
65 test_one<CustomIt>(); in test()
66 test_one<cpp17_input_iterator<int*> >(); in test()
67 test_one<forward_iterator<int*> >(); in test()
68 test_one<bidirectional_iterator<int*> >(); in test()
69 test_one<random_access_iterator<int*> >(); in test()
70 test_one<int*>(); in test()
71 test_one<const int*>(); in test()
74 test_one<contiguous_iterator<int*>>(); in test()
75 test_one<three_way_contiguous_iterator<int*>>(); in test()
H A Dop_lte.pass.cpp41 TEST_CONSTEXPR_CXX17 void test_one() in test_one() function
54 test_one<CustomIt>(); in test()
55 test_one<int*>(); in test()
56 test_one<const int*>(); in test()
57 test_one<random_access_iterator<int*> >(); in test()
59 test_one<contiguous_iterator<int*>>(); in test()
H A Dop_gte.pass.cpp41 TEST_CONSTEXPR_CXX17 void test_one() in test_one() function
54 test_one<CustomIt>(); in test()
55 test_one<int*>(); in test()
56 test_one<const int*>(); in test()
57 test_one<random_access_iterator<int*> >(); in test()
59 test_one<contiguous_iterator<int*>>(); in test()
H A Dop_lt.pass.cpp41 TEST_CONSTEXPR_CXX17 void test_one() in test_one() function
54 test_one<CustomIt>(); in test()
55 test_one<int*>(); in test()
56 test_one<const int*>(); in test()
57 test_one<random_access_iterator<int*> >(); in test()
59 test_one<contiguous_iterator<int*>>(); in test()
H A Dop_gt.pass.cpp41 TEST_CONSTEXPR_CXX17 void test_one() in test_one() function
54 test_one<CustomIt>(); in test()
55 test_one<int*>(); in test()
56 test_one<const int*>(); in test()
57 test_one<random_access_iterator<int*> >(); in test()
59 test_one<contiguous_iterator<int*>>(); in test()
/llvm-project/libcxx/test/std/algorithms/alg.sorting/alg.sort/stable.sort/
H A Dpstl.stable_sort.pass.cpp50 void test_one(Policy&& policy, std::array<ValueT, N> input, std::array<ValueT, N> expected) { in test_one() function
60 test_one<Iter, 0>(policy, {}, {}); in operator ()()
62 test_one<Iter, 1>(policy, {1}, {1}); in operator ()()
64 test_one<Iter, 2>(policy, {2, 1}, {1, 2}); in operator ()()
66 test_one<Iter, 3>(policy, {2, 1, 3}, {1, 2, 3}); in operator ()()
68 test_one<Iter, 8>(policy, {2, 1, 3, 6, 8, 4, 11, 5}, {1, 2, 3, 4, 5, 6, 8, 11}); in operator ()()
70 test_one<Iter, 7>(policy, {2, 1, 3, 6, 2, 8, 6}, {1, 2, 2, 3, 6, 6, 8}); in operator ()()
72 test_one<Iter, 3>(policy, {1, 1, 1}, {1, 1, 1}); in operator ()()
74 test_one<Iter, 5>(policy, {1, 2, 3, 4, 5}, {1, 2, 3, 4, 5}); in operator ()()
76 test_one<Iter, 5>(policy, {5, 4, 3, 2, 1}, {1, 2, 3, 4, 5}); in operator ()()
[all …]
H A Dranges.stable.sort.pass.cpp60 void test_one(std::array<int, N> input, std::array<int, N> expected) { in test_one() function
86 test_one<Iter, Sent, 0>({}, {}); in test_iterators_2()
88 test_one<Iter, Sent, 1>({1}, {1}); in test_iterators_2()
90 test_one<Iter, Sent, 2>({2, 1}, {1, 2}); in test_iterators_2()
92 test_one<Iter, Sent, 3>({2, 1, 3}, {1, 2, 3}); in test_iterators_2()
94 test_one<Iter, Sent, 8>({2, 1, 3, 6, 8, 4, 11, 5}, {1, 2, 3, 4, 5, 6, 8, 11}); in test_iterators_2()
96 test_one<Iter, Sent, 7>({2, 1, 3, 6, 2, 8, 6}, {1, 2, 2, 3, 6, 6, 8}); in test_iterators_2()
98 test_one<Iter, Sent, 3>({1, 1, 1}, {1, 1, 1}); in test_iterators_2()
100 test_one<Iter, Sent, 5>({1, 2, 3, 4, 5}, {1, 2, 3, 4, 5}); in test_iterators_2()
102 test_one<Iter, Sent, 5>({5, 4, 3, 2, 1}, {1, 2, 3, 4, 5}); in test_iterators_2()
[all …]
/llvm-project/libcxx/test/std/algorithms/alg.modifying.operations/alg.partitions/
H A Dranges_partition.pass.cpp86 constexpr void test_one(std::array<int, N> input, Pred pred, std::size_t partition_point) { in test_one() function
124 test_one<Iter, Sent, 0>({}, is_odd, 0); in test_iterators_2()
126 test_one<Iter, Sent, 1>({1}, is_odd, 1); in test_iterators_2()
128 test_one<Iter, Sent, 1>({2}, is_odd, 0); in test_iterators_2()
130 test_one<Iter, Sent, 2>({2, 1}, is_odd, 1); in test_iterators_2()
132 test_one<Iter, Sent, 2>({1, 2}, is_odd, 1); in test_iterators_2()
134 test_one<Iter, Sent, 3>({2, 1, 3}, is_odd, 2); in test_iterators_2()
136 test_one<Iter, Sent, 8>({2, 1, 3, 6, 8, 4, 11, 5}, is_odd, 4); in test_iterators_2()
138 test_one<Iter, Sent, 8>({2, 1, 3, 6, 2, 8, 1, 6}, is_odd, 3); in test_iterators_2()
140 test_one<Iter, Sent, 3>({1, 1, 1}, is_odd, 3); in test_iterators_2()
[all …]
H A Dranges_stable_partition.pass.cpp88 void test_one(std::array<int, N> input, Pred pred, std::size_t partition_point, std::array<int, N> … in test_one() function
128 test_one<Iter, Sent, 0>({}, is_odd, 0, {}); in test_iterators_2()
130 test_one<Iter, Sent, 1>({1}, is_odd, 1, {1}); in test_iterators_2()
132 test_one<Iter, Sent, 1>({2}, is_odd, 0, {2}); in test_iterators_2()
134 test_one<Iter, Sent, 2>({2, 1}, is_odd, 1, {1, 2}); in test_iterators_2()
136 test_one<Iter, Sent, 2>({1, 2}, is_odd, 1, {1, 2}); in test_iterators_2()
138 test_one<Iter, Sent, 3>({2, 1, 3}, is_odd, 2, {1, 3, 2}); in test_iterators_2()
140 test_one<Iter, Sent, 8>({2, 1, 3, 6, 8, 4, 11, 5}, is_odd, 4, {1, 3, 11, 5, 2, 6, 8, 4}); in test_iterators_2()
142 test_one<Iter, Sent, 8>({2, 1, 3, 6, 2, 8, 1, 6}, is_odd, 3, {1, 3, 1, 2, 6, 2, 8, 6}); in test_iterators_2()
144 test_one<Iter, Sent, 3>({1, 1, 1}, is_odd, 3, {1, 1, 1}); in test_iterators_2()
[all …]
H A Dranges_partition_point.pass.cpp80 constexpr void test_one(std::array<int, N> input, Pred pred, std::size_t partition_point) { in test_one() function
110 test_one<Iter, Sent, 0>({}, is_odd, 0); in test_iterators_2()
112 test_one<Iter, Sent, 1>({1}, is_odd, 1); in test_iterators_2()
114 test_one<Iter, Sent, 1>({2}, is_odd, 0); in test_iterators_2()
116 test_one<Iter, Sent, 2>({1, 2}, is_odd, 1); in test_iterators_2()
118 test_one<Iter, Sent, 3>({3, 1, 2}, is_odd, 2); in test_iterators_2()
120 test_one<Iter, Sent, 8>({1, 3, 11, 5, 6, 2, 8, 4}, is_odd, 4); in test_iterators_2()
122 test_one<Iter, Sent, 8>({1, 3, 3, 4, 6, 2, 8, 2}, is_odd, 3); in test_iterators_2()
124 test_one<Iter, Sent, 3>({1, 1, 1}, is_odd, 3); in test_iterators_2()
126 test_one<Iter, Sent, 3>({2, 2, 2}, is_odd, 0); in test_iterators_2()
[all …]
H A Dranges_partition_copy.pass.cpp122 constexpr void test_one(std::array<int, N1> input, Pred pred, std::array<int, N2> expected_true, in test_one() function
167 test_one<InIter, Sent, Out1, Out2, 0, 0, 0>({}, is_odd, {}, {}); in test_iterators_in_sent_out1_out2()
169 test_one<InIter, Sent, Out1, Out2, 1, 1, 0>({1}, is_odd, {1}, {}); in test_iterators_in_sent_out1_out2()
171 test_one<InIter, Sent, Out1, Out2, 1, 0, 1>({2}, is_odd, {}, {2}); in test_iterators_in_sent_out1_out2()
173 test_one<InIter, Sent, Out1, Out2, 2, 1, 1>({2, 1}, is_odd, {1}, {2}); in test_iterators_in_sent_out1_out2()
175 test_one<InIter, Sent, Out1, Out2, 2, 1, 1>({1, 2}, is_odd, {1}, {2}); in test_iterators_in_sent_out1_out2()
177 test_one<InIter, Sent, Out1, Out2, 3, 2, 1>({2, 1, 3}, is_odd, {1, 3}, {2}); in test_iterators_in_sent_out1_out2()
179test_one<InIter, Sent, Out1, Out2, 8, 4, 4>({2, 1, 3, 6, 8, 4, 11, 5}, is_odd, {1, 3, 11, 5}, {2, … in test_iterators_in_sent_out1_out2()
181test_one<InIter, Sent, Out1, Out2, 8, 3, 5>({2, 1, 3, 6, 2, 8, 1, 6}, is_odd, {1, 3, 1}, {2, 6, 2,… in test_iterators_in_sent_out1_out2()
183 test_one<InIter, Sent, Out1, Out2, 3, 3, 0>({1, 1, 1}, is_odd, {1, 1, 1}, {}); in test_iterators_in_sent_out1_out2()
[all …]
/llvm-project/libcxx/test/std/iterators/predef.iterators/move.iterators/move.sentinel/
H A Dop_eq.pass.cpp41 constexpr void test_one() { in test_one() function
60 test_one<cpp17_input_iterator<char*>>(); in test()
61 test_one<cpp20_input_iterator<char*>>(); in test()
62 test_one<forward_iterator<char*>>(); in test()
63 test_one<bidirectional_iterator<char*>>(); in test()
64 test_one<random_access_iterator<char*>>(); in test()
65 test_one<contiguous_iterator<char*>>(); in test()
66 test_one<three_way_contiguous_iterator<char*>>(); in test()
67 test_one<char*>(); in test()
68 test_one<const char*>(); in test()
/llvm-project/libcxx/test/std/iterators/predef.iterators/move.iterators/move.iter.ops/move.iter.op.-/
H A Dsentinel.pass.cpp47 constexpr void test_one() { in test_one() function
82 test_one<CustomIt>(); in test()
83 test_one<cpp17_input_iterator<int*>>(); in test()
84 test_one<forward_iterator<int*>>(); in test()
85 test_one<bidirectional_iterator<int*>>(); in test()
86 test_one<random_access_iterator<int*>>(); in test()
87 test_one<int*>(); in test()
88 test_one<const int*>(); in test()
89 test_one<contiguous_iterator<int*>>(); in test()
/llvm-project/libcxx/test/std/algorithms/alg.modifying.operations/alg.rotate/
H A Dranges_rotate.pass.cpp72 constexpr void test_one(const std::array<int, N> input, std::size_t mid_index, std::array<int, N> e… in test_one() function
104 test_one<Iter, Sent, 0>({}, 0, {}); in test_iter_sent()
107 test_one<Iter, Sent, 1>({1}, 0, {1}); in test_iter_sent()
110 test_one<Iter, Sent, 2>({1, 2}, 1, {2, 1}); in test_iter_sent()
113 test_one<Iter, Sent, 3>({1, 2, 3}, 1, {2, 3, 1}); in test_iter_sent()
114 test_one<Iter, Sent, 3>({1, 2, 3}, 2, {3, 1, 2}); in test_iter_sent()
117 test_one<Iter, Sent, 7>({1, 2, 3, 4, 5, 6, 7}, 2, {3, 4, 5, 6, 7, 1, 2}); in test_iter_sent()
120 test_one<Iter, Sent, 7>({1, 2, 3, 4, 5, 6, 7}, 3, {4, 5, 6, 7, 1, 2, 3}); in test_iter_sent()
123 test_one<Iter, Sent, 7>({1, 2, 3, 4, 5, 6, 7}, 0, {1, 2, 3, 4, 5, 6, 7}); in test_iter_sent()
126 test_one<Iter, Sent, 7>({1, 2, 3, 4, 5, 6, 7}, 1, {2, 3, 4, 5, 6, 7, 1}); in test_iter_sent()
[all …]
/llvm-project/libcxx/test/std/algorithms/alg.sorting/alg.heap.operations/is.heap/
H A Dranges_is_heap.pass.cpp76 constexpr void test_one(std::array<int, N> input, bool expected) { in test_one() function
95 test_one<Iter, Sent, 0>({}, true); in test_iter_sent()
97 test_one<Iter, Sent>(std::array{1}, true); in test_iter_sent()
99 test_one<Iter, Sent>(std::array{2, 1}, true); in test_iter_sent()
101 test_one<Iter, Sent>(std::array{1, 2}, false); in test_iter_sent()
103 test_one<Iter, Sent>(std::array{8, 6, 7, 3, 4, 1, 5, 2}, true); in test_iter_sent()
105 test_one<Iter, Sent>(std::array{8, 6, 7, 3, 4, 1, 2, 5}, false); in test_iter_sent()
107 test_one<Iter, Sent>(std::array{8, 7, 5, 5, 6, 4, 1, 2, 3, 2}, true); in test_iter_sent()
109 test_one<Iter, Sent>(std::array{7, 5, 5, 6, 4, 1, 2, 3, 2, 8}, false); in test_iter_sent()
111 test_one<Iter, Sent>(std::array{1, 1, 1}, true); in test_iter_sent()
H A Dranges_is_heap_until.pass.cpp76 constexpr void test_one(std::array<int, N> input, std::size_t until_index) { in test_one() function
95 test_one<Iter, Sent, 0>({}, 0); in test_iter_sent()
97 test_one<Iter, Sent>(std::array{1}, 1); in test_iter_sent()
99 test_one<Iter, Sent>(std::array{2, 1}, 2); in test_iter_sent()
101 test_one<Iter, Sent>(std::array{1, 2}, 1); in test_iter_sent()
103 test_one<Iter, Sent>(std::array{8, 6, 7, 3, 4, 1, 5, 2}, 8); in test_iter_sent()
105 test_one<Iter, Sent>(std::array{8, 6, 7, 3, 4, 1, 2, 5}, 7); in test_iter_sent()
107 test_one<Iter, Sent>(std::array{8, 7, 5, 5, 6, 4, 1, 2, 3, 2}, 10); in test_iter_sent()
109 test_one<Iter, Sent>(std::array{7, 5, 5, 6, 4, 1, 2, 3, 2, 8}, 3); in test_iter_sent()
111 test_one<Iter, Sent>(std::array{1, 1, 1}, 3); in test_iter_sent()
/llvm-project/libcxx/test/std/iterators/predef.iterators/move.iterators/move.iter.ops/move.iter.op.conv/
H A Dbase.pass.cpp54 TEST_CONSTEXPR_CXX14 void test_one() { in test_one() function
97 test_one<cpp17_input_iterator<int*> >(); in test()
98 test_one<forward_iterator<int*> >(); in test()
99 test_one<bidirectional_iterator<int*> >(); in test()
100 test_one<random_access_iterator<int*> >(); in test()
101 test_one<int*>(); in test()
102 test_one<const int*>(); in test()
104 test_one<contiguous_iterator<int*>>(); in test()
/llvm-project/libcxx/test/libcxx/algorithms/alg.modifying.operations/
H A Dcopy_move_unwrap_reverse.pass.cpp41 constexpr void test_one(Func func) { in test_one() function
67 test_one<InIter, SentWrapper, OutIter, W1, W2>([](auto first, auto last, auto out, std::size_t) { in test_copy_and_move()
70 test_one<InIter, SentWrapper, OutIter, W1, W2>([](auto first, auto last, auto out, std::size_t n) { in test_copy_and_move()
73 test_one<InIter, SentWrapper, OutIter, W1, W2>([](auto first, auto, auto out, std::size_t n) { in test_copy_and_move()
76 test_one<InIter, SentWrapper, OutIter, W1, W2>([](auto first, auto last, auto out, std::size_t) { in test_copy_and_move()
79 test_one<InIter, SentWrapper, OutIter, W1, W2>([](auto first, auto last, auto out, std::size_t n) { in test_copy_and_move()
85 test_one<InIter, SentWrapper, OutIter, W1, W2>([](auto first, auto last, auto out, std::size_t) { in test_copy_and_move()
88 test_one<InIter, SentWrapper, OutIter, W1, W2>([](auto first, auto last, auto out, std::size_t n) { in test_copy_and_move()
91 test_one<InIter, SentWrapper, OutIter, W1, W2>([](auto first, auto, auto out, std::size_t n) { in test_copy_and_move()
94 test_one<InIte in test_copy_and_move()
[all...]
/llvm-project/libcxx/test/std/algorithms/alg.sorting/alg.heap.operations/make.heap/
H A Dranges_make_heap.pass.cpp69 constexpr void test_one(const std::array<int, N> input, std::array<int, N> expected) { in test_one()
93 test_one<Iter, Sent, 0>({}, {}); in test_iterators_2()
95 test_one<Iter, Sent, 1>({1}, {1}); in test_iterators_2()
97 test_one<Iter, Sent, 2>({2, 1}, {2, 1}); in test_iterators_2()
99 test_one<Iter, Sent, 3>({2, 1, 3}, {3, 1, 2}); in test_iterators_2()
101 test_one<Iter, Sent, 8>({2, 1, 3, 6, 8, 4, 11, 5}, {11, 8, 4, 6, 1, 2, 3, 5}); in test_iterators_2()
103 test_one<Iter, Sent, 7>({2, 1, 3, 6, 2, 8, 6}, {8, 6, 6, 1, 2, 3, 2}); in test_iterators_2()
105 test_one<Iter, Sent, 3>({1, 1, 1}, {1, 1, 1}); in test_iterators_2()
107 test_one<Iter, Sent, 5>({5, 4, 3, 1, 2}, {5, 4, 3, 1, 2}); in test_iterators_2()
109 test_one<Ite in test_iterators_2()
68 constexpr void test_one(const std::array<int, N> input, std::array<int, N> expected) { test_one() function
[all...]
/llvm-project/libcxx/test/std/algorithms/alg.sorting/alg.sort/sort/
H A Dranges.sort.pass.cpp61 constexpr void test_one(std::array<int, N> input, std::array<int, N> expected) { in test_one() function
87 test_one<Iter, Sent, 0>({}, {}); in test_iterators_2()
89 test_one<Iter, Sent, 1>({1}, {1}); in test_iterators_2()
91 test_one<Iter, Sent, 2>({2, 1}, {1, 2}); in test_iterators_2()
93 test_one<Iter, Sent, 3>({2, 1, 3}, {1, 2, 3}); in test_iterators_2()
95 test_one<Iter, Sent, 8>({2, 1, 3, 6, 8, 4, 11, 5}, {1, 2, 3, 4, 5, 6, 8, 11}); in test_iterators_2()
97 test_one<Iter, Sent, 7>({2, 1, 3, 6, 2, 8, 6}, {1, 2, 2, 3, 6, 6, 8}); in test_iterators_2()
99 test_one<Iter, Sent, 3>({1, 1, 1}, {1, 1, 1}); in test_iterators_2()
101 test_one<Iter, Sent, 5>({1, 2, 3, 4, 5}, {1, 2, 3, 4, 5}); in test_iterators_2()
103 test_one<Iter, Sent, 5>({5, 4, 3, 2, 1}, {1, 2, 3, 4, 5}); in test_iterators_2()
[all …]

1234