Home
last modified time | relevance | path

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

123

/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.sorting/alg.merge/
H A Dinplace_merge.pass.cpp74 test_one<Iter>(N, 0); in test()
78 test_one<Iter>(N, N); in test()
85 test_one<Iter>(0, 0); in test()
86 test_one<Iter>(1, 0); in test()
87 test_one<Iter>(1, 1); in test()
88 test_one<Iter>(2, 0); in test()
89 test_one<Iter>(2, 1); in test()
90 test_one<Iter>(2, 2); in test()
91 test_one<Iter>(3, 0); in test()
92 test_one<Iter>(3, 1); in test()
[all …]
H A Dinplace_merge_comp.pass.cpp93 test_one<Iter>(N, 0); in test()
97 test_one<Iter>(N, N); in test()
104 test_one<Iter>(0, 0); in test()
105 test_one<Iter>(1, 0); in test()
106 test_one<Iter>(1, 1); in test()
107 test_one<Iter>(2, 0); in test()
108 test_one<Iter>(2, 1); in test()
109 test_one<Iter>(2, 2); in test()
110 test_one<Iter>(3, 0); in test()
111 test_one<Iter>(3, 1); in test()
[all …]
/llvm-project-15.0.7/libcxx/test/std/ranges/range.adaptors/range.lazy.split/
H A Dgeneral.pass.cpp314 test_one("abc"sv, short_sep, expected); in main_test()
315 test_one("abc"sv, long_sep, expected); in main_test()
321 test_one(" "sv, short_sep, expected); in main_test()
322 test_one("12"sv, long_sep, expected); in main_test()
328 test_one(" "sv, short_sep, expected); in main_test()
329 test_one("121212"sv, long_sep, expected); in main_test()
363 test_one(""sv, short_sep, expected); in main_test()
364 test_one(""sv, long_sep, expected); in main_test()
371 test_one("abc"sv, empty_sep, expected); in main_test()
372 test_one("abc"sv, empty_sep, expected); in main_test()
[all …]
/llvm-project-15.0.7/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_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()
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_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()
/llvm-project-15.0.7/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-15.0.7/libcxx/test/std/algorithms/alg.modifying.operations/alg.partitions/
H A Dranges_partition.pass.cpp125 test_one<Iter, Sent, 0>({}, is_odd, 0); in test_iterators_2()
127 test_one<Iter, Sent, 1>({1}, is_odd, 1); in test_iterators_2()
129 test_one<Iter, Sent, 1>({2}, is_odd, 0); in test_iterators_2()
131 test_one<Iter, Sent, 2>({2, 1}, is_odd, 1); in test_iterators_2()
133 test_one<Iter, Sent, 2>({1, 2}, is_odd, 1); in test_iterators_2()
135 test_one<Iter, Sent, 3>({2, 1, 3}, is_odd, 2); in test_iterators_2()
141 test_one<Iter, Sent, 3>({1, 1, 1}, is_odd, 3); in test_iterators_2()
143 test_one<Iter, Sent, 3>({2, 2, 2}, is_odd, 0); in test_iterators_2()
145 test_one<Iter, Sent, 6>({1, 3, 5, 4, 6, 8}, is_odd, 3); in test_iterators_2()
147 test_one<Iter, Sent, 6>({4, 6, 8, 1, 3, 5}, is_odd, 3); in test_iterators_2()
[all …]
H A Dranges_stable_partition.pass.cpp129 test_one<Iter, Sent, 0>({}, is_odd, 0, {}); in test_iterators_2()
131 test_one<Iter, Sent, 1>({1}, is_odd, 1, {1}); in test_iterators_2()
133 test_one<Iter, Sent, 1>({2}, is_odd, 0, {2}); in test_iterators_2()
135 test_one<Iter, Sent, 2>({2, 1}, is_odd, 1, {1, 2}); in test_iterators_2()
137 test_one<Iter, Sent, 2>({1, 2}, is_odd, 1, {1, 2}); in test_iterators_2()
139 test_one<Iter, Sent, 3>({2, 1, 3}, is_odd, 2, {1, 3, 2}); in test_iterators_2()
145 test_one<Iter, Sent, 3>({1, 1, 1}, is_odd, 3, {1, 1, 1}); in test_iterators_2()
147 test_one<Iter, Sent, 3>({2, 2, 2}, is_odd, 0, {2, 2, 2}); in test_iterators_2()
149 test_one<Iter, Sent, 6>({1, 3, 5, 4, 6, 8}, is_odd, 3, {1, 3, 5, 4, 6, 8}); in test_iterators_2()
151 test_one<Iter, Sent, 6>({4, 6, 8, 1, 3, 5}, is_odd, 3, {1, 3, 5, 4, 6, 8}); in test_iterators_2()
[all …]
H A Dranges_partition_point.pass.cpp111 test_one<Iter, Sent, 0>({}, is_odd, 0); in test_iterators_2()
113 test_one<Iter, Sent, 1>({1}, is_odd, 1); in test_iterators_2()
115 test_one<Iter, Sent, 1>({2}, is_odd, 0); in test_iterators_2()
117 test_one<Iter, Sent, 2>({1, 2}, is_odd, 1); in test_iterators_2()
119 test_one<Iter, Sent, 3>({3, 1, 2}, is_odd, 2); in test_iterators_2()
121 test_one<Iter, Sent, 8>({1, 3, 11, 5, 6, 2, 8, 4}, is_odd, 4); in test_iterators_2()
123 test_one<Iter, Sent, 8>({1, 3, 3, 4, 6, 2, 8, 2}, is_odd, 3); in test_iterators_2()
125 test_one<Iter, Sent, 3>({1, 1, 1}, is_odd, 3); in test_iterators_2()
127 test_one<Iter, Sent, 3>({2, 2, 2}, is_odd, 0); in test_iterators_2()
129 test_one<Iter, Sent, 6>({1, 1, 1, 2, 2, 2}, is_odd, 3); in test_iterators_2()
[all …]
H A Dranges_partition_copy.pass.cpp123 constexpr void test_one(std::array<int, N1> input, Pred pred, std::array<int, N2> expected_true, in test_one() function
168 test_one<InIter, Sent, Out1, Out2, 0, 0, 0>({}, is_odd, {}, {}); in test_iterators_in_sent_out1_out2()
170 test_one<InIter, Sent, Out1, Out2, 1, 1, 0>({1}, is_odd, {1}, {}); in test_iterators_in_sent_out1_out2()
172 test_one<InIter, Sent, Out1, Out2, 1, 0, 1>({2}, is_odd, {}, {2}); in test_iterators_in_sent_out1_out2()
174 test_one<InIter, Sent, Out1, Out2, 2, 1, 1>({2, 1}, is_odd, {1}, {2}); in test_iterators_in_sent_out1_out2()
176 test_one<InIter, Sent, Out1, Out2, 2, 1, 1>({1, 2}, is_odd, {1}, {2}); in test_iterators_in_sent_out1_out2()
178 test_one<InIter, Sent, Out1, Out2, 3, 2, 1>({2, 1, 3}, is_odd, {1, 3}, {2}); in test_iterators_in_sent_out1_out2()
184 test_one<InIter, Sent, Out1, Out2, 3, 3, 0>({1, 1, 1}, is_odd, {1, 1, 1}, {}); in test_iterators_in_sent_out1_out2()
186 test_one<InIter, Sent, Out1, Out2, 3, 0, 3>({2, 2, 2}, is_odd, {}, {2, 2, 2}); in test_iterators_in_sent_out1_out2()
188 test_one<InIter, Sent, Out1, Out2, 6, 3, 3>({1, 3, 5, 4, 6, 8}, is_odd, {1, 3, 5}, {4, 6, 8}); in test_iterators_in_sent_out1_out2()
[all …]
/llvm-project-15.0.7/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-15.0.7/libcxx/test/std/algorithms/alg.modifying.operations/alg.rotate/
H A Dranges_rotate.pass.cpp105 test_one<Iter, Sent, 0>({}, 0, {}); in test_iter_sent()
108 test_one<Iter, Sent, 1>({1}, 0, {1}); in test_iter_sent()
111 test_one<Iter, Sent, 2>({1, 2}, 1, {2, 1}); in test_iter_sent()
114 test_one<Iter, Sent, 3>({1, 2, 3}, 1, {2, 3, 1}); in test_iter_sent()
115 test_one<Iter, Sent, 3>({1, 2, 3}, 2, {3, 1, 2}); in test_iter_sent()
118 test_one<Iter, Sent, 7>({1, 2, 3, 4, 5, 6, 7}, 2, {3, 4, 5, 6, 7, 1, 2}); in test_iter_sent()
121 test_one<Iter, Sent, 7>({1, 2, 3, 4, 5, 6, 7}, 3, {4, 5, 6, 7, 1, 2, 3}); in test_iter_sent()
124 test_one<Iter, Sent, 7>({1, 2, 3, 4, 5, 6, 7}, 0, {1, 2, 3, 4, 5, 6, 7}); in test_iter_sent()
127 test_one<Iter, Sent, 7>({1, 2, 3, 4, 5, 6, 7}, 1, {2, 3, 4, 5, 6, 7, 1}); in test_iter_sent()
130 test_one<Iter, Sent, 7>({1, 2, 3, 4, 5, 6, 7}, 6, {7, 1, 2, 3, 4, 5, 6}); in test_iter_sent()
[all …]
/llvm-project-15.0.7/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-15.0.7/libcxx/test/std/algorithms/alg.sorting/alg.heap.operations/is.heap/
H A Dranges_is_heap.pass.cpp77 constexpr void test_one(std::array<int, N> input, bool expected) { in test_one() function
96 test_one<Iter, Sent, 0>({}, true); in test_iter_sent()
98 test_one<Iter, Sent>(std::array{1}, true); in test_iter_sent()
100 test_one<Iter, Sent>(std::array{2, 1}, true); in test_iter_sent()
102 test_one<Iter, Sent>(std::array{1, 2}, false); in test_iter_sent()
104 test_one<Iter, Sent>(std::array{8, 6, 7, 3, 4, 1, 5, 2}, true); in test_iter_sent()
106 test_one<Iter, Sent>(std::array{8, 6, 7, 3, 4, 1, 2, 5}, false); in test_iter_sent()
108 test_one<Iter, Sent>(std::array{8, 7, 5, 5, 6, 4, 1, 2, 3, 2}, true); in test_iter_sent()
110 test_one<Iter, Sent>(std::array{7, 5, 5, 6, 4, 1, 2, 3, 2, 8}, false); in test_iter_sent()
112 test_one<Iter, Sent>(std::array{1, 1, 1}, true); in test_iter_sent()
H A Dranges_is_heap_until.pass.cpp77 constexpr void test_one(std::array<int, N> input, size_t until_index) { in test_one() function
96 test_one<Iter, Sent, 0>({}, 0); in test_iter_sent()
98 test_one<Iter, Sent>(std::array{1}, 1); in test_iter_sent()
100 test_one<Iter, Sent>(std::array{2, 1}, 2); in test_iter_sent()
102 test_one<Iter, Sent>(std::array{1, 2}, 1); in test_iter_sent()
104 test_one<Iter, Sent>(std::array{8, 6, 7, 3, 4, 1, 5, 2}, 8); in test_iter_sent()
106 test_one<Iter, Sent>(std::array{8, 6, 7, 3, 4, 1, 2, 5}, 7); in test_iter_sent()
108 test_one<Iter, Sent>(std::array{8, 7, 5, 5, 6, 4, 1, 2, 3, 2}, 10); in test_iter_sent()
110 test_one<Iter, Sent>(std::array{7, 5, 5, 6, 4, 1, 2, 3, 2, 8}, 3); in test_iter_sent()
112 test_one<Iter, Sent>(std::array{1, 1, 1}, 3); in test_iter_sent()
/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.sorting/alg.sort/sort/
H A Dranges.sort.pass.cpp63 constexpr void test_one(std::array<int, N> input, std::array<int, N> expected) { in test_one() function
89 test_one<Iter, Sent, 0>({}, {}); in test_iterators_2()
91 test_one<Iter, Sent, 1>({1}, {1}); in test_iterators_2()
93 test_one<Iter, Sent, 2>({2, 1}, {1, 2}); in test_iterators_2()
95 test_one<Iter, Sent, 3>({2, 1, 3}, {1, 2, 3}); in test_iterators_2()
97 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()
99 test_one<Iter, Sent, 7>({2, 1, 3, 6, 2, 8, 6}, {1, 2, 2, 3, 6, 6, 8}); in test_iterators_2()
101 test_one<Iter, Sent, 3>({1, 1, 1}, {1, 1, 1}); in test_iterators_2()
103 test_one<Iter, Sent, 5>({1, 2, 3, 4, 5}, {1, 2, 3, 4, 5}); in test_iterators_2()
105 test_one<Iter, Sent, 5>({5, 4, 3, 2, 1}, {1, 2, 3, 4, 5}); in test_iterators_2()
[all …]
/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.sorting/alg.heap.operations/make.heap/
H A Dranges_make_heap.pass.cpp70 constexpr void test_one(const std::array<int, N> input, std::array<int, N> expected) { in test_one() function
94 test_one<Iter, Sent, 0>({}, {}); in test_iterators_2()
96 test_one<Iter, Sent, 1>({1}, {1}); in test_iterators_2()
98 test_one<Iter, Sent, 2>({2, 1}, {2, 1}); in test_iterators_2()
100 test_one<Iter, Sent, 3>({2, 1, 3}, {3, 1, 2}); in test_iterators_2()
102 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()
104 test_one<Iter, Sent, 7>({2, 1, 3, 6, 2, 8, 6}, {8, 6, 6, 1, 2, 3, 2}); in test_iterators_2()
106 test_one<Iter, Sent, 3>({1, 1, 1}, {1, 1, 1}); in test_iterators_2()
108 test_one<Iter, Sent, 5>({5, 4, 3, 1, 2}, {5, 4, 3, 1, 2}); in test_iterators_2()
110 test_one<Iter, Sent, 5>({1, 2, 3, 4, 5}, {5, 4, 3, 1, 2}); in test_iterators_2()
[all …]
/llvm-project-15.0.7/lldb/third_party/Python/module/unittest2/unittest2/test/
H A Dtest_setups.py40 def test_one(self): member in TestSetups.test_setup_class.Test
61 def test_one(self): member in TestSetups.test_teardown_class.Test
82 def test_one(self): member in TestSetups.test_teardown_class_two_classes.Test
96 def test_one(self): member in TestSetups.test_teardown_class_two_classes.Test2
116 def test_one(self): member in TestSetups.test_error_in_setupclass.BrokenTest
139 def test_one(self): member in TestSetups.test_error_in_teardown_class.Test
153 def test_one(self): member in TestSetups.test_error_in_teardown_class.Test2
182 def test_one(self): member in TestSetups.test_class_not_torndown_when_setup_fails.Test
201 def test_one(self): member in TestSetups.test_class_not_setup_or_torndown_when_skipped.Test
318 def test_one(self): member in TestSetups.test_setup_module.Test
[all …]
/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.sorting/alg.sort/stable.sort/
H A Dranges.stable.sort.pass.cpp62 void test_one(std::array<int, N> input, std::array<int, N> expected) { in test_one() function
88 test_one<Iter, Sent, 0>({}, {}); in test_iterators_2()
90 test_one<Iter, Sent, 1>({1}, {1}); in test_iterators_2()
92 test_one<Iter, Sent, 2>({2, 1}, {1, 2}); in test_iterators_2()
94 test_one<Iter, Sent, 3>({2, 1, 3}, {1, 2, 3}); in test_iterators_2()
96 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()
98 test_one<Iter, Sent, 7>({2, 1, 3, 6, 2, 8, 6}, {1, 2, 2, 3, 6, 6, 8}); in test_iterators_2()
100 test_one<Iter, Sent, 3>({1, 1, 1}, {1, 1, 1}); in test_iterators_2()
102 test_one<Iter, Sent, 5>({1, 2, 3, 4, 5}, {1, 2, 3, 4, 5}); in test_iterators_2()
104 test_one<Iter, Sent, 5>({5, 4, 3, 2, 1}, {1, 2, 3, 4, 5}); in test_iterators_2()
[all …]
/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.sorting/alg.heap.operations/push.heap/
H A Dranges_push_heap.pass.cpp70 constexpr void test_one(const std::array<int, N> input, std::array<int, N> expected) { in test_one() function
98 test_one<Iter, Sent, 0>({}, {}); in test_iterators_2()
100 test_one<Iter, Sent, 1>({1}, {1}); in test_iterators_2()
102 test_one<Iter, Sent, 2>({2, 1}, {2, 1}); in test_iterators_2()
104 test_one<Iter, Sent, 3>({2, 1, 3}, {3, 1, 2}); in test_iterators_2()
106 test_one<Iter, Sent, 8>({11, 6, 5, 1, 4, 3, 2, 8}, {11, 8, 5, 6, 4, 3, 2, 1}); in test_iterators_2()
108 test_one<Iter, Sent, 7>({8, 6, 3, 1, 2, 2, 6}, {8, 6, 6, 1, 2, 2, 3}); in test_iterators_2()
110 test_one<Iter, Sent, 4>({1, 1, 1, 1}, {1, 1, 1, 1}); in test_iterators_2()
112 test_one<Iter, Sent, 5>({5, 4, 3, 1, 2}, {5, 4, 3, 1, 2}); in test_iterators_2()
114 test_one<Iter, Sent, 5>({5, 4, 3, 2, 1}, {5, 4, 3, 2, 1}); in test_iterators_2()
/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.modifying.operations/alg.generate/
H A Dranges_generate_n.pass.cpp71 constexpr void test_one(std::array<int, N> in, size_t n, Gen gen, std::array<int, N> expected) { in test_one() function
86 test_one<Iter, 0>({}, 0, gen, {}); in test_iter()
88 test_one<Iter>(std::array{-10}, 0, gen, {-10}); in test_iter()
90 test_one<Iter>(std::array{-10}, 1, gen, {1}); in test_iter()
92 test_one<Iter>(std::array{-10, -20, -30, -40, -50}, 3, gen, {1, 2, 3, -40, -50}); in test_iter()
94 test_one<Iter>(std::array<int, 5>{}, 5, gen, {1, 2, 3, 4, 5}); in test_iter()

123