Lines Matching refs:expected
40 check_streq_impl (const char * file, int line, const char * expected, const char * actual)
42 const bool pass = !tr_strcmp0 (expected, actual);
48 fprintf (stderr, "FAIL %s:%d, expected \"%s\", got \"%s\"\n", file, line, expected?expected:"(null)", actual?actual:"(null)");
55 check_eq_impl (const char * file, int line, int64_t expected, int64_t actual)
57 const bool pass = expected == actual;
63 fprintf (stderr, "FAIL %s:%d, expected \"%"PRId64"\", got \"%"PRId64"\"\n", file, line, expected, actual);
80 #define check_streq(expected, actual) \
83 if (!check_streq_impl (__FILE__, __LINE__, (expected), (actual))) \
87 #define check_int_eq(expected, actual) \
90 if (!check_eq_impl (__FILE__, __LINE__, (expected), (actual))) \