Home
last modified time | relevance | path

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

/external/icu/icu4c/source/test/cintltst/
Dncnvtst.c44 …tic UBool convertFromU( const UChar *source, int sourceLen, const uint8_t *expect, int expectLen,
46 static UBool convertToU( const uint8_t *source, int sourceLen, const UChar *expect, int expectLen,
49 …UBool testConvertFromU( const UChar *source, int sourceLen, const uint8_t *expect, int expectLen,
1005 …tic UBool convertFromU( const UChar *source, int sourceLen, const uint8_t *expect, int expectLen, in convertFromU() argument
1055 if(expectLen != targ-buffer) in convertFromU()
1057 … log_err("Expected %d chars out, got %d FROM Unicode to %s\n", expectLen, targ-buffer, codepage); in convertFromU()
1058 …log_verbose("Expected %d chars out, got %d FROM Unicode to %s\n", expectLen, targ-buffer, codepage… in convertFromU()
1060 printSeqErr((const unsigned char*)expect, expectLen); in convertFromU()
1064 if(memcmp(buffer, expect, expectLen)){ in convertFromU()
1067 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.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.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 …]
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()
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.c2607 int32_t expectLen; in TestCurrencyUsage() local
2614 expectLen = u_unescape(DATA[j][1], expect, UPRV_LENGTHOF(expect)); in TestCurrencyUsage()
2623 if(resultLen != expectLen || u_strcmp(result, expect) != 0) { in TestCurrencyUsage()
2625 aescstrdup(expect, expectLen), aescstrdup(result, resultLen)); in TestCurrencyUsage()