Home
last modified time | relevance | path

Searched refs:ic (Results 1 – 25 of 31) sorted by relevance

12

/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/algorithms/alg.modifying.operations/alg.rotate/
Drotate.pass.cpp55 int ic[] = {0, 1, 2}; in test() local
56 const unsigned sc = sizeof(ic)/sizeof(ic[0]); in test()
57 r = std::rotate(Iter(ic), Iter(ic), Iter(ic+sc)); in test()
58 assert(base(r) == ic+sc); in test()
59 assert(ic[0] == 0); in test()
60 assert(ic[1] == 1); in test()
61 assert(ic[2] == 2); in test()
62 r = std::rotate(Iter(ic), Iter(ic+1), Iter(ic+sc)); in test()
63 assert(base(r) == ic+2); in test()
64 assert(ic[0] == 1); in test()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/algorithms/alg.modifying.operations/alg.reverse/
Dreverse.pass.cpp39 int ic[] = {0, 1, 2}; in test() local
40 const unsigned sc = sizeof(ic)/sizeof(ic[0]); in test()
41 std::reverse(Iter(ic), Iter(ic+sc)); in test()
42 assert(ic[0] == 2); in test()
43 assert(ic[1] == 1); in test()
44 assert(ic[2] == 0); in test()
Dreverse_copy.pass.cpp42 const int ic[] = {0, 1, 2}; in test() local
43 const unsigned sc = sizeof(ic)/sizeof(ic[0]); in test()
45 r = std::reverse_copy(InIter(ic), InIter(ic+sc), OutIter(jc)); in test()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/algorithms/alg.nonmodifying/alg.find.first.of/
Dfind_first_of.pass.cpp33 int ic[] = {7}; in main() local
36 forward_iterator<const int*>(ic), in main()
37 forward_iterator<const int*>(ic + 1)) == in main()
41 forward_iterator<const int*>(ic), in main()
42 forward_iterator<const int*>(ic)) == in main()
46 forward_iterator<const int*>(ic), in main()
47 forward_iterator<const int*>(ic+1)) == in main()
Dfind_first_of_pred.pass.cpp36 int ic[] = {7}; in main() local
39 forward_iterator<const int*>(ic), in main()
40 forward_iterator<const int*>(ic + 1), in main()
45 forward_iterator<const int*>(ic), in main()
46 forward_iterator<const int*>(ic), in main()
51 forward_iterator<const int*>(ic), in main()
52 forward_iterator<const int*>(ic+1), in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/algorithms/alg.nonmodifying/alg.search/
Dsearch_n.pass.cpp59 int ic[] = {0, 0, 0}; in test() local
60 const unsigned sc = sizeof(ic)/sizeof(ic[0]); in test()
61 assert(std::search_n(Iter(ic), Iter(ic+sc), 0, 0) == Iter(ic)); in test()
62 assert(std::search_n(Iter(ic), Iter(ic+sc), 1, 0) == Iter(ic)); in test()
63 assert(std::search_n(Iter(ic), Iter(ic+sc), 2, 0) == Iter(ic)); in test()
64 assert(std::search_n(Iter(ic), Iter(ic+sc), 3, 0) == Iter(ic)); in test()
65 assert(std::search_n(Iter(ic), Iter(ic+sc), 4, 0) == Iter(ic+sc)); in test()
Dsearch_n_pred.pass.cpp124 int ic[] = {0, 0, 0}; in test() local
125 const unsigned sc = sizeof(ic)/sizeof(ic[0]); in test()
126 assert(std::search_n(Iter(ic), Iter(ic+sc), 0, 0, count_equal()) == Iter(ic)); in test()
129 assert(std::search_n(Iter(ic), Iter(ic+sc), 1, 0, count_equal()) == Iter(ic)); in test()
132 assert(std::search_n(Iter(ic), Iter(ic+sc), 2, 0, count_equal()) == Iter(ic)); in test()
135 assert(std::search_n(Iter(ic), Iter(ic+sc), 3, 0, count_equal()) == Iter(ic)); in test()
138 assert(std::search_n(Iter(ic), Iter(ic+sc), 4, 0, count_equal()) == Iter(ic+sc)); in test()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/algorithms/alg.sorting/alg.merge/
Dmerge.pass.cpp32 int* ic = new int[2*N]; in test() local
38 InIter2(ib), InIter2(ib+N), OutIter(ic)); in test()
39 assert(base(r) == ic+2*N); in test()
40 assert(ic[0] == 0); in test()
41 assert(ic[2*N-1] == 2*N-1); in test()
42 assert(std::is_sorted(ic, ic+2*N)); in test()
43 delete [] ic; in test()
51 int* ic = new int[2*N]; in test() local
53 ic[i] = i; in test()
54 std::random_shuffle(ic, ic+2*N); in test()
[all …]
Dmerge_comp.pass.cpp35 int* ic = new int[2*N]; in test() local
43 InIter2(ib), InIter2(ib+N), OutIter(ic), std::greater<int>()); in test()
44 assert(base(r) == ic+2*N); in test()
45 assert(ic[0] == 2*N-1); in test()
46 assert(ic[2*N-1] == 0); in test()
47 assert(std::is_sorted(ic, ic+2*N, std::greater<int>())); in test()
48 delete [] ic; in test()
56 int* ic = new int[2*N]; in test() local
58 ic[i] = i; in test()
59 std::random_shuffle(ic, ic+2*N); in test()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/algorithms/alg.modifying.operations/alg.unique/
Dunique.pass.cpp43 int ic[] = {0, 0}; in test() local
44 const unsigned sc = sizeof(ic)/sizeof(ic[0]); in test()
45 r = std::unique(Iter(ic), Iter(ic+sc)); in test()
46 assert(base(r) == ic + 1); in test()
47 assert(ic[0] == 0); in test()
116 Ptr ic[2]; in test1() local
117 const unsigned sc = sizeof(ic)/sizeof(ic[0]); in test1()
118 r = std::unique(Iter(ic), Iter(ic+sc)); in test1()
119 assert(base(r) == ic + 1); in test1()
120 assert(ic[0] == 0); in test1()
Dunique_pred.pass.cpp57 int ic[] = {0, 0}; in test() local
58 const unsigned sc = sizeof(ic)/sizeof(ic[0]); in test()
60 r = std::unique(Iter(ic), Iter(ic+sc), count_equal()); in test()
61 assert(base(r) == ic + 1); in test()
62 assert(ic[0] == 0); in test()
146 Ptr ic[2]; in test1() local
147 const unsigned sc = sizeof(ic)/sizeof(ic[0]); in test1()
149 r = std::unique(Iter(ic), Iter(ic+sc), count_equal()); in test1()
150 assert(base(r) == ic + 1); in test1()
151 assert(ic[0] == 0); in test1()
Dunique_copy.pass.cpp44 const int ic[] = {0, 0}; in test() local
45 const unsigned sc = sizeof(ic)/sizeof(ic[0]); in test()
47 r = std::unique_copy(InIter(ic), InIter(ic+sc), OutIter(jc)); in test()
Dunique_copy_pred.pass.cpp59 const int ic[] = {0, 0}; in test() local
60 const unsigned sc = sizeof(ic)/sizeof(ic[0]); in test()
63 r = std::unique_copy(InIter(ic), InIter(ic+sc), OutIter(jc), count_equal()); in test()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/algorithms/alg.sorting/alg.set.operations/includes/
Dincludes.pass.cpp31 int ic[] = {1, 2}; in test() local
32 const unsigned sc = sizeof(ic)/sizeof(ic[0]); in test()
44 assert(std::includes(Iter1(ia), Iter1(ia+2), Iter2(ic), Iter2(ic+2))); in test()
Dincludes_comp.pass.cpp32 int ic[] = {1, 2}; in test() local
33 const unsigned sc = sizeof(ic)/sizeof(ic[0]); in test()
45 assert(std::includes(Iter1(ia), Iter1(ia+2), Iter2(ic), Iter2(ic+2), std::less<int>())); in test()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/algorithms/alg.sorting/alg.set.operations/set.intersection/
Dset_intersection.pass.cpp34 int ic[20]; in test() local
38 Iter2(ib), Iter2(ib+sb), OutIter(ic)); in test()
39 assert(base(ce) - ic == sr); in test()
40 assert(std::lexicographical_compare(ic, base(ce), ir, ir+sr) == 0); in test()
42 Iter2(ia), Iter2(ia+sa), OutIter(ic)); in test()
43 assert(base(ce) - ic == sr); in test()
44 assert(std::lexicographical_compare(ic, base(ce), ir, ir+sr) == 0); in test()
Dset_intersection_comp.pass.cpp36 int ic[20]; in test() local
40 Iter2(ib), Iter2(ib+sb), OutIter(ic), std::less<int>()); in test()
41 assert(base(ce) - ic == sr); in test()
42 assert(std::lexicographical_compare(ic, base(ce), ir, ir+sr) == 0); in test()
44 Iter2(ia), Iter2(ia+sa), OutIter(ic), std::less<int>()); in test()
45 assert(base(ce) - ic == sr); in test()
46 assert(std::lexicographical_compare(ic, base(ce), ir, ir+sr) == 0); in test()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/algorithms/alg.sorting/alg.set.operations/set.union/
Dset_union.pass.cpp34 int ic[20]; in test() local
38 Iter2(ib), Iter2(ib+sb), OutIter(ic)); in test()
39 assert(base(ce) - ic == sr); in test()
40 assert(std::lexicographical_compare(ic, base(ce), ir, ir+sr) == 0); in test()
42 Iter2(ia), Iter2(ia+sa), OutIter(ic)); in test()
43 assert(base(ce) - ic == sr); in test()
44 assert(std::lexicographical_compare(ic, base(ce), ir, ir+sr) == 0); in test()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/algorithms/alg.sorting/alg.set.operations/set.symmetric.difference/
Dset_symmetric_difference.pass.cpp35 int ic[20]; in test() local
39 Iter2(ib), Iter2(ib+sb), OutIter(ic)); in test()
40 assert(base(ce) - ic == sr); in test()
41 assert(std::lexicographical_compare(ic, base(ce), ir, ir+sr) == 0); in test()
43 Iter2(ia), Iter2(ia+sa), OutIter(ic)); in test()
44 assert(base(ce) - ic == sr); in test()
45 assert(std::lexicographical_compare(ic, base(ce), ir, ir+sr) == 0); in test()
Dset_symmetric_difference_comp.pass.cpp37 int ic[20]; in test() local
42 OutIter(ic), std::less<int>()); in test()
43 assert(base(ce) - ic == sr); in test()
44 assert(std::lexicographical_compare(ic, base(ce), ir, ir+sr) == 0); in test()
47 OutIter(ic), std::less<int>()); in test()
48 assert(base(ce) - ic == sr); in test()
49 assert(std::lexicographical_compare(ic, base(ce), ir, ir+sr) == 0); in test()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/numerics/complex.number/complex.member.ops/
Dminus_equal_complex.pass.cpp35 std::complex<int> ic (1,1); in test() local
36 c3 -= ic; in test()
Dplus_equal_complex.pass.cpp35 std::complex<int> ic (1,1); in test() local
36 c3 += ic; in test()
Dtimes_equal_complex.pass.cpp35 std::complex<int> ic (1,1); in test() local
36 c3 *= ic; in test()
Ddivide_equal_complex.pass.cpp35 std::complex<int> ic (1,1); in test() local
36 c3 /= ic; in test()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/algorithms/alg.sorting/alg.set.operations/set.difference/
Dset_difference.pass.cpp34 int ic[20]; in test() local
38 Iter2(ib), Iter2(ib+sb), OutIter(ic)); in test()
39 assert(base(ce) - ic == sr); in test()
40 assert(std::lexicographical_compare(ic, base(ce), ir, ir+sr) == 0); in test()
44 Iter2(ia), Iter2(ia+sa), OutIter(ic)); in test()
45 assert(base(ce) - ic == srr); in test()
46 assert(std::lexicographical_compare(ic, base(ce), irr, irr+srr) == 0); in test()

12