Home
last modified time | relevance | path

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

12345678910>>...25

/llvm-project/libcxx/test/std/algorithms/alg.sorting/alg.sort/sort/
H A Dpstl.sort.pass.cpp38 int expected[] = {1, 2, 2, 3, 4, 6}; operator ()() local
44 int expected[] = {1, 2, 3, 2, 6, 4}; operator ()() local
50 int expected[] = {1}; operator ()() local
56 int expected[] = {1, 2}; operator ()() local
62 int expected[] = {1, 2, 4}; operator ()() local
68 int expected[] = {1, 1, 2, 2, 4, 4, 4, 6, 7}; operator ()() local
74 int expected[] = {1, 1, 2, 2, 4, 4, 4, 6, 7}; operator ()() local
80 int expected[] = {1, 1, 2, 2, 4, 4, 4, 6, 7}; operator ()() local
86 int expected[] = {1, 1, 1, 2, 2, 2, 3, 3, 3}; operator ()() local
92 int expected[] = {6, 4, 3, 2, 2, 1}; operator ()() local
100 auto expected = vec; operator ()() local
[all...]
/llvm-project/libcxx/test/std/ranges/range.adaptors/range.split/
H A Dgeneral.pass.cpp32 constexpr bool is_equal(View& view, const Expected& expected) { in is_equal()
37 constexpr bool test_function_call(T&& input, Separator&& separator, std::array<U, M> expected) { in test_function_call()
43 constexpr bool test_with_piping(T&& input, Separator&& separator, std::array<U, M> expected) { in test_with_piping()
128 constexpr void test_one(T&& input, Separator&& separator, std::array<U, M> expected) { in test_one()
145 std::array expected = {"abc"sv, std::string_view("def", sizeof("def"))}; in test_string_literals() local
156 std::array expected = {std::string_view("", 1)}; in test_string_literals() local
179 std::array expected = {"a"sv, "b"sv, "c"sv, "\0"sv}; in test_string_literals() local
241 std::array expected = {"abc"sv, "def"sv}; in main_test() local
248 std::array expected = {"abc"sv, ""sv, ""sv, ""sv, "def"sv}; in main_test() local
255 std::array expected = {"abc"sv, "def"sv, ""sv}; in main_test() local
[all …]
/llvm-project/libcxx/test/std/language.support/support.coroutines/end.to.end/
H A Dexpected.pass.cpp20 struct expected { struct
30 expected(T val) : data(std::make_shared<Data>(val, Error())) {} in expected() function
31 expected(error_tag, Error error) : data(std::make_shared<Data>(T(), error)) {} in expected() function
32 expected(std::shared_ptr<Data> p) : data(p) {} in expected() function
36 expected get_return_object() { data = std::make_shared<Data>(); return {data}; } in get_return_object() argument
54 expected<int> g() { return {0}; } in g() argument
/llvm-project/libcxx/test/std/ranges/range.adaptors/range.elements/
H A Dadaptor.pass.cpp66 auto expected = {1, 3, 5}; in test() local
74 auto expected = {1, 3, 5}; in test() local
82 auto expected = {2, 4, 6}; in test() local
90 auto expected = {2, 4, 6}; in test() local
98 auto expected = {1, 3, 5}; in test() local
106 auto expected = {2, 4, 6}; in test() local
118 auto expected = {1, 3, 5}; in test() local
130 auto expected = {1, 3, 5}; in test() local
142 auto expected = {3, 6, 9}; in test() local
154 auto expected = {2, 5, 8}; in test() local
[all …]
/llvm-project/libcxx/test/std/ranges/range.adaptors/range.lazy.split/
H A Dgeneral.pass.cpp64 constexpr bool is_equal(View& view, const Expected& expected) { in is_equal()
79 constexpr bool test_function_call(T&& input, Separator&& separator, std::array<U, M> expected) { in test_function_call()
85 constexpr bool test_with_piping(T&& input, Separator&& separator, std::array<U, M> expected) { in test_with_piping()
170 constexpr void test_one(T&& input, Separator&& separator, std::array<U, M> expected) { in test_one()
197 std::array expected = {"abc"sv, std::string_view("def", sizeof("def"))}; in test_string_literals() local
208 std::array expected = {std::string_view("", 1)}; in test_string_literals() local
231 std::array expected = {"a"sv, "b"sv, "c"sv, "\0"sv}; in test_string_literals() local
293 std::array expected = {"abc"sv, "def"sv}; in main_test() local
300 std::array expected = {"abc"sv, ""sv, ""sv, ""sv, "def"sv}; in main_test() local
307 std::array expected = {"abc"sv, "def"sv, ""sv}; in main_test() local
[all …]
/llvm-project/libc/test/UnitTest/
H A DFPMatcher.h32 T expected; global() variable
120 EXPECT_FP_EQ(expected,actual) global() argument
124 TEST_FP_EQ(expected,actual) global() argument
131 ASSERT_FP_EQ(expected,actual) global() argument
135 EXPECT_FP_NE(expected,actual) global() argument
139 ASSERT_FP_NE(expected,actual) global() argument
143 EXPECT_MATH_ERRNO(expected) global() argument
152 ASSERT_MATH_ERRNO(expected) global() argument
161 EXPECT_FP_EXCEPTION(expected) global() argument
170 ASSERT_FP_EXCEPTION(expected) global() argument
193 EXPECT_FP_EQ_ALL_ROUNDING(expected,actual) global() argument
214 EXPECT_FP_EQ_ROUNDING_MODE(expected,actual,rounding_mode) global() argument
223 EXPECT_FP_EQ_ROUNDING_NEAREST(expected,actual) global() argument
226 EXPECT_FP_EQ_ROUNDING_UPWARD(expected,actual) global() argument
229 EXPECT_FP_EQ_ROUNDING_DOWNWARD(expected,actual) global() argument
232 EXPECT_FP_EQ_ROUNDING_TOWARD_ZERO(expected,actual) global() argument
[all...]
H A DMemoryMatcher.h26 EXPECT_MEM_EQ(expected,actual) global() argument
34 ASSERT_MEM_EQ(expected,actual) global() argument
47 MemoryView expected; global() variable
62 EXPECT_MEM_EQ(expected,actual) global() argument
64 ASSERT_MEM_EQ(expected,actual) global() argument
[all...]
H A DPrintfMatcher.h36 EXPECT_THAT(actual, LIBC_NAMESPACE::testing::FormatSectionMatcher(expected)) argument
39 ASSERT_THAT(actual, LIBC_NAMESPACE::testing::FormatSectionMatcher(expected)) argument
21 printf_core::FormatSection expected; global() variable
H A DScanfMatcher.h36 EXPECT_THAT(actual, LIBC_NAMESPACE::testing::FormatSectionMatcher(expected)) argument
39 ASSERT_THAT(actual, LIBC_NAMESPACE::testing::FormatSectionMatcher(expected)) argument
21 scanf_core::FormatSection expected; global() variable
/llvm-project/libcxx/test/std/algorithms/alg.modifying.operations/alg.fill/
H A Dfill.pass.cpp26 test(Container in,size_t from,size_t to,typename Container::value_type value,Container expected) test() argument
37 std::array<T, 4> expected = {5, 5, 5, 5}; operator ()() local
42 std::array<T, 4> expected = {1, 5, 5, 4}; operator ()() local
54 std::vector<bool> expected(4, true); test() local
60 std::vector<bool> expected(8, true); test() local
68 std::vector<bool> expected(8, true); test() local
76 std::vector<bool> expected(16, true); test() local
86 std::vector<bool> expected(8, true); test() local
[all...]
/llvm-project/mlir/unittests/Dialect/Utils/
H A DIndexingUtilsTest.cpp17 std::vector<SmallVector<int64_t>> expected = {{0, 0}, {0, 4}, {2, 0}, {2, 4}}; in TEST() local
31 std::vector<SmallVector<int64_t>> expected = {{0, 0}, {2, 0}, {0, 4}, {2, 4}}; in TEST() local
41 SmallVector<int64_t> expected = {static_cast<int64_t>(idx) / 2, in TEST() local
47 SmallVector<int64_t> expected = {0, static_cast<int64_t>(idx) % 4, in TEST() local
57 SmallVector<int64_t> expected = {((static_cast<int64_t>(idx) / 2) % 2) * 4, in TEST() local
66 SmallVector<int64_t> expected = {((static_cast<int64_t>(idx) / 2) % 2) * 5, in TEST() local
/llvm-project/libcxx/test/std/algorithms/alg.sorting/alg.merge/
H A Dranges_inplace_merge.pass.cpp89 void testInplaceMergeImpl(std::array<int, N1> input, int midIdx, std::array<int, N2> expected) { in testInplaceMergeImpl()
120 std::array expected = in; in testImpl() local
127 std::array expected = {0, 2, 4, 5, 6, 9, 10, 15, 18, 22}; in testImpl() local
134 std::array expected = {0, 2, 4, 5, 6, 9, 10}; in testImpl() local
141 std::array expected = {0, 0, 5, 5, 9, 9}; in testImpl() local
148 std::array expected = {1, 2, 5, 5, 9, 9, 9}; in testImpl() local
155 std::array expected = in; in testImpl() local
162 std::array expected = in; in testImpl() local
169 std::array expected = in; in testImpl() local
176 std::array expected = in; in testImpl() local
[all …]
/llvm-project/libcxx/test/std/algorithms/alg.modifying.operations/alg.unique/
H A Dranges_unique.pass.cpp76 constexpr void testUniqueImpl(std::array<int, N1> input, std::array<int, N2> expected) { in testUniqueImpl()
103 std::array expected{1, 2, 3, 2, 1}; in testImpl() local
110 std::array expected{2, 3, 4, 3}; in testImpl() local
117 std::array expected{2, 3, 4, 3, 5}; in testImpl() local
124 std::array expected{1}; in testImpl() local
131 std::array<int, 0> expected{}; in testImpl() local
137 std::array expected{1}; in testImpl() local
161 std::array expected{Data{4}, Data{8}}; in test() local
184 std::array expected{Data{4}, Data{8}}; in test() local
209 std::array expected{1, 2, 3, 4, 3, 5, 6, 1}; in test() local
/llvm-project/libcxx/test/std/algorithms/alg.sorting/alg.set.operations/includes/
H A Dranges_includes.pass.cpp107 constexpr void testIncludesImpl(std::array<int, N1> in1, std::array<int, N2> in2, bool expected) { in testIncludesImpl()
133 bool expected = false; in testImpl() local
140 bool expected = false; in testImpl() local
148 bool expected = false; in testImpl() local
156 bool expected = true; in testImpl() local
164 bool expected = true; in testImpl() local
172 bool expected = false; in testImpl() local
180 bool expected = true; in testImpl() local
188 bool expected = false; in testImpl() local
196 bool expected = false; in testImpl() local
[all …]
/llvm-project/libcxx/test/std/algorithms/alg.sorting/alg.binary.search/equal.range/
H A Dranges_equal_range.pass.cpp76 … void testEqualRangeImpl(std::array<int, N>& in, int value, std::ranges::subrange<int*> expected) { in testEqualRangeImpl()
104 std::ranges::subrange<int*> expected{in.data() + 4, in.data() + 4}; in testImpl() local
112 std::ranges::subrange<int*> expected{in.data(), in.data()}; in testImpl() local
120 std::ranges::subrange<int*> expected{in.data() + in.size(), in.data() + in.size()}; in testImpl() local
128 std::ranges::subrange<int*> expected{in.data() + 2, in.data() + 3}; in testImpl() local
136 std::ranges::subrange<int*> expected{in.data() + 3, in.data() + 6}; in testImpl() local
144 std::ranges::subrange<int*> expected{in.data(), in.data() + in.size()}; in testImpl() local
152 std::ranges::subrange<int*> expected{in.data(), in.data()}; in testImpl() local
160 std::ranges::subrange<int*> expected{in.data() + 4, in.data() + 6}; in testImpl() local
/llvm-project/libcxx/test/std/ranges/range.adaptors/range.take.while/
H A Dadaptor.pass.cpp59 auto expected = {1, 2}; in test() local
66 auto expected = {1, 2}; in test() local
74 auto expected = {1, 2}; in test() local
81 auto expected = {1, 2}; in test() local
89 auto expected = {1, 2}; in test() local
101 auto expected = {1}; in test() local
/llvm-project/libcxx/test/std/input.output/syncstream/syncbuf/syncstream.syncbuf.assign/
H A Dswap.pass.cpp32 std::basic_string<CharT> expected(42, CharT('*')); // a long string in test_basic() local
68 std::basic_string<CharT> expected(42, CharT('*')); // a long string in test_short_write_after_swap() local
96 std::basic_string<CharT> expected(42, CharT('*')); // a long string in test_long_write_after_swap() local
125 std::basic_string<CharT> expected(42, CharT('*')); // a long string in test_emit_on_sync() local
159 std::basic_string<CharT> expected(42, CharT('*')); // a long string in test_emit_on_sync() local
194 std::basic_string<CharT> expected(42, CharT('*')); // a long string in test_emit_on_sync() local
228 std::basic_string<CharT> expected(42, CharT('*')); // a long string in test_emit_on_sync() local
/llvm-project/libcxx/test/std/algorithms/alg.modifying.operations/alg.remove/
H A Dranges_remove_copy_if.pass.cpp102 constexpr void testRemoveCopyIfImpl(std::array<int, N1> in, std::array<int, N2> expected, Pred pred… in testRemoveCopyIfImpl()
133 std::array expected{1, 3, 1}; in testImpl() local
141 std::array expected{1, 2, 2, 1}; in testImpl() local
149 std::array expected{1, 2, 3, 2, 1}; in testImpl() local
157 std::array<int, 0> expected{}; in testImpl() local
165 std::array expected{2, 3, 2}; in testImpl() local
173 std::array expected{1, 2, 3, 2}; in testImpl() local
181 std::array expected{6, 7, 8, 9, 10}; in testImpl() local
189 std::array<int, 0> expected{}; in testImpl() local
197 std::array<int, 0> expected{}; in testImpl() local
[all …]
/llvm-project/libc/test/src/string/
H A Dstpncpy_test.cpp18 const LIBC_NAMESPACE::cpp::span<const 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 LIBC_NAMESPACE::cpp::span<const 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 LIBC_NAMESPACE::cpp::span<const 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/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/libcxx/test/std/ranges/range.adaptors/range.drop.while/
H A Dadaptor.pass.cpp69 auto expected = {3, 4, 3, 2, 1}; in test() local
76 auto expected = {3, 4, 3, 2, 1}; in test() local
84 auto expected = {3, 4, 3, 2, 1}; in test() local
91 auto expected = {3, 4, 3, 2, 1}; in test() local
99 auto expected = {3, 4, 3, 2, 1}; in test() local
111 auto expected = {4, 3, 2, 1}; in test() local
/llvm-project/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()

12345678910>>...25