Home
last modified time | relevance | path

Searched defs:expected (Results 1 – 25 of 481) sorted by relevance

12345678910>>...20

/llvm-project-15.0.7/libcxx/test/std/language.support/support.coroutines/end.to.end/
H A Dexpected.pass.cpp21 struct expected { struct
31 expected(T val) : data(std::make_shared<Data>(val, Error())) {} in expected() argument
32 expected(error_tag, Error error) : data(std::make_shared<Data>(T(), error)) {} in expected() function
33 expected(std::shared_ptr<Data> p) : data(p) {} in expected() function
37 expected get_return_object() { data = std::make_shared<Data>(); return {data}; } in get_return_object() argument
55 expected<int> g() { return {0}; } in g() argument
/llvm-project-15.0.7/libcxx/test/std/experimental/language.support/support.coroutines/end.to.end/
H A Dexpected.pass.cpp21 struct expected { struct
31 expected(T val) : data(std::make_shared<Data>(val, Error())) {} in expected() argument
32 expected(error_tag, Error error) : data(std::make_shared<Data>(T(), error)) {} in expected() argument
33 expected(std::shared_ptr<Data> p) : data(p) {} in expected() argument
37 expected get_return_object() { data = std::make_shared<Data>(); return {data}; } in get_return_object() argument
55 expected<int> g() { return {0}; } in g() argument
/llvm-project-15.0.7/libcxx/test/std/ranges/range.adaptors/range.lazy.split/
H A Dgeneral.pass.cpp200 std::array expected = {std::string_view("", 1)}; in test_string_literals() local
285 std::array expected = {"abc"sv, "def"sv}; in main_test() local
299 std::array expected = {"abc"sv, "def"sv, ""sv}; in main_test() local
306 std::array expected = {""sv, "abc"sv, "def"sv}; in main_test() local
313 std::array expected = {"abc"sv}; in main_test() local
320 std::array expected = {""sv, ""sv}; in main_test() local
327 std::array expected = {""sv, ""sv, ""sv, ""sv}; in main_test() local
335 std::array expected = {""sv, "aa"sv}; in main_test() local
362 std::array<std::string_view, 0> expected = {}; in main_test() local
370 std::array expected = {"a"sv, "b"sv, "c"sv}; in main_test() local
[all …]
/llvm-project-15.0.7/libc/utils/UnitTest/
H A DFPMatcher.h35 T expected; variable
79 #define EXPECT_FP_EQ(expected, actual) \ argument
85 #define ASSERT_FP_EQ(expected, actual) \ argument
91 #define EXPECT_FP_NE(expected, actual) \ argument
97 #define ASSERT_FP_NE(expected, actual) \ argument
103 #define EXPECT_MATH_ERRNO(expected) \ argument
112 #define ASSERT_MATH_ERRNO(expected) \ argument
121 #define EXPECT_FP_EXCEPTION(expected) \ argument
128 #define ASSERT_FP_EXCEPTION(expected) \ argument
H A DPrintfMatcher.h23 FormatSection expected; variable
38 #define EXPECT_FORMAT_EQ(expected, actual) \ argument
42 #define ASSERT_FORMAT_EQ(expected, actual) \ argument
/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.sorting/alg.merge/
H A Dranges_inplace_merge.pass.cpp121 std::array expected = in; in testImpl() local
135 std::array expected = {0, 2, 4, 5, 6, 9, 10}; in testImpl() local
142 std::array expected = {0, 0, 5, 5, 9, 9}; in testImpl() local
149 std::array expected = {1, 2, 5, 5, 9, 9, 9}; in testImpl() local
156 std::array expected = in; in testImpl() local
163 std::array expected = in; in testImpl() local
170 std::array expected = in; in testImpl() local
177 std::array expected = in; in testImpl() local
184 std::array expected{2, 5, 7, 9, 10}; in testImpl() local
191 std::array expected{2, 5, 7, 9, 10}; in testImpl() local
[all …]
/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.modifying.operations/alg.unique/
H A Dranges_unique.pass.cpp77 constexpr void testUniqueImpl(std::array<int, N1> input, std::array<int, N2> expected) { in testUniqueImpl()
104 std::array expected{1, 2, 3, 2, 1}; in testImpl() local
111 std::array expected{2, 3, 4, 3}; in testImpl() local
118 std::array expected{2, 3, 4, 3, 5}; in testImpl() local
125 std::array expected{1}; in testImpl() local
132 std::array<int, 0> expected{}; in testImpl() local
138 std::array expected{1}; in testImpl() local
162 std::array expected{Data{4}, Data{8}}; in test() local
185 std::array expected{Data{4}, Data{8}}; in test() local
210 std::array expected{1, 2, 3, 4, 3, 5, 6, 1}; in test() local
H A Dranges_unique_copy.pass.cpp183 constexpr void testUniqueCopyImpl(std::array<int, N1> in, std::array<int, N2> expected) { in testUniqueCopyImpl()
213 std::array expected{1, 2, 3, 2, 1}; in testImpl() local
220 std::array expected{2, 3, 4, 3}; in testImpl() local
227 std::array expected{2, 3, 4, 3, 5}; in testImpl() local
234 std::array expected{1}; in testImpl() local
241 std::array<int, 0> expected{}; in testImpl() local
355 std::array expected{Data{4}, Data{8}}; in test() local
380 std::array expected{Data{4}, Data{8}}; in test() local
407 std::array expected{1, 2, 3, 4, 3, 5, 6, 1}; in test() local
/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.sorting/alg.set.operations/includes/
H A Dranges_includes.pass.cpp134 bool expected = false; in testImpl() local
141 bool expected = false; in testImpl() local
149 bool expected = false; in testImpl() local
157 bool expected = true; in testImpl() local
165 bool expected = true; in testImpl() local
173 bool expected = false; in testImpl() local
181 bool expected = true; in testImpl() local
189 bool expected = false; in testImpl() local
197 bool expected = false; in testImpl() local
205 bool expected = true; in testImpl() local
[all …]
/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.sorting/alg.binary.search/equal.range/
H A Dranges_equal_range.pass.cpp77 … void testEqualRangeImpl(std::array<int, N>& in, int value, std::ranges::subrange<int*> expected) { in testEqualRangeImpl()
105 std::ranges::subrange<int*> expected{in.data() + 4, in.data() + 4}; in testImpl() local
113 std::ranges::subrange<int*> expected{in.data(), in.data()}; in testImpl() local
121 std::ranges::subrange<int*> expected{in.data() + in.size(), in.data() + in.size()}; in testImpl() local
129 std::ranges::subrange<int*> expected{in.data() + 2, in.data() + 3}; in testImpl() local
137 std::ranges::subrange<int*> expected{in.data() + 3, in.data() + 6}; in testImpl() local
145 std::ranges::subrange<int*> expected{in.data(), in.data() + in.size()}; in testImpl() local
153 std::ranges::subrange<int*> expected{in.data(), in.data()}; in testImpl() local
161 std::ranges::subrange<int*> expected{in.data() + 4, in.data() + 6}; in testImpl() local
/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.modifying.operations/alg.remove/
H A Dranges_remove_copy_if.pass.cpp134 std::array expected{1, 3, 1}; in testImpl() local
142 std::array expected{1, 2, 2, 1}; in testImpl() local
150 std::array expected{1, 2, 3, 2, 1}; in testImpl() local
158 std::array<int, 0> expected{}; in testImpl() local
166 std::array expected{2, 3, 2}; in testImpl() local
174 std::array expected{1, 2, 3, 2}; in testImpl() local
182 std::array expected{6, 7, 8, 9, 10}; in testImpl() local
190 std::array<int, 0> expected{}; in testImpl() local
198 std::array<int, 0> expected{}; in testImpl() local
231 std::array expected{Data{4}, Data{12}, Data{12}}; in test() local
[all …]
/llvm-project-15.0.7/libc/test/src/string/
H A Dstpncpy_test.cpp18 const __llvm_libc::cpp::ArrayRef<char> expected, in check_stpncpy()
36 const char expected[] = {'a', 'b'}; in TEST_F() local
43 const char expected[] = {'x', 'b'}; // no \0 is appended in TEST_F() local
50 const char expected[] = {'\0', 'b'}; in TEST_F() local
57 const char expected[] = {'\0', '\0'}; in TEST_F() local
64 const char expected[] = {'x', 'y'}; in TEST_F() local
71 const char expected[] = {'x', '\0'}; in TEST_F() local
H A Dmemccpy_test.cpp19 const __llvm_libc::cpp::ArrayRef<char> expected, in check_memccpy()
43 const char expected[] = {'a', 'b'}; in TEST_F() local
50 const char expected[] = {'a', 'b'}; in TEST_F() local
57 const char expected[] = {'x', 'b'}; in TEST_F() local
64 const char expected[] = {'x', 'b'}; in TEST_F() local
71 const char expected[] = {'x', 'y'}; in TEST_F() local
78 const char expected[] = {'x', 'b'}; in TEST_F() local
H A Dstrncpy_test.cpp18 const __llvm_libc::cpp::ArrayRef<char> expected) { in check_strncpy()
34 const char expected[] = {'a', 'b'}; in TEST_F() local
41 const char expected[] = {'x', 'b'}; // no \0 is appended in TEST_F() local
48 const char expected[] = {'\0', 'b'}; in TEST_F() local
55 const char expected[] = {'\0', '\0'}; in TEST_F() local
/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.modifying.operations/alg.shift/
H A Dshift_right.pass.cpp48 const T expected[] = { 0, 1, 2 }; in test() local
58 const T expected[] = { 0, 1 }; in test() local
66 const T expected[] = { 1, 2, 3, 4, 5, 6 }; in test() local
74 const T expected[] = { 1, 2 }; in test() local
84 const T expected[] = { 0, 1, 2 }; in test() local
95 const T expected[] = { 0, 1, 2 }; in test() local
H A Dshift_left.pass.cpp48 const T expected[] = { 0, 1, 2 }; in test() local
59 const T expected[] = { 1, 2 }; in test() local
67 const T expected[] = { 3, 4, 5, 6, 7, 8 }; in test() local
75 const T expected[] = { 7, 8 }; in test() local
85 const T expected[] = { 0, 1, 2 }; in test() local
96 const T expected[] = { 0, 1, 2 }; in test() local
/llvm-project-15.0.7/lldb/unittests/Core/
H A DDumpDataExtractorTest.cpp22 llvm::StringRef expected) { in TestDumpWithAddress()
43 llvm::StringRef expected) { in TestDumpWithOffset()
82 lldb::Format format, llvm::StringRef expected) { in TestDumpImpl()
94 static void TestDump(T data, lldb::Format format, llvm::StringRef expected) { in TestDump()
100 llvm::StringRef expected) { in TestDump()
109 llvm::StringRef expected) { in TestDump()
278 const char *expected = "0x00000000: A\n" in TEST() local
286 size_t num_per_line, llvm::StringRef expected) { in TestDumpMultiLine()
294 size_t num_per_line, llvm::StringRef expected) { in TestDumpMultiLine()
347 llvm::StringRef expected) { in TestDumpWithItemByteSize()
/llvm-project-15.0.7/libcxx/test/support/
H A Dcmpxchg_loop.h12 bool cmpxchg_weak_loop(A& atomic, typename A::value_type& expected, typename A::value_type desired)… in cmpxchg_weak_loop()
23 bool cmpxchg_weak_loop(A& atomic, typename A::value_type& expected, typename A::value_type desired, in cmpxchg_weak_loop()
37 bool c_cmpxchg_weak_loop(A* atomic, typename A::value_type* expected, typename A::value_type desire… in c_cmpxchg_weak_loop()
48 bool c_cmpxchg_weak_loop(A* atomic, typename A::value_type* expected, typename A::value_type desire… in c_cmpxchg_weak_loop()
/llvm-project-15.0.7/polly/lib/External/isl/
H A Disl_test_int.c189 static void int_test_neg(isl_int expected, isl_int arg) in int_test_neg()
203 static void int_test_abs(isl_int expected, isl_int arg) in int_test_abs()
216 char *expected, *arg; member
272 static void int_test_mul(isl_int expected, isl_int lhs, isl_int rhs) in int_test_mul()
309 static void int_test_add(isl_int expected, isl_int lhs, isl_int rhs) in int_test_add()
320 static void int_test_sub(isl_int expected, isl_int lhs, isl_int rhs) in int_test_sub()
343 static void int_test_fdiv(isl_int expected, isl_int lhs, isl_int rhs) in int_test_fdiv()
362 static void int_test_cdiv(isl_int expected, isl_int lhs, isl_int rhs) in int_test_cdiv()
403 static void int_test_gcd(isl_int expected, isl_int lhs, isl_int rhs) in int_test_gcd()
417 static void int_test_lcm(isl_int expected, isl_int lhs, isl_int rhs) in int_test_lcm()
[all …]
/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.sorting/alg.set.operations/set.symmetric.difference/
H A Dranges_set_symmetric_difference.pass.cpp156 std::array expected{0, 6, 12, 15, 16}; in testImpl() local
164 std::array expected{0, 6, 12, 16, 17, 19}; in testImpl() local
172 std::array<int, 0> expected{}; in testImpl() local
180 std::array expected{8, 12, 13}; in testImpl() local
188 std::array expected{2, 5}; in testImpl() local
196 std::array expected{1, 5, 5, 7, 7, 8, 9, 10, 12}; in testImpl() local
204 std::array expected{7, 9, 12, 13}; in testImpl() local
212 std::array expected{3, 4, 5}; in testImpl() local
220 std::array expected{3, 4, 5}; in testImpl() local
228 std::array<int, 0> expected{}; in testImpl() local
[all …]
/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.sorting/alg.set.operations/set.union/
H A Dranges_set_union.pass.cpp156 std::array expected{0, 2, 6, 8, 12, 15, 16}; in testImpl() local
164 std::array expected{0, 2, 6, 8, 12, 15, 16, 17, 19}; in testImpl() local
172 std::array expected{0, 1, 2}; in testImpl() local
180 std::array expected{8, 8, 10, 12, 13}; in testImpl() local
188 std::array expected{0, 1, 1, 2, 5}; in testImpl() local
196 std::array expected{1, 5, 5, 7, 7, 8, 9, 10, 12}; in testImpl() local
204 std::array expected{7, 7, 7, 9, 12, 13}; in testImpl() local
212 std::array expected{3, 4, 5}; in testImpl() local
220 std::array expected{3, 4, 5}; in testImpl() local
228 std::array<int, 0> expected{}; in testImpl() local
[all …]
/llvm-project-15.0.7/llvm/unittests/XRay/
H A DFDRRecordPrinterTest.cpp28 static const char *expected() { return "<Buffer: size = 1 bytes>"; } in expected() function
36 static const char *expected() { return "<Wall Time: seconds = 1.000002>"; } in expected() function
44 static const char *expected() { return "<CPU: id = 1, tsc = 2>"; } in expected() function
52 static const char *expected() { return "<TSC Wrap: base = 1>"; } in expected() function
60 static const char *expected() { in expected() function
70 static const char *expected() { in expected() function
80 static const char *expected() { return "<PID: 1>"; } in expected() function
88 static const char *expected() { return "<Thread ID: 1>"; } in expected() function
96 static const char *expected() { return "<End of Buffer>"; } in expected() function
/llvm-project-15.0.7/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.arithmetic/
H A Dminus1.pass.cpp35 void test_octal(const char *expected) in test_octal()
43 void test_dec(const char *expected) in test_dec()
51 void test_hex(const char *expected) in test_hex()
/llvm-project-15.0.7/lldb/test/API/tools/lldb-server/memory-tagging/
H A DTestGdbRemoteMemoryTagging.py19 def check_memtags_response(self, packet_name, body, expected): argument
26 def check_tag_read(self, body, expected): argument
139 def check_tag_write(self, body, expected): argument
/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.sorting/alg.set.operations/set.intersection/
H A Dranges_set_intersection.pass.cpp143 std::array expected{6, 9}; in testImpl() local
151 std::array expected{2, 8}; in testImpl() local
159 std::array expected{2, 8, 15}; in testImpl() local
167 std::array expected{0, 1, 2}; in testImpl() local
175 std::array expected{8, 10}; in testImpl() local
183 std::array expected{0, 1, 1}; in testImpl() local
191 std::array<int, 0> expected{}; in testImpl() local
199 std::array expected{7, 7}; in testImpl() local
207 std::array<int, 0> expected{}; in testImpl() local
215 std::array<int, 0> expected{}; in testImpl() local
[all …]

12345678910>>...20