Lines Matching refs:expectedText
252 UText expectedText = UTEXT_INITIALIZER;
253 utext_openUTF8(&expectedText, expected, -1, &status);
258 if(utext_nativeLength(&expectedText)==0 && (strlen(expected)!=0)) {
259 errln("%s:%d: assertUText: expected is %d utf-8 bytes, but utext_nativeLength(expectedText) returned 0.", file, line, strlen(expected));
263 if (!testUTextEqual(&expectedText, actual)) {
267 utextToPrintable(expectedBuf, sizeof(expectedBuf)/sizeof(expectedBuf[0]), &expectedText);
268 errln("%s:%d: assertUText: Failure: expected \"%s\" (%d chars), got \"%s\" (%d chars)", file, line, expectedBuf, (int)utext_nativeLength(&expectedText), buf, (int)utext_nativeLength(actual));
270 utext_close(&expectedText);
278 UText expectedText = UTEXT_INITIALIZER;
279 regextst_openUTF8FromInvariant(&expectedText, expected, -1, &status);
285 if (!testUTextEqual(&expectedText, actual)) {
289 utextToPrintable(expectedBuf, sizeof(expectedBuf)/sizeof(expectedBuf[0]), &expectedText);
290 errln("%s:%d: assertUTextInvariant: Failure: expected \"%s\" (%d uchars), got \"%s\" (%d chars)", file, line, expectedBuf, (int)utext_nativeLength(&expectedText), buf, (int)utext_nativeLength(actual));
292 utext_close(&expectedText);