Lines Matching refs:expect
47 #define _check_numbers_template(arg_fmt, expect, str, fmt, n_args, ap) \ argument
49 for (; n_args > 0; n_args--, expect++) { \
50 typeof(*expect) got = *va_arg(ap, typeof(expect)); \
51 if (got != *expect) { \
54 file, line, str, fmt, *expect, got); \
341 T expect[8], result[8]; \
343 fill_random_array(expect); \
345 for (i = 0; i < ARRAY_SIZE(expect); i++) { \
351 append_fmt(test_buffer, &pos, BUF_SIZE, gen_fmt, expect[i]); \
355 test_array_8(fn, expect, test_buffer, fmt_buffer, result); \
369 T expect[8], result[8]; \
371 fill_random_array(expect); \
373 for (i = 0; i < ARRAY_SIZE(expect); i++) { \
379 expect[i]); \
384 test_array_8(fn, expect, test_buffer, fmt_buffer, result); \
608 const T expect[2] = { expect0, expect1 }; \
609 T result[2] = { (T)~expect[0], (T)~expect[1] }; \
611 _test(test, __FILE__, __LINE__, fn, &expect, str, scan_fmt, n_args, &result[0], &result[1]);\
682 #define _test_simple_strtoxx(T, fn, gen_fmt, expect, base) \ argument
688 len = snprintf(test_buffer, BUF_SIZE, gen_fmt, expect); \
690 if (got != (expect)) { \
692 test_buffer, base, got, expect); \