Lines Matching refs:expect
63 #define _check_numbers_template(arg_fmt, expect, str, fmt, n_args, ap) \ argument
66 for (; n_args > 0; n_args--, expect++) { \
67 typeof(*expect) got = *va_arg(ap, typeof(expect)); \
69 if (got != *expect) { \
71 str, fmt, *expect, got); \
355 T expect[8], result[8]; \
357 fill_random_array(expect); \
359 for (i = 0; i < ARRAY_SIZE(expect); i++) { \
365 append_fmt(test_buffer, &pos, BUF_SIZE, gen_fmt, expect[i]); \
369 test_array_8(fn, expect, test_buffer, fmt_buffer, result); \
383 T expect[8], result[8]; \
385 fill_random_array(expect); \
387 for (i = 0; i < ARRAY_SIZE(expect); i++) { \
393 expect[i]); \
398 test_array_8(fn, expect, test_buffer, fmt_buffer, result); \
608 const T expect[2] = { expect0, expect1 }; \
609 T result[2] = {~expect[0], ~expect[1]}; \
611 _test(fn, &expect, str, scan_fmt, n_args, &result[0], &result[1]); \
682 #define _test_simple_strtoxx(T, fn, gen_fmt, expect, base) \ argument
690 len = snprintf(test_buffer, BUF_SIZE, gen_fmt, expect); \
693 if (got != (expect)) { \
696 test_buffer, base, got, expect); \