Home | History | Annotate | Download | only in intltest

Lines Matching defs:expectedText

194     UText expectedText = UTEXT_INITIALIZER;
195 utext_openUTF8(&expectedText, expected, -1, &status);
200 if(utext_nativeLength(&expectedText)==0 && (strlen(expected)!=0)) {
201 errln("%s:%d: assertUText: expected is %d utf-8 bytes, but utext_nativeLength(expectedText) returned 0.", file, line, strlen(expected));
205 if (utext_compare(&expectedText, -1, actual, -1) != 0) {
209 utextToPrintable(expectedBuf, sizeof(expectedBuf)/sizeof(expectedBuf[0]), &expectedText);
210 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));
212 utext_close(&expectedText);
220 UText expectedText = UTEXT_INITIALIZER;
221 regextst_openUTF8FromInvariant(&expectedText, expected, -1, &status);
227 if (utext_compare(&expectedText, -1, actual, -1) != 0) {
231 utextToPrintable(expectedBuf, sizeof(expectedBuf)/sizeof(expectedBuf[0]), &expectedText);
232 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));
234 utext_close(&expectedText);