Home
last modified time | relevance | path

Searched refs:expectLen (Results 1 – 9 of 9) sorted by relevance

/external/icu/icu4c/source/test/cintltst/
Dncnvtst.c46 …tic UBool convertFromU( const UChar *source, int sourceLen, const uint8_t *expect, int expectLen,
48 static UBool convertToU( const uint8_t *source, int sourceLen, const UChar *expect, int expectLen,
51 …UBool testConvertFromU( const UChar *source, int sourceLen, const uint8_t *expect, int expectLen,
1007 …tic UBool convertFromU( const UChar *source, int sourceLen, const uint8_t *expect, int expectLen, in convertFromU() argument
1057 if(expectLen != targ-buffer) in convertFromU()
1059 … log_err("Expected %d chars out, got %d FROM Unicode to %s\n", expectLen, targ-buffer, codepage); in convertFromU()
1060 …log_verbose("Expected %d chars out, got %d FROM Unicode to %s\n", expectLen, targ-buffer, codepage… in convertFromU()
1062 printSeqErr((const unsigned char*)expect, expectLen); in convertFromU()
1066 if(memcmp(buffer, expect, expectLen)){ in convertFromU()
1069 printSeqErr((const unsigned char *)buffer, expectLen); in convertFromU()
[all …]
Dncnvfbts.c131 … testConvertFromUnicode(const UChar *source, int sourceLen, const uint8_t *expect, int expectLen, in testConvertFromUnicode() argument
243 printSeq((const unsigned char*)expect, expectLen); in testConvertFromUnicode()
254 if(expectLen != targ-junkout) in testConvertFromUnicode()
256 log_err("Expected %d chars out, got %d %s\n", expectLen, targ-junkout, gNuConvTestName); in testConvertFromUnicode()
257 log_verbose("Expected %d chars out, got %d %s\n", expectLen, targ-junkout, gNuConvTestName); in testConvertFromUnicode()
259 printSeqErr((const unsigned char*)expect, expectLen); in testConvertFromUnicode()
279 if(!memcmp(junkout, expect, expectLen)) in testConvertFromUnicode()
288 printSeqErr((const unsigned char*)junkout, expectLen); in testConvertFromUnicode()
289 printSeqErr((const unsigned char*)expect, expectLen); in testConvertFromUnicode()
Dnccbtst.c2625 … testConvertFromUnicode(const UChar *source, int sourceLen, const uint8_t *expect, int expectLen, in testConvertFromUnicode() argument
2766 printSeq(expect, expectLen); in testConvertFromUnicode()
2777 if(expectLen != targ-junkout) in testConvertFromUnicode()
2779 log_err("Expected %d chars out, got %d %s\n", expectLen, targ-junkout, gNuConvTestName); in testConvertFromUnicode()
2780 log_verbose("Expected %d chars out, got %d %s\n", expectLen, targ-junkout, gNuConvTestName); in testConvertFromUnicode()
2782 printSeqErr(expect, expectLen); in testConvertFromUnicode()
2805 if(!memcmp(junkout, expect, expectLen)) in testConvertFromUnicode()
2816 printSeqErr((const uint8_t *)junkout, expectLen); in testConvertFromUnicode()
2818 printSeqErr(expect, expectLen); in testConvertFromUnicode()
3016 …tFromUnicodeWithContext(const UChar *source, int sourceLen, const uint8_t *expect, int expectLen, in testConvertFromUnicodeWithContext() argument
[all …]
Dnccbtst.h50 … testConvertFromUnicode(const UChar *source, int sourceLen, const uint8_t *expect, int expectLen,
59 …tFromUnicodeWithContext(const UChar *source, int sourceLen, const uint8_t *expect, int expectLen,
Dncnvfbts.h25 … testConvertFromUnicode(const UChar *source, int sourceLen, const uint8_t *expect, int expectLen,
Dudatatst.c1124 unsigned int expectLen = 8; in TestICUDataName() local
1162 if(uprv_strlen(expectDataName) != expectLen) in TestICUDataName()
1165 expectLen, uprv_strlen(expectDataName)); in TestICUDataName()
1168 if(uprv_strlen(U_ICUDATA_NAME) != expectLen) in TestICUDataName()
1171 expectLen, uprv_strlen(U_ICUDATA_NAME)); in TestICUDataName()
Dutransts.c693 int32_t expectLen = u_unescape(itemsPtr->targetText, expect, kUBufMax); in TestDataVariantsCompounds() local
694 if (textLen != expectLen || u_strncmp(text, expect, textLen) != 0) { in TestDataVariantsCompounds()
697 u_austrncpy(bexpect, expect, expectLen); in TestDataVariantsCompounds()
Dnucnvtst.c361 …Result testConvertFromU( const UChar *source, int sourceLen, const uint8_t *expect, int expectLen, in testConvertFromU() argument
462 printSeq((const uint8_t *)expect, expectLen); in testConvertFromU()
471 if(expectLen != targ-junkout) { in testConvertFromU()
472 log_err("Expected %d chars out, got %d %s\n", expectLen, targ-junkout, gNuConvTestName); in testConvertFromU()
473 log_verbose("Expected %d chars out, got %d %s\n", expectLen, targ-junkout, gNuConvTestName); in testConvertFromU()
477 printSeqErr((const unsigned char*)expect, expectLen); in testConvertFromU()
501 if(!memcmp(junkout, expect, expectLen)) { in testConvertFromU()
508 printSeqErr((const unsigned char *)junkout, expectLen); in testConvertFromU()
510 printSeqErr((const unsigned char *)expect, expectLen); in testConvertFromU()
Dcnumtst.c2655 int32_t expectLen; in TestCurrencyUsage() local
2662 expectLen = u_unescape(DATA[j][1], expect, UPRV_LENGTHOF(expect)); in TestCurrencyUsage()
2671 if(resultLen != expectLen || u_strcmp(result, expect) != 0) { in TestCurrencyUsage()
2673 aescstrdup(expect, expectLen), aescstrdup(result, resultLen)); in TestCurrencyUsage()