Home
last modified time | relevance | path

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

/third_party/icu/icu4c/source/test/cintltst/
Dncnvtst.c47 …tic UBool convertFromU( const UChar *source, int sourceLen, const uint8_t *expect, int expectLen,
49 static UBool convertToU( const uint8_t *source, int sourceLen, const UChar *expect, int expectLen,
52 …UBool testConvertFromU( const UChar *source, int sourceLen, const uint8_t *expect, int expectLen,
996 …tic UBool convertFromU( const UChar *source, int sourceLen, const uint8_t *expect, int expectLen, in convertFromU() argument
1046 if(expectLen != targ-buffer) in convertFromU()
1048 … log_err("Expected %d chars out, got %d FROM Unicode to %s\n", expectLen, targ-buffer, codepage); in convertFromU()
1049 …log_verbose("Expected %d chars out, got %d FROM Unicode to %s\n", expectLen, targ-buffer, codepage… in convertFromU()
1051 printSeqErr((const unsigned char*)expect, expectLen); in convertFromU()
1055 if(memcmp(buffer, expect, expectLen)){ in convertFromU()
1058 printSeqErr((const unsigned char *)buffer, expectLen); in convertFromU()
[all …]
Dncnvfbts.c132 … testConvertFromUnicode(const UChar *source, int sourceLen, const uint8_t *expect, int expectLen, in testConvertFromUnicode() argument
244 printSeq((const unsigned char*)expect, expectLen); in testConvertFromUnicode()
255 if(expectLen != targ-junkout) in testConvertFromUnicode()
257 log_err("Expected %d chars out, got %d %s\n", expectLen, targ-junkout, gNuConvTestName); in testConvertFromUnicode()
258 log_verbose("Expected %d chars out, got %d %s\n", expectLen, targ-junkout, gNuConvTestName); in testConvertFromUnicode()
260 printSeqErr((const unsigned char*)expect, expectLen); in testConvertFromUnicode()
280 if(!memcmp(junkout, expect, expectLen)) in testConvertFromUnicode()
289 printSeqErr((const unsigned char*)junkout, expectLen); in testConvertFromUnicode()
290 printSeqErr((const unsigned char*)expect, expectLen); in testConvertFromUnicode()
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,
Dnccbtst.c2622 … testConvertFromUnicode(const UChar *source, int sourceLen, const uint8_t *expect, int expectLen, in testConvertFromUnicode() argument
2763 printSeq(expect, expectLen); in testConvertFromUnicode()
2774 if(expectLen != targ-junkout) in testConvertFromUnicode()
2776 log_err("Expected %d chars out, got %d %s\n", expectLen, targ-junkout, gNuConvTestName); in testConvertFromUnicode()
2777 log_verbose("Expected %d chars out, got %d %s\n", expectLen, targ-junkout, gNuConvTestName); in testConvertFromUnicode()
2779 printSeqErr(expect, expectLen); in testConvertFromUnicode()
2802 if(!memcmp(junkout, expect, expectLen)) in testConvertFromUnicode()
2813 printSeqErr((const uint8_t *)junkout, expectLen); in testConvertFromUnicode()
2815 printSeqErr(expect, expectLen); in testConvertFromUnicode()
3013 …tFromUnicodeWithContext(const UChar *source, int sourceLen, const uint8_t *expect, int expectLen, in testConvertFromUnicodeWithContext() argument
[all …]
Dncnvfbts.h25 … testConvertFromUnicode(const UChar *source, int sourceLen, const uint8_t *expect, int expectLen,
Dudatatst.c1128 unsigned int expectLen = 8; in TestICUDataName() local
1166 if(uprv_strlen(expectDataName) != expectLen) in TestICUDataName()
1169 expectLen, uprv_strlen(expectDataName)); in TestICUDataName()
1172 if(uprv_strlen(U_ICUDATA_NAME) != expectLen) in TestICUDataName()
1175 expectLen, uprv_strlen(U_ICUDATA_NAME)); in TestICUDataName()
Dutransts.c694 int32_t expectLen = u_unescape(itemsPtr->targetText, expect, kUBufMax); in TestDataVariantsCompounds() local
695 if (textLen != expectLen || u_strncmp(text, expect, textLen) != 0) { in TestDataVariantsCompounds()
698 u_austrncpy(bexpect, expect, expectLen); in TestDataVariantsCompounds()
Dnucnvtst.c363 …Result testConvertFromU( const UChar *source, int sourceLen, const uint8_t *expect, int expectLen, in testConvertFromU() argument
464 printSeq((const uint8_t *)expect, expectLen); in testConvertFromU()
473 if(expectLen != targ-junkout) { in testConvertFromU()
474 log_err("Expected %d chars out, got %d %s\n", expectLen, targ-junkout, gNuConvTestName); in testConvertFromU()
475 log_verbose("Expected %d chars out, got %d %s\n", expectLen, targ-junkout, gNuConvTestName); in testConvertFromU()
479 printSeqErr((const unsigned char*)expect, expectLen); in testConvertFromU()
503 if(!memcmp(junkout, expect, expectLen)) { in testConvertFromU()
510 printSeqErr((const unsigned char *)junkout, expectLen); in testConvertFromU()
512 printSeqErr((const unsigned char *)expect, expectLen); in testConvertFromU()
Dcnumtst.c2771 int32_t expectLen; in TestCurrencyUsage() local
2778 expectLen = u_unescape(DATA[j][1], expect, UPRV_LENGTHOF(expect)); in TestCurrencyUsage()
2787 if(resultLen != expectLen || u_strcmp(result, expect) != 0) { in TestCurrencyUsage()
2789 aescstrdup(expect, expectLen), aescstrdup(result, resultLen)); in TestCurrencyUsage()