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.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,
995 …tic UBool convertFromU( const UChar *source, int sourceLen, const uint8_t *expect, int expectLen, in convertFromU() argument
1045 if(expectLen != targ-buffer) in convertFromU()
1047 … log_err("Expected %d chars out, got %d FROM Unicode to %s\n", expectLen, targ-buffer, codepage); in convertFromU()
1048 …log_verbose("Expected %d chars out, got %d FROM Unicode to %s\n", expectLen, targ-buffer, codepage… in convertFromU()
1050 printSeqErr((const unsigned char*)expect, expectLen); in convertFromU()
1054 if(memcmp(buffer, expect, expectLen)){ in convertFromU()
1057 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.c2621 … testConvertFromUnicode(const UChar *source, int sourceLen, const uint8_t *expect, int expectLen, in testConvertFromUnicode() argument
2762 printSeq(expect, expectLen); in testConvertFromUnicode()
2773 if(expectLen != targ-junkout) in testConvertFromUnicode()
2775 log_err("Expected %d chars out, got %d %s\n", expectLen, targ-junkout, gNuConvTestName); in testConvertFromUnicode()
2776 log_verbose("Expected %d chars out, got %d %s\n", expectLen, targ-junkout, gNuConvTestName); in testConvertFromUnicode()
2778 printSeqErr(expect, expectLen); in testConvertFromUnicode()
2801 if(!memcmp(junkout, expect, expectLen)) in testConvertFromUnicode()
2812 printSeqErr((const uint8_t *)junkout, expectLen); in testConvertFromUnicode()
2814 printSeqErr(expect, expectLen); in testConvertFromUnicode()
3012 …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.c1127 unsigned int expectLen = 8; in TestICUDataName() local
1165 if(uprv_strlen(expectDataName) != expectLen) in TestICUDataName()
1168 expectLen, uprv_strlen(expectDataName)); in TestICUDataName()
1171 if(uprv_strlen(U_ICUDATA_NAME) != expectLen) in TestICUDataName()
1174 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.c362 …Result testConvertFromU( const UChar *source, int sourceLen, const uint8_t *expect, int expectLen, in testConvertFromU() argument
463 printSeq((const uint8_t *)expect, expectLen); in testConvertFromU()
472 if(expectLen != targ-junkout) { in testConvertFromU()
473 log_err("Expected %d chars out, got %d %s\n", expectLen, targ-junkout, gNuConvTestName); in testConvertFromU()
474 log_verbose("Expected %d chars out, got %d %s\n", expectLen, targ-junkout, gNuConvTestName); in testConvertFromU()
478 printSeqErr((const unsigned char*)expect, expectLen); in testConvertFromU()
502 if(!memcmp(junkout, expect, expectLen)) { in testConvertFromU()
509 printSeqErr((const unsigned char *)junkout, expectLen); in testConvertFromU()
511 printSeqErr((const unsigned char *)expect, expectLen); in testConvertFromU()
Dcnumtst.c2758 int32_t expectLen; in TestCurrencyUsage() local
2765 expectLen = u_unescape(DATA[j][1], expect, UPRV_LENGTHOF(expect)); in TestCurrencyUsage()
2774 if(resultLen != expectLen || u_strcmp(result, expect) != 0) { in TestCurrencyUsage()
2776 aescstrdup(expect, expectLen), aescstrdup(result, resultLen)); in TestCurrencyUsage()