Searched defs:expectLen (Results 1 - 6 of 6) sorted by relevance

/external/icu/icu4c/source/test/cintltst/
H A Dncnvfbts.c129 static UBool testConvertFromUnicode(const UChar *source, int sourceLen, const uint8_t *expect, int expectLen, argument
241 printSeq((const unsigned char*)expect, expectLen);
252 if(expectLen != targ-junkout)
254 log_err("Expected %d chars out, got %d %s\n", expectLen, targ-junkout, gNuConvTestName);
255 log_verbose("Expected %d chars out, got %d %s\n", expectLen, targ-junkout, gNuConvTestName);
257 printSeqErr((const unsigned char*)expect, expectLen);
277 if(!memcmp(junkout, expect, expectLen))
286 printSeqErr((const unsigned char*)junkout, expectLen);
287 printSeqErr((const unsigned char*)expect, expectLen);
H A Dudatatst.c1122 unsigned int expectLen = 8; local
1160 if(uprv_strlen(expectDataName) != expectLen)
1163 expectLen, uprv_strlen(expectDataName));
1166 if(uprv_strlen(U_ICUDATA_NAME) != expectLen)
1169 expectLen, uprv_strlen(U_ICUDATA_NAME));
H A Dncnvtst.c42 static UBool convertFromU( const UChar *source, int sourceLen, const uint8_t *expect, int expectLen,
44 static UBool convertToU( const uint8_t *source, int sourceLen, const UChar *expect, int expectLen,
47 static UBool testConvertFromU( const UChar *source, int sourceLen, const uint8_t *expect, int expectLen,
1009 static UBool convertFromU( const UChar *source, int sourceLen, const uint8_t *expect, int expectLen, argument
1059 if(expectLen != targ-buffer)
1061 log_err("Expected %d chars out, got %d FROM Unicode to %s\n", expectLen, targ-buffer, codepage);
1062 log_verbose("Expected %d chars out, got %d FROM Unicode to %s\n", expectLen, targ-buffer, codepage);
1064 printSeqErr((const unsigned char*)expect, expectLen);
1068 if(memcmp(buffer, expect, expectLen)){
1071 printSeqErr((const unsigned char *)buffer, expectLen);
1098 convertToU( const uint8_t *source, int sourceLen, const UChar *expect, int expectLen, const char *codepage, const int32_t *expectOffsets, UBool doFlush, UErrorCode expectedStatus) argument
1195 testConvertFromU( const UChar *source, int sourceLen, const uint8_t *expect, int expectLen, const char *codepage, UConverterFromUCallback callback , const int32_t *expectOffsets, UBool testReset) argument
[all...]
H A Dcnumtst.c2586 int32_t expectLen; local
2593 expectLen = u_unescape(DATA[j][1], expect, LENGTH(expect));
2602 if(resultLen != expectLen || u_strcmp(result, expect) != 0) {
2604 aescstrdup(expect, expectLen), aescstrdup(result, resultLen));
H A Dnccbtst.c2623 UBool testConvertFromUnicode(const UChar *source, int sourceLen, const uint8_t *expect, int expectLen, argument
2764 printSeq(expect, expectLen);
2775 if(expectLen != targ-junkout)
2777 log_err("Expected %d chars out, got %d %s\n", expectLen, targ-junkout, gNuConvTestName);
2778 log_verbose("Expected %d chars out, got %d %s\n", expectLen, targ-junkout, gNuConvTestName);
2780 printSeqErr(expect, expectLen);
2803 if(!memcmp(junkout, expect, expectLen))
2814 printSeqErr((const uint8_t *)junkout, expectLen);
2816 printSeqErr(expect, expectLen);
3014 UBool testConvertFromUnicodeWithContext(const UChar *source, int sourceLen, const uint8_t *expect, int expectLen, argument
[all...]
H A Dnucnvtst.c359 static ETestConvertResult testConvertFromU( const UChar *source, int sourceLen, const uint8_t *expect, int expectLen, argument
460 printSeq((const uint8_t *)expect, expectLen);
469 if(expectLen != targ-junkout) {
470 log_err("Expected %d chars out, got %d %s\n", expectLen, targ-junkout, gNuConvTestName);
471 log_verbose("Expected %d chars out, got %d %s\n", expectLen, targ-junkout, gNuConvTestName);
475 printSeqErr((const unsigned char*)expect, expectLen);
499 if(!memcmp(junkout, expect, expectLen)) {
506 printSeqErr((const unsigned char *)junkout, expectLen);
508 printSeqErr((const unsigned char *)expect, expectLen);

Completed in 187 milliseconds