Home
last modified time | relevance | path

Searched refs:s2 (Results 1 – 25 of 189) sorted by relevance

12345678

/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.duration/time.duration.comparisons/
Dop_less.pass.cpp41 std::chrono::seconds s2(3); in main() local
42 assert(!(s1 < s2)); in main()
43 assert(!(s1 > s2)); in main()
44 assert( (s1 <= s2)); in main()
45 assert( (s1 >= s2)); in main()
49 std::chrono::seconds s2(4); in main() local
50 assert( (s1 < s2)); in main()
51 assert(!(s1 > s2)); in main()
52 assert( (s1 <= s2)); in main()
53 assert(!(s1 >= s2)); in main()
[all …]
Dop_equal.pass.cpp31 std::chrono::seconds s2(3); in main() local
32 assert(s1 == s2); in main()
33 assert(!(s1 != s2)); in main()
37 std::chrono::seconds s2(4); in main() local
38 assert(!(s1 == s2)); in main()
39 assert(s1 != s2); in main()
43 std::chrono::microseconds s2(3000); in main() local
44 assert(s1 == s2); in main()
45 assert(!(s1 != s2)); in main()
49 std::chrono::microseconds s2(4000); in main() local
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/basic.string/string.cons/
Dsize_char_alloc.pass.cpp29 S s2(n, c); in test() local
30 assert(s2.__invariants()); in test()
31 assert(s2.size() == n); in test()
33 assert(s2[i] == c); in test()
34 assert(s2.get_allocator() == A()); in test()
35 assert(s2.capacity() >= s2.size()); in test()
44 S s2(n, c, a); in test() local
45 assert(s2.__invariants()); in test()
46 assert(s2.size() == n); in test()
48 assert(s2[i] == c); in test()
[all …]
Dpointer_alloc.pass.cpp30 S s2(s); in test() local
31 assert(s2.__invariants()); in test()
32 assert(s2.size() == n); in test()
33 assert(T::compare(s2.data(), s, n) == 0); in test()
34 assert(s2.get_allocator() == A()); in test()
35 assert(s2.capacity() >= s2.size()); in test()
45 S s2(s, a); in test() local
46 assert(s2.__invariants()); in test()
47 assert(s2.size() == n); in test()
48 assert(T::compare(s2.data(), s, n) == 0); in test()
[all …]
Dpointer_size_alloc.pass.cpp29 S s2(s, n); in test() local
30 assert(s2.__invariants()); in test()
31 assert(s2.size() == n); in test()
32 assert(T::compare(s2.data(), s, n) == 0); in test()
33 assert(s2.get_allocator() == A()); in test()
34 assert(s2.capacity() >= s2.size()); in test()
43 S s2(s, n, a); in test() local
44 assert(s2.__invariants()); in test()
45 assert(s2.size() == n); in test()
46 assert(T::compare(s2.data(), s, n) == 0); in test()
[all …]
Dsubstr.pass.cpp32 S s2(str, pos); in test() local
33 assert(s2.__invariants()); in test()
36 assert(s2.size() == rlen); in test()
37 assert(T::compare(s2.data(), str.data() + pos, rlen) == 0); in test()
38 assert(s2.get_allocator() == A()); in test()
39 assert(s2.capacity() >= s2.size()); in test()
55 S s2(str, pos, n); in test() local
56 assert(s2.__invariants()); in test()
59 assert(s2.size() == rlen); in test()
60 assert(T::compare(s2.data(), str.data() + pos, rlen) == 0); in test()
[all …]
Diter_alloc.pass.cpp32 S s2(first, last); in test() local
33 assert(s2.__invariants()); in test()
34 assert(s2.size() == std::distance(first, last)); in test()
37 assert(s2[i] == *it); in test()
38 assert(s2.get_allocator() == A()); in test()
39 assert(s2.capacity() >= s2.size()); in test()
49 S s2(first, last, a); in test() local
50 assert(s2.__invariants()); in test()
51 assert(s2.size() == std::distance(first, last)); in test()
54 assert(s2[i] == *it); in test()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/localization/locale.categories/category.collate/locale.collate.byname/
Dcompare.pass.cpp35 std::string s2("aaaaaaA"); in main() local
37 assert(f.compare(s2.data(), s2.data() + s2.size(), in main()
42 std::wstring s2(L"aaaaaaA"); in main() local
44 assert(f.compare(s2.data(), s2.data() + s2.size(), in main()
52 std::string s2("aaaaaaA"); in main() local
54 assert(f.compare(s2.data(), s2.data() + s2.size(), in main()
59 std::wstring s2(L"aaaaaaA"); in main() local
61 assert(f.compare(s2.data(), s2.data() + s2.size(), in main()
69 std::string s2("aaaaaaA"); in main() local
71 assert(f.compare(s2.data(), s2.data() + s2.size(), in main()
[all …]
/ndk/sources/host-tools/sed-4.2.1/lib/
Dstreq.h37 streq9 (const char *s1, const char *s2) in streq9() argument
39 return strcmp (s1 + 9, s2 + 9) == 0; in streq9()
43 streq8 (const char *s1, const char *s2, char s28) in streq8() argument
50 return streq9 (s1, s2); in streq8()
57 streq7 (const char *s1, const char *s2, char s27, char s28) in streq7() argument
64 return streq8 (s1, s2, s28); in streq7()
71 streq6 (const char *s1, const char *s2, char s26, char s27, char s28) in streq6() argument
78 return streq7 (s1, s2, s27, s28); in streq6()
85 streq5 (const char *s1, const char *s2, char s25, char s26, char s27, char s28) in streq5() argument
92 return streq6 (s1, s2, s26, s27, s28); in streq5()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.duration/time.duration.nonmember/
Dop_+.pass.cpp25 std::chrono::seconds s2(5); in main() local
26 std::chrono::seconds r = s1 + s2; in main()
31 std::chrono::microseconds s2(5); in main() local
32 std::chrono::microseconds r = s1 + s2; in main()
37 std::chrono::duration<int, std::ratio<3, 5> > s2(5); in main() local
38 std::chrono::duration<int, std::ratio<1, 15> > r = s1 + s2; in main()
43 std::chrono::duration<double, std::ratio<3, 5> > s2(5); in main() local
44 std::chrono::duration<double, std::ratio<1, 15> > r = s1 + s2; in main()
50 constexpr std::chrono::seconds s2(5); in main() local
51 constexpr std::chrono::seconds r = s1 + s2; in main()
[all …]
Dop_-.pass.cpp26 std::chrono::seconds s2(5); in main() local
27 std::chrono::seconds r = s1 - s2; in main()
32 std::chrono::microseconds s2(5); in main() local
33 std::chrono::microseconds r = s1 - s2; in main()
38 std::chrono::duration<int, std::ratio<3, 5> > s2(5); in main() local
39 std::chrono::duration<int, std::ratio<1, 15> > r = s1 - s2; in main()
44 std::chrono::duration<double, std::ratio<3, 5> > s2(5); in main() local
45 std::chrono::duration<double, std::ratio<1, 15> > r = s1 - s2; in main()
51 constexpr std::chrono::seconds s2(5); in main() local
52 constexpr std::chrono::seconds r = s1 - s2; in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/memory/unique.ptr/unique.ptr.special/
Dswap.pass.cpp43 std::unique_ptr<A, Deleter<A> > s2(p2, Deleter<A>(2)); in main() local
47 assert(s2.get() == p2); in main()
48 assert(*s2 == A(2)); in main()
49 assert(s2.get_deleter().state() == 2); in main()
50 swap(s1, s2); in main()
54 assert(s2.get() == p1); in main()
55 assert(*s2 == A(1)); in main()
56 assert(s2.get_deleter().state() == 1); in main()
64 std::unique_ptr<A[], Deleter<A[]> > s2(p2, Deleter<A[]>(2)); in main() local
67 assert(s2.get() == p2); in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/basic.string/string.capacity/
Dmax_size.pass.cpp23 S s2(s); in test1() local
24 const size_t sz = s2.max_size() - 1; in test1()
25 try { s2.resize(sz, 'x'); } in test1()
27 assert ( s2.size() == sz ); in test1()
34 S s2(s); in test2() local
35 const size_t sz = s2.max_size(); in test2()
36 try { s2.resize(sz, 'x'); } in test2()
45 S s2(s); in test3() local
46 const size_t sz = s2.max_size() + 1; in test3()
47 try { s2.resize(sz, 'x'); } in test3()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/char.traits/char.traits.specializations/char.traits.specializations.wchar.t/
Dassign3.pass.cpp22 wchar_t s2[3] = {0}; in main() local
23 assert(std::char_traits<wchar_t>::assign(s2, 3, wchar_t(5)) == s2); in main()
24 assert(s2[0] == wchar_t(5)); in main()
25 assert(s2[1] == wchar_t(5)); in main()
26 assert(s2[2] == wchar_t(5)); in main()
Dcopy.pass.cpp22 wchar_t s2[3] = {0}; in main() local
23 assert(std::char_traits<wchar_t>::copy(s2, s1, 3) == s2); in main()
24 assert(s2[0] == wchar_t(1)); in main()
25 assert(s2[1] == wchar_t(2)); in main()
26 assert(s2[2] == wchar_t(3)); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/char.traits/char.traits.specializations/char.traits.specializations.char/
Dassign3.pass.cpp22 char s2[3] = {0}; in main() local
23 assert(std::char_traits<char>::assign(s2, 3, char(5)) == s2); in main()
24 assert(s2[0] == char(5)); in main()
25 assert(s2[1] == char(5)); in main()
26 assert(s2[2] == char(5)); in main()
Dcopy.pass.cpp22 char s2[3] = {0}; in main() local
23 assert(std::char_traits<char>::copy(s2, s1, 3) == s2); in main()
24 assert(s2[0] == char(1)); in main()
25 assert(s2[1] == char(2)); in main()
26 assert(s2[2] == char(3)); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/
Dcopy.pass.cpp23 char32_t s2[3] = {0}; in main() local
24 assert(std::char_traits<char32_t>::copy(s2, s1, 3) == s2); in main()
25 assert(s2[0] == char32_t(1)); in main()
26 assert(s2[1] == char32_t(2)); in main()
27 assert(s2[2] == char32_t(3)); in main()
Dassign3.pass.cpp23 char32_t s2[3] = {0}; in main() local
24 assert(std::char_traits<char32_t>::assign(s2, 3, char32_t(5)) == s2); in main()
25 assert(s2[0] == char32_t(5)); in main()
26 assert(s2[1] == char32_t(5)); in main()
27 assert(s2[2] == char32_t(5)); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/
Dcopy.pass.cpp23 char16_t s2[3] = {0}; in main() local
24 assert(std::char_traits<char16_t>::copy(s2, s1, 3) == s2); in main()
25 assert(s2[0] == char16_t(1)); in main()
26 assert(s2[1] == char16_t(2)); in main()
27 assert(s2[2] == char16_t(3)); in main()
Dassign3.pass.cpp23 char16_t s2[3] = {0}; in main() local
24 assert(std::char_traits<char16_t>::assign(s2, 3, char16_t(5)) == s2); in main()
25 assert(s2[0] == char16_t(5)); in main()
26 assert(s2[1] == char16_t(5)); in main()
27 assert(s2[2] == char16_t(5)); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/utility/exchange/
Dexchange.pass.cpp41 const std::string s2 ( "Yo Dad!" ); in main() local
43 assert ( std::exchange ( s3, s2 ) == s1 ); in main()
44 assert ( s3 == s2 ); in main()
45 assert ( std::exchange ( s3, "Hi Mom!" ) == s2 ); in main()
48 s3 = s2; // Dad in main()
49 assert ( std::exchange ( s3, {} ) == s2 ); in main()
52 s3 = s2; // Dad in main()
53 assert ( std::exchange ( s3, "" ) == s2 ); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/memory/unique.ptr/unique.ptr.single/unique.ptr.single.asgn/
Dmove01.pass.cpp39 std::unique_ptr<A> s2(new A); in main() local
41 s2 = std::move(s1); in main()
43 assert(s2.get() == p); in main()
50 std::unique_ptr<A, Deleter<A> > s2(new A); in main() local
52 s2 = std::move(s1); in main()
53 assert(s2.get() == p); in main()
56 assert(s2.get_deleter().state() == 5); in main()
65 std::unique_ptr<A, CDeleter<A>&> s2(new A, d2); in main() local
66 s2 = std::move(s1); in main()
67 assert(s2.get() == p); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/memory/unique.ptr/unique.ptr.runtime/
Dmove01.pass.cpp40 std::unique_ptr<A[]> s2(new A[2]); in main() local
42 s2 = std::move(s1); in main()
44 assert(s2.get() == p); in main()
52 std::unique_ptr<A[], Deleter<A[]> > s2(new A[5]); in main() local
54 s2 = std::move(s1); in main()
55 assert(s2.get() == p); in main()
58 assert(s2.get_deleter().state() == 5); in main()
68 std::unique_ptr<A[], CDeleter<A[]>&> s2(new A[3], d2); in main() local
70 s2 = std::move(s1); in main()
72 assert(s2.get() == p); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/memory/unique.ptr/unique.ptr.single/unique.ptr.single.modifiers/
Dswap.pass.cpp42 std::unique_ptr<A, Deleter<A> > s2(p2, Deleter<A>(2)); in main() local
46 assert(s2.get() == p2); in main()
47 assert(*s2 == A(2)); in main()
48 assert(s2.get_deleter().state() == 2); in main()
49 s1.swap(s2); in main()
53 assert(s2.get() == p1); in main()
54 assert(*s2 == A(1)); in main()
55 assert(s2.get_deleter().state() == 1); in main()

12345678