Lines Matching refs:expected
334 idn_testsuite_assertint(idn_testsuite_t ctx, int gotten, int expected,
342 if (expected == gotten)
346 sprintf(msg, "`%d' expected, but got `%d'", expected, gotten);
352 const char *gotten, const char *expected,
358 assert(ctx != NULL && gotten != NULL && expected != NULL &&
363 if (strcmp(expected, gotten) == 0)
367 msg = (char *)malloc(strlen(expected) * 4 + strlen(gotten) * 4 + 32);
368 expected_hex = make_hex_string(expected);
373 sprintf(msg, "`%s' expected, but got `%s'",
386 const void *expected, const char *file, int lineno) {
393 if (expected == gotten)
397 if (expected == NULL)
398 msg = "NULL expected, but got non-NULL";
400 msg = "non-NULL expected, but got NULL";
402 msg = "expected pointer != gotten pointer";
423 msg = "non-NULL expected, but got NULL";
425 msg = "expected pointer == gotten pointer";
431 idn_result_t gotten, idn_result_t expected,
439 if (expected == gotten)
443 sprintf(msg, "`%s' expected, but got `%s'",
444 idn_result_tostring(expected), idn_result_tostring(gotten));
451 const unsigned long *expected,
457 assert(ctx != NULL && gotten != NULL && expected != NULL &&
462 if (idn_ucs4_strcmp(expected, gotten) == 0)
466 msg = (char *)malloc(idn_ucs4_strlen(expected) * 8 +
468 expected_hex = make_hex_ucs4string(expected);
473 sprintf(msg, "`%s' expected, but got `%s'",