/external/libcxx/test/std/algorithms/alg.nonmodifying/alg.search/ |
D | search_n.pass.cpp | 23 template <class Iter> 29 assert(std::search_n(Iter(ia), Iter(ia+sa), 0, 0) == Iter(ia)); in test() 30 assert(std::search_n(Iter(ia), Iter(ia+sa), 1, 0) == Iter(ia+0)); in test() 31 assert(std::search_n(Iter(ia), Iter(ia+sa), 2, 0) == Iter(ia+sa)); in test() 32 assert(std::search_n(Iter(ia), Iter(ia+sa), sa, 0) == Iter(ia+sa)); in test() 33 assert(std::search_n(Iter(ia), Iter(ia+sa), 0, 3) == Iter(ia)); in test() 34 assert(std::search_n(Iter(ia), Iter(ia+sa), 1, 3) == Iter(ia+3)); in test() 35 assert(std::search_n(Iter(ia), Iter(ia+sa), 2, 3) == Iter(ia+sa)); in test() 36 assert(std::search_n(Iter(ia), Iter(ia+sa), sa, 3) == Iter(ia+sa)); in test() 37 assert(std::search_n(Iter(ia), Iter(ia+sa), 0, 5) == Iter(ia)); in test() [all …]
|
D | search_n_pred.pass.cpp | 34 template <class Iter> 41 assert(std::search_n(Iter(ia), Iter(ia+sa), 0, 0, count_equal()) == Iter(ia)); in test() 44 assert(std::search_n(Iter(ia), Iter(ia+sa), 1, 0, count_equal()) == Iter(ia+0)); in test() 47 assert(std::search_n(Iter(ia), Iter(ia+sa), 2, 0, count_equal()) == Iter(ia+sa)); in test() 50 assert(std::search_n(Iter(ia), Iter(ia+sa), sa, 0, count_equal()) == Iter(ia+sa)); in test() 53 assert(std::search_n(Iter(ia), Iter(ia+sa), 0, 3, count_equal()) == Iter(ia)); in test() 56 assert(std::search_n(Iter(ia), Iter(ia+sa), 1, 3, count_equal()) == Iter(ia+3)); in test() 59 assert(std::search_n(Iter(ia), Iter(ia+sa), 2, 3, count_equal()) == Iter(ia+sa)); in test() 62 assert(std::search_n(Iter(ia), Iter(ia+sa), sa, 3, count_equal()) == Iter(ia+sa)); in test() 65 assert(std::search_n(Iter(ia), Iter(ia+sa), 0, 5, count_equal()) == Iter(ia)); in test() [all …]
|
/external/libcxx/test/std/algorithms/alg.sorting/alg.sort/is.sorted/ |
D | is_sorted_until.pass.cpp | 22 template <class Iter> 29 assert(std::is_sorted_until(Iter(a), Iter(a)) == Iter(a)); in test() 30 assert(std::is_sorted_until(Iter(a), Iter(a+sa)) == Iter(a+sa)); in test() 36 assert(std::is_sorted_until(Iter(a), Iter(a+sa)) == Iter(a+sa)); in test() 41 assert(std::is_sorted_until(Iter(a), Iter(a+sa)) == Iter(a+sa)); in test() 46 assert(std::is_sorted_until(Iter(a), Iter(a+sa)) == Iter(a+1)); in test() 51 assert(std::is_sorted_until(Iter(a), Iter(a+sa)) == Iter(a+sa)); in test() 57 assert(std::is_sorted_until(Iter(a), Iter(a+sa)) == Iter(a+sa)); in test() 62 assert(std::is_sorted_until(Iter(a), Iter(a+sa)) == Iter(a+sa)); in test() 67 assert(std::is_sorted_until(Iter(a), Iter(a+sa)) == Iter(a+2)); in test() [all …]
|
D | is_sorted_until_comp.pass.cpp | 23 template <class Iter> 30 assert(std::is_sorted_until(Iter(a), Iter(a), std::greater<int>()) == Iter(a)); in test() 31 assert(std::is_sorted_until(Iter(a), Iter(a+sa), std::greater<int>()) == Iter(a+sa)); in test() 37 assert(std::is_sorted_until(Iter(a), Iter(a+sa), std::greater<int>()) == Iter(a+sa)); in test() 42 assert(std::is_sorted_until(Iter(a), Iter(a+sa), std::greater<int>()) == Iter(a+1)); in test() 47 assert(std::is_sorted_until(Iter(a), Iter(a+sa), std::greater<int>()) == Iter(a+sa)); in test() 52 assert(std::is_sorted_until(Iter(a), Iter(a+sa), std::greater<int>()) == Iter(a+sa)); in test() 58 assert(std::is_sorted_until(Iter(a), Iter(a+sa), std::greater<int>()) == Iter(a+sa)); in test() 63 assert(std::is_sorted_until(Iter(a), Iter(a+sa), std::greater<int>()) == Iter(a+2)); in test() 68 assert(std::is_sorted_until(Iter(a), Iter(a+sa), std::greater<int>()) == Iter(a+1)); in test() [all …]
|
D | is_sorted.pass.cpp | 22 template <class Iter> 29 assert(std::is_sorted(Iter(a), Iter(a))); in test() 30 assert(std::is_sorted(Iter(a), Iter(a+sa))); in test() 36 assert(std::is_sorted(Iter(a), Iter(a+sa))); in test() 41 assert(std::is_sorted(Iter(a), Iter(a+sa))); in test() 46 assert(!std::is_sorted(Iter(a), Iter(a+sa))); in test() 51 assert(std::is_sorted(Iter(a), Iter(a+sa))); in test() 57 assert(std::is_sorted(Iter(a), Iter(a+sa))); in test() 62 assert(std::is_sorted(Iter(a), Iter(a+sa))); in test() 67 assert(!std::is_sorted(Iter(a), Iter(a+sa))); in test() [all …]
|
D | is_sorted_comp.pass.cpp | 23 template <class Iter> 30 assert(std::is_sorted(Iter(a), Iter(a))); in test() 31 assert(std::is_sorted(Iter(a), Iter(a+sa), std::greater<int>())); in test() 37 assert(std::is_sorted(Iter(a), Iter(a+sa), std::greater<int>())); in test() 42 assert(!std::is_sorted(Iter(a), Iter(a+sa), std::greater<int>())); in test() 47 assert(std::is_sorted(Iter(a), Iter(a+sa), std::greater<int>())); in test() 52 assert(std::is_sorted(Iter(a), Iter(a+sa), std::greater<int>())); in test() 58 assert(std::is_sorted(Iter(a), Iter(a+sa), std::greater<int>())); in test() 63 assert(!std::is_sorted(Iter(a), Iter(a+sa), std::greater<int>())); in test() 68 assert(!std::is_sorted(Iter(a), Iter(a+sa), std::greater<int>())); in test() [all …]
|
/external/libcxx/test/std/algorithms/alg.modifying.operations/alg.rotate/ |
D | rotate.pass.cpp | 24 template <class Iter> 30 Iter r = std::rotate(Iter(ia), Iter(ia), Iter(ia)); in test() 33 r = std::rotate(Iter(ia), Iter(ia), Iter(ia+sa)); in test() 36 r = std::rotate(Iter(ia), Iter(ia+sa), Iter(ia+sa)); in test() 42 r = std::rotate(Iter(ib), Iter(ib), Iter(ib+sb)); in test() 46 r = std::rotate(Iter(ib), Iter(ib+1), Iter(ib+sb)); in test() 50 r = std::rotate(Iter(ib), Iter(ib+sb), Iter(ib+sb)); in test() 57 r = std::rotate(Iter(ic), Iter(ic), Iter(ic+sc)); in test() 62 r = std::rotate(Iter(ic), Iter(ic+1), Iter(ic+sc)); in test() 67 r = std::rotate(Iter(ic), Iter(ic+2), Iter(ic+sc)); in test() [all …]
|
/external/libcxx/test/std/algorithms/alg.sorting/alg.sort/partial.sort.copy/ |
D | partial_sort_copy.pass.cpp | 25 template <class Iter> 34 int* r = std::partial_sort_copy(Iter(input), Iter(input+N), output, output+M); in test_larger_sorts() 44 template <class Iter> 48 test_larger_sorts<Iter>(N, 0); in test_larger_sorts() 49 test_larger_sorts<Iter>(N, 1); in test_larger_sorts() 50 test_larger_sorts<Iter>(N, 2); in test_larger_sorts() 51 test_larger_sorts<Iter>(N, 3); in test_larger_sorts() 52 test_larger_sorts<Iter>(N, N/2-1); in test_larger_sorts() 53 test_larger_sorts<Iter>(N, N/2); in test_larger_sorts() 54 test_larger_sorts<Iter>(N, N/2+1); in test_larger_sorts() [all …]
|
D | partial_sort_copy_comp.pass.cpp | 28 template <class Iter> 37 int* r = std::partial_sort_copy(Iter(input), Iter(input+N), output, output+M, in test_larger_sorts() 48 template <class Iter> 52 test_larger_sorts<Iter>(N, 0); in test_larger_sorts() 53 test_larger_sorts<Iter>(N, 1); in test_larger_sorts() 54 test_larger_sorts<Iter>(N, 2); in test_larger_sorts() 55 test_larger_sorts<Iter>(N, 3); in test_larger_sorts() 56 test_larger_sorts<Iter>(N, N/2-1); in test_larger_sorts() 57 test_larger_sorts<Iter>(N, N/2); in test_larger_sorts() 58 test_larger_sorts<Iter>(N, N/2+1); in test_larger_sorts() [all …]
|
/external/libcxx/test/std/numerics/numeric.ops/accumulate/ |
D | accumulate_op.pass.cpp | 25 template <class Iter, class T> 27 test(Iter first, Iter last, T init, T x) in test() 32 template <class Iter> 38 test(Iter(ia), Iter(ia), 1, 1); in test() 39 test(Iter(ia), Iter(ia), 10, 10); in test() 40 test(Iter(ia), Iter(ia+1), 1, 1); in test() 41 test(Iter(ia), Iter(ia+1), 10, 10); in test() 42 test(Iter(ia), Iter(ia+2), 1, 2); in test() 43 test(Iter(ia), Iter(ia+2), 10, 20); in test() 44 test(Iter(ia), Iter(ia+sa), 1, 720); in test() [all …]
|
D | accumulate.pass.cpp | 23 template <class Iter, class T> 25 test(Iter first, Iter last, T init, T x) in test() 30 template <class Iter> 36 test(Iter(ia), Iter(ia), 0, 0); in test() 37 test(Iter(ia), Iter(ia), 10, 10); in test() 38 test(Iter(ia), Iter(ia+1), 0, 1); in test() 39 test(Iter(ia), Iter(ia+1), 10, 11); in test() 40 test(Iter(ia), Iter(ia+2), 0, 3); in test() 41 test(Iter(ia), Iter(ia+2), 10, 13); in test() 42 test(Iter(ia), Iter(ia+sa), 0, 21); in test() [all …]
|
/external/libcxx/test/std/algorithms/alg.sorting/alg.merge/ |
D | inplace_merge.pass.cpp | 45 template <class Iter> 49 typedef typename std::iterator_traits<Iter>::value_type value_type; in test_one() 57 std::inplace_merge(Iter(ia), Iter(ia+M), Iter(ia+N)); in test_one() 67 template <class Iter> 71 test_one<Iter>(N, 0); in test() 72 test_one<Iter>(N, N/4); in test() 73 test_one<Iter>(N, N/2); in test() 74 test_one<Iter>(N, 3*N/4); in test() 75 test_one<Iter>(N, N); in test() 78 template <class Iter> [all …]
|
D | inplace_merge_comp.pass.cpp | 61 template <class Iter> 66 typedef typename std::iterator_traits<Iter>::value_type value_type; in test_one() 74 std::inplace_merge(Iter(ia), Iter(ia+M), Iter(ia+N), std::ref(pred)); in test_one() 85 template <class Iter> 89 test_one<Iter>(N, 0); in test() 90 test_one<Iter>(N, N/4); in test() 91 test_one<Iter>(N, N/2); in test() 92 test_one<Iter>(N, 3*N/4); in test() 93 test_one<Iter>(N, N); in test() 96 template <class Iter> [all …]
|
/external/libcxx/test/std/algorithms/alg.modifying.operations/alg.unique/ |
D | unique.pass.cpp | 26 template <class Iter> 32 Iter r = std::unique(Iter(ia), Iter(ia+sa)); in test() 38 r = std::unique(Iter(ib), Iter(ib+sb)); in test() 45 r = std::unique(Iter(ic), Iter(ic+sc)); in test() 51 r = std::unique(Iter(id), Iter(id+sd)); in test() 58 r = std::unique(Iter(ie), Iter(ie+se)); in test() 66 r = std::unique(Iter(ig), Iter(ig+sg)); in test() 73 r = std::unique(Iter(ih), Iter(ih+sh)); in test() 80 r = std::unique(Iter(ii), Iter(ii+si)); in test() 96 template <class Iter> [all …]
|
D | unique_pred.pass.cpp | 36 template <class Iter> 43 Iter r = std::unique(Iter(ia), Iter(ia+sa), count_equal()); in test() 51 r = std::unique(Iter(ib), Iter(ib+sb), count_equal()); in test() 60 r = std::unique(Iter(ic), Iter(ic+sc), count_equal()); in test() 68 r = std::unique(Iter(id), Iter(id+sd), count_equal()); in test() 77 r = std::unique(Iter(ie), Iter(ie+se), count_equal()); in test() 87 r = std::unique(Iter(ig), Iter(ig+sg), count_equal()); in test() 96 r = std::unique(Iter(ih), Iter(ih+sh), count_equal()); in test() 105 r = std::unique(Iter(ii), Iter(ii+si), count_equal()); in test() 122 template <class Iter> [all …]
|
/external/libcxx/test/std/algorithms/alg.sorting/alg.min.max/ |
D | minmax_element.pass.cpp | 22 template <class Iter> 24 test(Iter first, Iter last) in test() 26 std::pair<Iter, Iter> p = std::minmax_element(first, last); in test() 29 for (Iter j = first; j != last; ++j) in test() 42 template <class Iter> 50 test(Iter(a), Iter(a+N)); in test() 54 template <class Iter> 58 test<Iter>(0); in test() 59 test<Iter>(1); in test() 60 test<Iter>(2); in test() [all …]
|
D | minmax_element_comp.pass.cpp | 23 template <class Iter> 25 test(Iter first, Iter last) in test() 29 std::pair<Iter, Iter> p = std::minmax_element(first, last, comp); in test() 32 for (Iter j = first; j != last; ++j) in test() 45 template <class Iter> 53 test(Iter(a), Iter(a+N)); in test() 57 template <class Iter> 61 test<Iter>(0); in test() 62 test<Iter>(1); in test() 63 test<Iter>(2); in test() [all …]
|
D | min_element_comp.pass.cpp | 23 template <class Iter> 25 test(Iter first, Iter last) in test() 27 Iter i = std::min_element(first, last, std::greater<int>()); in test() 30 for (Iter j = first; j != last; ++j) in test() 37 template <class Iter> 45 test(Iter(a), Iter(a+N)); in test() 49 template <class Iter> 53 test<Iter>(0); in test() 54 test<Iter>(1); in test() 55 test<Iter>(2); in test() [all …]
|
D | max_element_comp.pass.cpp | 23 template <class Iter> 25 test(Iter first, Iter last) in test() 27 Iter i = std::max_element(first, last, std::greater<int>()); in test() 30 for (Iter j = first; j != last; ++j) in test() 37 template <class Iter> 45 test(Iter(a), Iter(a+N)); in test() 49 template <class Iter> 53 test<Iter>(0); in test() 54 test<Iter>(1); in test() 55 test<Iter>(2); in test() [all …]
|
D | min_element.pass.cpp | 22 template <class Iter> 24 test(Iter first, Iter last) in test() 26 Iter i = std::min_element(first, last); in test() 29 for (Iter j = first; j != last; ++j) in test() 36 template <class Iter> 44 test(Iter(a), Iter(a+N)); in test() 48 template <class Iter> 52 test<Iter>(0); in test() 53 test<Iter>(1); in test() 54 test<Iter>(2); in test() [all …]
|
D | max_element.pass.cpp | 22 template <class Iter> 24 test(Iter first, Iter last) in test() 26 Iter i = std::max_element(first, last); in test() 29 for (Iter j = first; j != last; ++j) in test() 36 template <class Iter> 44 test(Iter(a), Iter(a+N)); in test() 48 template <class Iter> 52 test<Iter>(0); in test() 53 test<Iter>(1); in test() 54 test<Iter>(2); in test() [all …]
|
/external/skia/tests/ |
D | LListTest.cpp | 67 typedef SkTInternalLList<ListElement>::Iter Iter; in test_tinternallist() typedef 68 Iter iter; in test_tinternallist() 70 ListElement* cur = iter.init(list, Iter::kHead_IterStart); in test_tinternallist() 75 cur = iter.init(list, Iter::kTail_IterStart); in test_tinternallist() 111 cur = iter.init(list, Iter::kHead_IterStart); in test_tinternallist() 119 typedef typename ElList::Iter Iter; in test_tllist() typedef 124 Iter iter1; in test_tllist() 125 Iter iter2; in test_tllist() 126 Iter iter3; in test_tllist() 127 Iter iter4; in test_tllist() [all …]
|
/external/libcxx/test/std/algorithms/alg.modifying.operations/alg.partitions/ |
D | stable_partition.pass.cpp | 36 template <class Iter> 56 Iter r = std::stable_partition(Iter(array), Iter(array+size), odd_first()); in test() 85 Iter r = std::stable_partition(Iter(array), Iter(array+size), odd_first()); in test() 98 r = std::stable_partition(Iter(array), Iter(array), odd_first()); in test() 101 r = std::stable_partition(Iter(array), Iter(array+1), odd_first()); in test() 105 r = std::stable_partition(Iter(array+4), Iter(array+5), odd_first()); in test() 125 Iter r = std::stable_partition(Iter(array), Iter(array+size), odd_first()); in test() 154 Iter r = std::stable_partition(Iter(array), Iter(array+size), odd_first()); in test() 183 Iter r = std::stable_partition(Iter(array), Iter(array+size), odd_first()); in test() 212 Iter r = std::stable_partition(Iter(array), Iter(array+size), odd_first()); in test() [all …]
|
/external/protobuf/gtest/scripts/ |
D | gen_gtest_pred_impl.py | 189 def Iter(n, format, sep=''): function 211 'vs' : Iter(n, 'v%s', sep=', '), 212 'vts' : Iter(n, '#v%s', sep=', '), 223 impl += Iter(n, """, 229 impl += Iter(n, """, 235 impl += Iter(n, """, 246 impl += Iter(n, """ 251 impl += Iter(n, """ 269 impl += Iter(n, """, \\ 275 impl += Iter(n, """, \\ [all …]
|
/external/vulkan-validation-layers/tests/gtest-1.7.0/scripts/ |
D | gen_gtest_pred_impl.py | 189 def Iter(n, format, sep=''): function 211 'vs' : Iter(n, 'v%s', sep=', '), 212 'vts' : Iter(n, '#v%s', sep=', '), 223 impl += Iter(n, """, 229 impl += Iter(n, """, 235 impl += Iter(n, """, 245 impl += Iter(n, """ 250 impl += Iter(n, """ 267 impl += Iter(n, """, \\ 273 impl += Iter(n, """, \\ [all …]
|