/external/toybox/tests/files/bc/ |
D | sine.txt | 4 s(0) 5 s(0.5) 6 s(1) 7 s(2) 8 s(3) 9 s(-0.5) 10 s(-1) 11 s(-2) 12 s(-3) 13 s(p / 7) [all …]
|
/external/libcxx/test/std/strings/basic.string/string.nonmembers/string_op+/ |
D | string_string.pass.cpp | 1 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===// 39 template <class S> 40 void test0(const S& lhs, const S& rhs, const S& x) { in test0() 45 template <class S> 46 void test1(S&& lhs, const S& rhs, const S& x) { in test1() 50 template <class S> 51 void test2(const S& lhs, S&& rhs, const S& x) { in test2() 55 template <class S> 56 void test3(S&& lhs, S&& rhs, const S& x) { in test3() [all …]
|
/external/libcxx/test/std/strings/basic.string/string.modifiers/string_insert/ |
D | size_string.pass.cpp | 1 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===// 22 template <class S> 24 test(S s, typename S::size_type pos, S str, S expected) in test() argument 26 const typename S::size_type old_size = s.size(); in test() 27 S s0 = s; in test() 30 s.insert(pos, str); in test() 31 LIBCPP_ASSERT(s.__invariants()); in test() 32 assert(s == expected); in test() 39 s.insert(pos, str); in test() [all …]
|
D | size_pointer.pass.cpp | 1 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===// 13 // insert(size_type pos, const charT* s); 22 template <class S> 24 test(S s, typename S::size_type pos, const typename S::value_type* str, S expected) in test() argument 26 const typename S::size_type old_size = s.size(); in test() 27 S s0 = s; in test() 30 s.insert(pos, str); in test() 31 LIBCPP_ASSERT(s.__invariants()); in test() 32 assert(s == expected); in test() [all …]
|
D | iter_iter_iter.pass.cpp | 1 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===// 25 template <class S, class It> 27 test(S s, typename S::difference_type pos, It first, It last, S expected) in test() argument 29 typename S::const_iterator p = s.cbegin() + pos; in test() 30 typename S::iterator i = s.insert(p, first, last); in test() 31 LIBCPP_ASSERT(s.__invariants()); in test() 32 assert(i - s.begin() == pos); in test() 33 assert(s == expected); in test() 37 template <class S, class It> [all …]
|
/external/libcxx/test/std/strings/basic.string/string.ops/string_find/ |
D | string_size.pass.cpp | 1 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===// 20 template <class S> 22 test(const S& s, const S& str, typename S::size_type pos, typename S::size_type x) in test() argument 24 assert(s.find(str, pos) == x); in test() 25 if (x != S::npos) in test() 26 assert(pos <= x && x + str.size() <= s.size()); in test() 29 template <class S> 31 test(const S& s, const S& str, typename S::size_type x) in test() argument 33 assert(s.find(str) == x); in test() [all …]
|
/external/libcxx/test/std/strings/basic.string/string.ops/string_find.first.of/ |
D | string_size.pass.cpp | 1 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===// 20 template <class S> 22 test(const S& s, const S& str, typename S::size_type pos, typename S::size_type x) in test() argument 24 assert(s.find_first_of(str, pos) == x); in test() 25 if (x != S::npos) in test() 26 assert(pos <= x && x < s.size()); in test() 29 template <class S> 31 test(const S& s, const S& str, typename S::size_type x) in test() argument 33 assert(s.find_first_of(str) == x); in test() [all …]
|
/external/libcxx/test/std/strings/basic.string/string.ops/string_find.first.not.of/ |
D | string_size.pass.cpp | 1 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===// 20 template <class S> 22 test(const S& s, const S& str, typename S::size_type pos, typename S::size_type x) in test() argument 24 assert(s.find_first_not_of(str, pos) == x); in test() 25 if (x != S::npos) in test() 26 assert(pos <= x && x < s.size()); in test() 29 template <class S> 31 test(const S& s, const S& str, typename S::size_type x) in test() argument 33 assert(s.find_first_not_of(str) == x); in test() [all …]
|
/external/libcxx/test/std/strings/basic.string/string.modifiers/string_assign/ |
D | iterator.pass.cpp | 1 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===// 22 template <class S, class It> 24 test(S s, It first, It last, S expected) in test() argument 26 s.assign(first, last); in test() 27 LIBCPP_ASSERT(s.__invariants()); in test() 28 assert(s == expected); in test() 32 template <class S, class It> 34 test_exceptions(S s, It first, It last) in test_exceptions() argument 36 S aCopy = s; in test_exceptions() [all …]
|
/external/libcxx/test/std/strings/string.view/string.view.find/ |
D | find_string_view_size.pass.cpp | 1 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===// 20 template <class S> 22 test(const S& s, const S& str, typename S::size_type pos, typename S::size_type x) in test() argument 24 assert(s.find(str, pos) == x); in test() 25 if (x != S::npos) in test() 26 assert(pos <= x && x + str.size() <= s.size()); in test() 29 template <class S> 31 test(const S& s, const S& str, typename S::size_type x) in test() argument 33 assert(s.find(str) == x); in test() [all …]
|
D | find_first_of_string_view_size.pass.cpp | 1 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===// 17 template <class S> 19 test(const S& s, const S& str, typename S::size_type pos, typename S::size_type x) in test() argument 21 assert(s.find_first_of(str, pos) == x); in test() 22 if (x != S::npos) in test() 23 assert(pos <= x && x < s.size()); in test() 26 template <class S> 28 test(const S& s, const S& str, typename S::size_type x) in test() argument 30 assert(s.find_first_of(str) == x); in test() [all …]
|
D | find_first_not_of_string_view_size.pass.cpp | 1 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===// 17 template <class S> 19 test(const S& s, const S& str, typename S::size_type pos, typename S::size_type x) in test() argument 21 assert(s.find_first_not_of(str, pos) == x); in test() 22 if (x != S::npos) in test() 23 assert(pos <= x && x < s.size()); in test() 26 template <class S> 28 test(const S& s, const S& str, typename S::size_type x) in test() argument 30 assert(s.find_first_not_of(str) == x); in test() [all …]
|
D | find_last_of_string_view_size.pass.cpp | 1 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===// 17 template <class S> 19 test(const S& s, const S& str, typename S::size_type pos, typename S::size_type x) in test() argument 21 assert(s.find_last_of(str, pos) == x); in test() 22 if (x != S::npos) in test() 23 assert(x <= pos && x < s.size()); in test() 26 template <class S> 28 test(const S& s, const S& str, typename S::size_type x) in test() argument 30 assert(s.find_last_of(str) == x); in test() [all …]
|
D | find_last_not_of_string_view_size.pass.cpp | 1 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===// 17 template <class S> 19 test(const S& s, const S& str, typename S::size_type pos, typename S::size_type x) in test() argument 21 assert(s.find_last_not_of(str, pos) == x); in test() 22 if (x != S::npos) in test() 23 assert(x <= pos && x < s.size()); in test() 26 template <class S> 28 test(const S& s, const S& str, typename S::size_type x) in test() argument 30 assert(s.find_last_not_of(str) == x); in test() [all …]
|
D | rfind_string_view_size.pass.cpp | 1 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===// 20 template <class S> 22 test(const S& s, const S& str, typename S::size_type pos, typename S::size_type x) in test() argument 24 assert(s.rfind(str, pos) == x); in test() 25 if (x != S::npos) in test() 26 assert(x <= pos && x + str.size() <= s.size()); in test() 29 template <class S> 31 test(const S& s, const S& str, typename S::size_type x) in test() argument 33 assert(s.rfind(str) == x); in test() [all …]
|
/external/libcxx/test/std/strings/basic.string/string.ops/string_find.last.of/ |
D | string_size.pass.cpp | 1 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===// 20 template <class S> 22 test(const S& s, const S& str, typename S::size_type pos, typename S::size_type x) in test() argument 24 assert(s.find_last_of(str, pos) == x); in test() 25 if (x != S::npos) in test() 26 assert(x <= pos && x < s.size()); in test() 29 template <class S> 31 test(const S& s, const S& str, typename S::size_type x) in test() argument 33 assert(s.find_last_of(str) == x); in test() [all …]
|
/external/libcxx/test/std/strings/basic.string/string.ops/string_find.last.not.of/ |
D | string_size.pass.cpp | 1 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===// 20 template <class S> 22 test(const S& s, const S& str, typename S::size_type pos, typename S::size_type x) in test() argument 24 assert(s.find_last_not_of(str, pos) == x); in test() 25 if (x != S::npos) in test() 26 assert(x <= pos && x < s.size()); in test() 29 template <class S> 31 test(const S& s, const S& str, typename S::size_type x) in test() argument 33 assert(s.find_last_not_of(str) == x); in test() [all …]
|
/external/libcxx/test/std/strings/basic.string/string.modifiers/string_append/ |
D | iterator.pass.cpp | 1 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===// 21 template <class S, class It> 23 test(S s, It first, It last, S expected) in test() argument 25 s.append(first, last); in test() 26 LIBCPP_ASSERT(s.__invariants()); in test() 27 assert(s == expected); in test() 31 template <class S, class It> 33 test_exceptions(S s, It first, It last) in test_exceptions() argument 35 S aCopy = s; in test_exceptions() [all …]
|
/external/libcxx/test/std/strings/basic.string/string.modifiers/string_copy/ |
D | copy.pass.cpp | 1 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===// 12 // size_type copy(charT* s, size_type n, size_type pos = 0) const; 22 template <class S> 24 test(S str, typename S::value_type* s, typename S::size_type n, in test() argument 25 typename S::size_type pos) in test() 27 const S& cs = str; in test() 30 typename S::size_type r = cs.copy(s, n, pos); in test() 31 typename S::size_type rlen = std::min(n, cs.size() - pos); in test() 34 assert(S::traits_type::eq(cs[pos+r], s[r])); in test() [all …]
|
/external/libcxx/test/std/strings/basic.string/string.ops/string_rfind/ |
D | string_size.pass.cpp | 1 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===// 20 template <class S> 22 test(const S& s, const S& str, typename S::size_type pos, typename S::size_type x) in test() argument 24 assert(s.rfind(str, pos) == x); in test() 25 if (x != S::npos) in test() 26 assert(x <= pos && x + str.size() <= s.size()); in test() 29 template <class S> 31 test(const S& s, const S& str, typename S::size_type x) in test() argument 33 assert(s.rfind(str) == x); in test() [all …]
|
/external/libcxx/test/std/strings/basic.string/string.modifiers/string_replace/ |
D | iter_iter_string.pass.cpp | 1 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===// 22 template <class S> 24 test(S s, typename S::size_type pos1, typename S::size_type n1, S str, S expected) in test() argument 26 typename S::size_type old_size = s.size(); in test() 27 typename S::const_iterator first = s.begin() + pos1; in test() 28 typename S::const_iterator last = s.begin() + pos1 + n1; in test() 29 typename S::size_type xlen = last - first; in test() 30 s.replace(first, last, str); in test() 31 LIBCPP_ASSERT(s.__invariants()); in test() [all …]
|
D | size_size_string.pass.cpp | 1 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===// 23 template <class S> 25 test(S s, typename S::size_type pos1, typename S::size_type n1, S str, S expected) in test() argument 27 const typename S::size_type old_size = s.size(); in test() 28 S s0 = s; in test() 31 s.replace(pos1, n1, str); in test() 32 LIBCPP_ASSERT(s.__invariants()); in test() 33 assert(s == expected); in test() 34 typename S::size_type xlen = std::min(n1, old_size - pos1); in test() [all …]
|
/external/libcxx/test/std/strings/basic.string/string.modifiers/string_erase/ |
D | iter_iter.pass.cpp | 1 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===// 20 template <class S> 22 test(S s, typename S::difference_type pos, typename S::difference_type n, S expected) in test() argument 24 typename S::const_iterator first = s.cbegin() + pos; in test() 25 typename S::const_iterator last = s.cbegin() + pos + n; in test() 26 typename S::iterator i = s.erase(first, last); in test() 27 LIBCPP_ASSERT(s.__invariants()); in test() 28 assert(s[s.size()] == typename S::value_type()); in test() 29 assert(s == expected); in test() [all …]
|
D | size_size.pass.cpp | 1 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===// 22 template <class S> 24 test(S s, typename S::size_type pos, typename S::size_type n, S expected) in test() argument 26 const typename S::size_type old_size = s.size(); in test() 27 S s0 = s; in test() 30 s.erase(pos, n); in test() 31 LIBCPP_ASSERT(s.__invariants()); in test() 32 assert(s[s.size()] == typename S::value_type()); in test() 33 assert(s == expected); in test() [all …]
|
/external/libcxx/test/std/strings/basic.string/string.ops/string_compare/ |
D | size_size_string.pass.cpp | 1 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===// 26 return -1; in sign() 30 template <class S> 32 test(const S& s, typename S::size_type pos1, typename S::size_type n1, in test() argument 33 const S& str, int x) in test() 35 if (pos1 <= s.size()) in test() 36 assert(sign(s.compare(pos1, n1, str)) == sign(x)); in test() 42 TEST_IGNORE_NODISCARD s.compare(pos1, n1, str); in test() 47 assert(pos1 > s.size()); in test() [all …]
|