Home
last modified time | relevance | path

Searched refs:test (Results 1 – 25 of 10064) sorted by relevance

12345678910>>...403

/llvm-project/libcxx/test/std/strings/string.view/string.view.ops/
H A Dcompare.size_size_sv_size_size.pass.cpp47 void test(const CharT* s1, std::size_t pos1, size_t n1, const CharT* s2, std::size_t pos2, size_t n… in test() function
56 test("", 0, 0, "", 0, 0, 0); in test0()
57 test("", 0, 0, "", 0, 1, 0); in test0()
58 test("", 0, 0, "", 1, 0, 0); in test0()
59 test("", 0, 0, "abcde", 0, 0, 0); in test0()
60 test("", 0, 0, "abcde", 0, 1, -1); in test0()
61 test("", 0, 0, "abcde", 0, 2, -2); in test0()
62 test("", 0, 0, "abcde", 0, 4, -4); in test0()
63 test("", 0, 0, "abcde", 0, 5, -5); in test0()
64 test("", 0, 0, "abcde", 0, 6, -5); in test0()
[all …]
H A Dcompare.size_size_sv_pointer_size.pass.cpp42 void test(const CharT* s1, std::size_t pos1, size_t n1, const CharT* s2, std::size_t n2, int expect… in test() function
49 test("", 0, 0, "", 0, 0); in test0()
50 test("", 0, 0, "abcde", 0, 0); in test0()
51 test("", 0, 0, "abcde", 1, -1); in test0()
52 test("", 0, 0, "abcde", 2, -2); in test0()
53 test("", 0, 0, "abcde", 4, -4); in test0()
54 test("", 0, 0, "abcde", 5, -5); in test0()
55 test("", 0, 0, "abcdefghij", 0, 0); in test0()
56 test("", 0, 0, "abcdefghij", 1, -1); in test0()
57 test("", 0, 0, "abcdefghij", 5, -5); in test0()
[all …]
H A Dcompare.pointer_size.pass.cpp40 void test(const CharT* s1, std::size_t pos1, size_t n1, const CharT* s2, int expected) { in test() function
47 test("", 0, 0, "", 0); in test0()
48 test("", 0, 0, "abcde", -5); in test0()
49 test("", 0, 0, "abcdefghij", -10); in test0()
50 test("", 0, 0, "abcdefghijklmnopqrst", -20); in test0()
51 test("", 0, 1, "", 0); in test0()
52 test("", 0, 1, "abcde", -5); in test0()
53 test("", 0, 1, "abcdefghij", -10); in test0()
54 test("", 0, 1, "abcdefghijklmnopqrst", -20); in test0()
55 test("", 1, 0, "", 0); in test0()
[all …]
H A Dcompare.size_size_sv.pass.cpp41 void test(const CharT* s1, std::size_t pos1, size_t n1, const CharT* s2, int expected) { in test() function
49 test("", 0, 0, "", 0); in test0()
50 test("", 0, 0, "abcde", -5); in test0()
51 test("", 0, 0, "abcdefghij", -10); in test0()
52 test("", 0, 0, "abcdefghijklmnopqrst", -20); in test0()
53 test("", 0, 1, "", 0); in test0()
54 test("", 0, 1, "abcde", -5); in test0()
55 test("", 0, 1, "abcdefghij", -10); in test0()
56 test("", 0, 1, "abcdefghijklmnopqrst", -20); in test0()
57 test("", 1, 0, "", 0); in test0()
[all …]
/llvm-project/libcxx/test/std/strings/basic.string/string.ops/string_compare/
H A Dsize_size_pointer_size.pass.cpp31 test(const S& s, in test() function
53 test(S(""), 0, 0, "", 0, 0); in test0()
54 test(S(""), 0, 0, "abcde", 0, 0); in test0()
55 test(S(""), 0, 0, "abcde", 1, -1); in test0()
56 test(S(""), 0, 0, "abcde", 2, -2); in test0()
57 test(S(""), 0, 0, "abcde", 4, -4); in test0()
58 test(S(""), 0, 0, "abcde", 5, -5); in test0()
59 test(S(""), 0, 0, "abcdefghij", 0, 0); in test0()
60 test(S(""), 0, 0, "abcdefghij", 1, -1); in test0()
61 test(S(""), 0, 0, "abcdefghij", 5, -5); in test0()
[all …]
H A Dsize_size_string_size_size.pass.cpp35 test(const S& s, in test() function
75 test(S(""), 0, 0, S(""), 0, 0, 0); in test0()
76 test(S(""), 0, 0, S(""), 0, 1, 0); in test0()
77 test(S(""), 0, 0, S(""), 1, 0, 0); in test0()
78 test(S(""), 0, 0, S("abcde"), 0, 0, 0); in test0()
79 test(S(""), 0, 0, S("abcde"), 0, 1, -1); in test0()
80 test(S(""), 0, 0, S("abcde"), 0, 2, -2); in test0()
81 test(S(""), 0, 0, S("abcde"), 0, 4, -4); in test0()
82 test(S(""), 0, 0, S("abcde"), 0, 5, -5); in test0()
83 test(S(""), 0, 0, S("abcde"), 0, 6, -5); in test0()
[all …]
H A Dsize_size_T_size_size.pass.cpp35 test(const S& s, in test() function
77 test(S(""), 0, 0, SV(""), 0, 0, 0); in test0()
78 test(S(""), 0, 0, SV(""), 0, 1, 0); in test0()
79 test(S(""), 0, 0, SV(""), 1, 0, 0); in test0()
80 test(S(""), 0, 0, SV("abcde"), 0, 0, 0); in test0()
81 test(S(""), 0, 0, SV("abcde"), 0, 1, -1); in test0()
82 test(S(""), 0, 0, SV("abcde"), 0, 2, -2); in test0()
83 test(S(""), 0, 0, SV("abcde"), 0, 4, -4); in test0()
84 test(S(""), 0, 0, SV("abcde"), 0, 5, -5); in test0()
85 test(S(""), 0, 0, SV("abcde"), 0, 6, -5); in test0()
[all …]
H A Dsize_size_pointer.pass.cpp31 test(const S& s, typename S::size_type pos1, typename S::size_type n1, const typename S::value_type… in test() function
48 test(S(""), 0, 0, "", 0); in test0()
49 test(S(""), 0, 0, "abcde", -5); in test0()
50 test(S(""), 0, 0, "abcdefghij", -10); in test0()
51 test(S(""), 0, 0, "abcdefghijklmnopqrst", -20); in test0()
52 test(S(""), 0, 1, "", 0); in test0()
53 test(S(""), 0, 1, "abcde", -5); in test0()
54 test(S(""), 0, 1, "abcdefghij", -10); in test0()
55 test(S(""), 0, 1, "abcdefghijklmnopqrst", -20); in test0()
56 test(S(""), 1, 0, "", 0); in test0()
[all …]
H A Dsize_size_string.pass.cpp29 TEST_CONSTEXPR_CXX20 void test(const S& s, typename S::size_type pos1, typename S::size_type n1, co… in test() function
46 test(S(""), 0, 0, S(""), 0); in test0()
47 test(S(""), 0, 0, S("abcde"), -5); in test0()
48 test(S(""), 0, 0, S("abcdefghij"), -10); in test0()
49 test(S(""), 0, 0, S("abcdefghijklmnopqrst"), -20); in test0()
50 test(S(""), 0, 1, S(""), 0); in test0()
51 test(S(""), 0, 1, S("abcde"), -5); in test0()
52 test(S(""), 0, 1, S("abcdefghij"), -10); in test0()
53 test(S(""), 0, 1, S("abcdefghijklmnopqrst"), -20); in test0()
54 test(S(""), 1, 0, S(""), 0); in test0()
[all …]
/llvm-project/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.formatted.print/
H A Dlocale-specific_form.pass.cpp25 // This test checks the locale-specific form for these print functions:
60 test(std::stringstream& stream, std::string expected, test_format_string<char, Args...> fmt, Args&&... args) { in test()
105 static void test(std::string expected, test_format_string<char, Args...> fmt, Args&&... args) { in test()
107 test(stream, std::move(expected), fmt, std::forward<Args>(args)...); in test()
111 static void test(std::string expected, std::locale loc, test_format_string<char, Args...> fmt, Args&&... args) { in test()
114 test(stream, std::move(expected), fmt, std::forward<Args>(args)...); in test()
131 test("true", "{:L}", true); in test_bool()
132 test("false", "{:L}", false); in test_bool()
134 test("yes", loc, "{:L}", true); in test_bool()
135 test("n in test_bool()
59 test(std::stringstream& stream, std::string expected, test_format_string<char, Args...> fmt, Args&&... args) { test() function
104 static void test(std::string expected, test_format_string<char, Args...> fmt, Args&&... args) { test() function
110 static void test(std::string expected, std::locale loc, test_format_string<char, Args...> fmt, Args&&... args) { test() function
[all...]
/llvm-project/libcxx/test/std/strings/basic.string/string.modifiers/string_replace/
H A Dsize_size_pointer_size.pass.cpp25 test(S s, in test() function
57 test(S(""), 0, 0, "", 0, S("")); in test0()
58 test(S(""), 0, 0, "12345", 0, S("")); in test0()
59 test(S(""), 0, 0, "12345", 1, S("1")); in test0()
60 test(S(""), 0, 0, "12345", 2, S("12")); in test0()
61 test(S(""), 0, 0, "12345", 4, S("1234")); in test0()
62 test(S(""), 0, 0, "12345", 5, S("12345")); in test0()
63 test(S(""), 0, 0, "1234567890", 0, S("")); in test0()
64 test(S(""), 0, 0, "1234567890", 1, S("1")); in test0()
65 test(S(""), 0, 0, "1234567890", 5, S("12345")); in test0()
[all …]
H A Diter_iter_pointer_size.pass.cpp23 test(S s, in test() function
42 test(S(""), 0, 0, "", 0, S("")); in test0()
43 test(S(""), 0, 0, "12345", 0, S("")); in test0()
44 test(S(""), 0, 0, "12345", 1, S("1")); in test0()
45 test(S(""), 0, 0, "12345", 2, S("12")); in test0()
46 test(S(""), 0, 0, "12345", 4, S("1234")); in test0()
47 test(S(""), 0, 0, "12345", 5, S("12345")); in test0()
48 test(S(""), 0, 0, "1234567890", 0, S("")); in test0()
49 test(S(""), 0, 0, "1234567890", 1, S("1")); in test0()
50 test(S(""), 0, 0, "1234567890", 5, S("12345")); in test0()
[all …]
/llvm-project/libcxx/test/std/strings/basic.string/string.ops/string_rfind/
H A Dpointer_size_size.pass.cpp21 test(const S& s, in test() function
34 test(S(""), "", 0, 0, 0); in test0()
35 test(S(""), "abcde", 0, 0, 0); in test0()
36 test(S(""), "abcde", 0, 1, S::npos); in test0()
37 test(S(""), "abcde", 0, 2, S::npos); in test0()
38 test(S(""), "abcde", 0, 4, S::npos); in test0()
39 test(S(""), "abcde", 0, 5, S::npos); in test0()
40 test(S(""), "abcdeabcde", 0, 0, 0); in test0()
41 test(S(""), "abcdeabcde", 0, 1, S::npos); in test0()
42 test(S(""), "abcdeabcde", 0, 5, S::npos); in test0()
[all …]
/llvm-project/libcxx/test/std/strings/basic.string/string.ops/string_find.last.not.of/
H A Dpointer_size_size.pass.cpp21 test(const S& s, in test() function
34 test(S(""), "", 0, 0, S::npos); in test0()
35 test(S(""), "irkhs", 0, 0, S::npos); in test0()
36 test(S(""), "kante", 0, 1, S::npos); in test0()
37 test(S(""), "oknlr", 0, 2, S::npos); in test0()
38 test(S(""), "pcdro", 0, 4, S::npos); in test0()
39 test(S(""), "bnrpe", 0, 5, S::npos); in test0()
40 test(S(""), "jtdaefblso", 0, 0, S::npos); in test0()
41 test(S(""), "oselktgbca", 0, 1, S::npos); in test0()
42 test(S(""), "eqgaplhckj", 0, 5, S::npos); in test0()
[all …]
/llvm-project/libcxx/test/std/strings/string.view/string.view.find/
H A Drfind_pointer_size_size.pass.cpp21 void test(const S& s, in test() function
34 test(S(""), "", 0, 0, 0); in test0()
35 test(S(""), "abcde", 0, 0, 0); in test0()
36 test(S(""), "abcde", 0, 1, S::npos); in test0()
37 test(S(""), "abcde", 0, 2, S::npos); in test0()
38 test(S(""), "abcde", 0, 4, S::npos); in test0()
39 test(S(""), "abcde", 0, 5, S::npos); in test0()
40 test(S(""), "abcdeabcde", 0, 0, 0); in test0()
41 test(S(""), "abcdeabcde", 0, 1, S::npos); in test0()
42 test(S(""), "abcdeabcde", 0, 5, S::npos); in test0()
[all …]
H A Dfind_last_not_of_pointer_size_size.pass.cpp22 void test(const S& s, in test() function
35 test(S(""), "", 0, 0, S::npos); in test0()
36 test(S(""), "irkhs", 0, 0, S::npos); in test0()
37 test(S(""), "kante", 0, 1, S::npos); in test0()
38 test(S(""), "oknlr", 0, 2, S::npos); in test0()
39 test(S(""), "pcdro", 0, 4, S::npos); in test0()
40 test(S(""), "bnrpe", 0, 5, S::npos); in test0()
41 test(S(""), "jtdaefblso", 0, 0, S::npos); in test0()
42 test(S(""), "oselktgbca", 0, 1, S::npos); in test0()
43 test(S(""), "eqgaplhckj", 0, 5, S::npos); in test0()
[all …]
H A Dfind_first_not_of_pointer_size_size.pass.cpp22 void test(const S& s, in test() function
35 test(S(""), "", 0, 0, S::npos); in test0()
36 test(S(""), "irkhs", 0, 0, S::npos); in test0()
37 test(S(""), "kante", 0, 1, S::npos); in test0()
38 test(S(""), "oknlr", 0, 2, S::npos); in test0()
39 test(S(""), "pcdro", 0, 4, S::npos); in test0()
40 test(S(""), "bnrpe", 0, 5, S::npos); in test0()
41 test(S(""), "jtdaefblso", 0, 0, S::npos); in test0()
42 test(S(""), "oselktgbca", 0, 1, S::npos); in test0()
43 test(S(""), "eqgaplhckj", 0, 5, S::npos); in test0()
[all …]
H A Dfind_pointer_size_size.pass.cpp22 void test(const S& s, in test() function
35 test(S(""), "", 0, 0, 0); in test0()
36 test(S(""), "abcde", 0, 0, 0); in test0()
37 test(S(""), "abcde", 0, 1, S::npos); in test0()
38 test(S(""), "abcde", 0, 2, S::npos); in test0()
39 test(S(""), "abcde", 0, 4, S::npos); in test0()
40 test(S(""), "abcde", 0, 5, S::npos); in test0()
41 test(S(""), "abcdeabcde", 0, 0, 0); in test0()
42 test(S(""), "abcdeabcde", 0, 1, S::npos); in test0()
43 test(S(""), "abcdeabcde", 0, 5, S::npos); in test0()
[all …]
H A Dfind_last_of_pointer_size_size.pass.cpp22 void test(const S& s, in test() function
35 test(S(""), "", 0, 0, S::npos); in test0()
36 test(S(""), "irkhs", 0, 0, S::npos); in test0()
37 test(S(""), "kante", 0, 1, S::npos); in test0()
38 test(S(""), "oknlr", 0, 2, S::npos); in test0()
39 test(S(""), "pcdro", 0, 4, S::npos); in test0()
40 test(S(""), "bnrpe", 0, 5, S::npos); in test0()
41 test(S(""), "jtdaefblso", 0, 0, S::npos); in test0()
42 test(S(""), "oselktgbca", 0, 1, S::npos); in test0()
43 test(S(""), "eqgaplhckj", 0, 5, S::npos); in test0()
[all …]
/llvm-project/libcxx/test/std/utilities/charconv/charconv.to.chars/
H A Dintegral.pass.cpp57 using to_chars_test_base<T>::test; in operator ()()
62 test(0, "0"); in operator ()()
63 test(42, "42"); in operator ()()
64 test(32768, "32768"); in operator ()()
65 test(0, "0", 10); in operator ()()
66 test(42, "42", 10); in operator ()()
67 test(32768, "32768", 10); in operator ()()
68 test(0xf, "f", 16); in operator ()()
69 test(0xdeadbeaf, "deadbeaf", 16); in operator ()()
70 test(075 in operator ()()
293 TEST_CONSTEXPR_CXX23 bool test() test() function
[all...]
/llvm-project/libcxx/test/std/strings/basic.string/string.ops/string_find.first.not.of/
H A Dpointer_size_size.pass.cpp21 test(const S& s, in test() function
34 test(S(""), "", 0, 0, S::npos); in test0()
35 test(S(""), "irkhs", 0, 0, S::npos); in test0()
36 test(S(""), "kante", 0, 1, S::npos); in test0()
37 test(S(""), "oknlr", 0, 2, S::npos); in test0()
38 test(S(""), "pcdro", 0, 4, S::npos); in test0()
39 test(S(""), "bnrpe", 0, 5, S::npos); in test0()
40 test(S(""), "jtdaefblso", 0, 0, S::npos); in test0()
41 test(S(""), "oselktgbca", 0, 1, S::npos); in test0()
42 test(S(""), "eqgaplhckj", 0, 5, S::npos); in test0()
[all …]
/llvm-project/libcxx/test/std/strings/basic.string/string.modifiers/string_insert/
H A Dsize_pointer_size.pass.cpp24 test(S s, typename S::size_type pos, const typename S::value_type* str, typename S::size_type n, S … in test() function
47 TEST_CONSTEXPR_CXX20 bool test() { in test() function
49 test(S(""), 0, "", 0, S("")); in test()
50 test(S(""), 0, "12345", 0, S("")); in test()
51 test(S(""), 0, "12345", 1, S("1")); in test()
52 test(S(""), 0, "12345", 2, S("12")); in test()
53 test(S(""), 0, "12345", 4, S("1234")); in test()
54 test(S(""), 0, "12345", 5, S("12345")); in test()
55 test(S(""), 0, "1234567890", 0, S("")); in test()
56 test(S(""), 0, "1234567890", 1, S("1")); in test()
[all …]
/llvm-project/libcxx/test/std/strings/basic.string/string.ops/string_find.last.of/
H A Dpointer_size_size.pass.cpp21 test(const S& s, in test() function
34 test(S(""), "", 0, 0, S::npos); in test0()
35 test(S(""), "irkhs", 0, 0, S::npos); in test0()
36 test(S(""), "kante", 0, 1, S::npos); in test0()
37 test(S(""), "oknlr", 0, 2, S::npos); in test0()
38 test(S(""), "pcdro", 0, 4, S::npos); in test0()
39 test(S(""), "bnrpe", 0, 5, S::npos); in test0()
40 test(S(""), "jtdaefblso", 0, 0, S::npos); in test0()
41 test(S(""), "oselktgbca", 0, 1, S::npos); in test0()
42 test(S(""), "eqgaplhckj", 0, 5, S::npos); in test0()
[all …]
/llvm-project/libcxx/test/std/strings/basic.string/string.ops/string_find.first.of/
H A Dpointer_size_size.pass.cpp21 test(const S& s, in test() function
34 test(S(""), "", 0, 0, S::npos); in test0()
35 test(S(""), "irkhs", 0, 0, S::npos); in test0()
36 test(S(""), "kante", 0, 1, S::npos); in test0()
37 test(S(""), "oknlr", 0, 2, S::npos); in test0()
38 test(S(""), "pcdro", 0, 4, S::npos); in test0()
39 test(S(""), "bnrpe", 0, 5, S::npos); in test0()
40 test(S(""), "jtdaefblso", 0, 0, S::npos); in test0()
41 test(S(""), "oselktgbca", 0, 1, S::npos); in test0()
42 test(S(""), "eqgaplhckj", 0, 5, S::npos); in test0()
[all …]
/llvm-project/libcxx/test/std/strings/basic.string/string.ops/string_find/
H A Dpointer_size_size.pass.cpp21 test(const S& s, in test() function
34 test(S(""), "", 0, 0, 0); in test0()
35 test(S(""), "abcde", 0, 0, 0); in test0()
36 test(S(""), "abcde", 0, 1, S::npos); in test0()
37 test(S(""), "abcde", 0, 2, S::npos); in test0()
38 test(S(""), "abcde", 0, 4, S::npos); in test0()
39 test(S(""), "abcde", 0, 5, S::npos); in test0()
40 test(S(""), "abcdeabcde", 0, 0, 0); in test0()
41 test(S(""), "abcdeabcde", 0, 1, S::npos); in test0()
42 test(S(""), "abcdeabcde", 0, 5, S::npos); in test0()
[all …]

12345678910>>...403