Lines Matching refs:expected
39 #define CHECK_RESULT(expected, actual) \
41 fail_unless(actual == expected, "Expected %ld, got %ld", \
42 expected, actual); \
45 #define CHECK_ERRNO(expected, actual) \
47 fail_unless(actual == expected, "Expected errno %d[%s], got %d[%s]", \
48 expected, strerror(expected), \
52 #define CHECK_ENDPTR(expected, actual) \
54 fail_unless(actual == expected, "Expected endptr %p, got %p", \
55 expected, actual); \
72 int32_t expected = 123;
81 CHECK_RESULT(expected, result);
89 int32_t expected = -123;
98 CHECK_RESULT(expected, result);
106 int32_t expected = INT32_MAX;
115 CHECK_RESULT(expected, result);
123 int32_t expected = INT32_MIN;
132 CHECK_RESULT(expected, result);
140 int32_t expected = INT32_MAX;
149 CHECK_RESULT(expected, result);
157 int32_t expected = INT32_MIN;
166 CHECK_RESULT(expected, result);
174 int32_t expected = 12;
184 CHECK_RESULT(expected, result);
192 int32_t expected = 0;
202 CHECK_RESULT(expected, result);
210 int32_t expected = 0;
220 CHECK_RESULT(expected, result);
228 int32_t expected = 0;
238 CHECK_RESULT(expected, result);
251 uint32_t expected = 123;
260 CHECK_RESULT(expected, result);
268 uint32_t expected = UINT32_MAX;
277 CHECK_RESULT(expected, result);
285 uint32_t expected = UINT32_MAX;
294 CHECK_RESULT(expected, result);
303 uint32_t expected = UINT32_MAX;
312 CHECK_RESULT(expected, result);
320 uint32_t expected = 12;
330 CHECK_RESULT(expected, result);
338 uint32_t expected = 0;
348 CHECK_RESULT(expected, result);
356 uint32_t expected = 0;
366 CHECK_RESULT(expected, result);
374 uint32_t expected = 0;
384 CHECK_RESULT(expected, result);
393 uint16_t expected = 123;
402 CHECK_RESULT(expected, result);
410 uint32_t expected = UINT16_MAX;
419 CHECK_RESULT(expected, result);
427 uint32_t expected = UINT16_MAX;
436 CHECK_RESULT(expected, result);
445 uint32_t expected = UINT16_MAX;
454 CHECK_RESULT(expected, result);
462 uint32_t expected = 12;
472 CHECK_RESULT(expected, result);
480 uint32_t expected = 0;
490 CHECK_RESULT(expected, result);
498 uint32_t expected = 0;
508 CHECK_RESULT(expected, result);
516 uint32_t expected = 0;
526 CHECK_RESULT(expected, result);