Home
last modified time | relevance | path

Searched refs:testBuf (Results 1 – 4 of 4) sorted by relevance

/external/icu/icu4c/source/test/iotest/
Dstrtst.c516 char testBuf[256] = ""; in TestStringCompatibility() local
524 sprintf(testBuf, "%x", (int)num); in TestStringCompatibility()
527 if (strcmp(myString, testBuf) != 0) { in TestStringCompatibility()
528 log_err("%%x Got: \"%s\", Expected: \"%s\"\n", myString, testBuf); in TestStringCompatibility()
531 sprintf(testBuf, "%X", (int)num); in TestStringCompatibility()
534 if (strcmp(myString, testBuf) != 0) { in TestStringCompatibility()
535 log_err("%%X Got: \"%s\", Expected: \"%s\"\n", myString, testBuf); in TestStringCompatibility()
538 sprintf(testBuf, "%o", (int)num); in TestStringCompatibility()
541 if (strcmp(myString, testBuf) != 0) { in TestStringCompatibility()
542 log_err("%%o Got: \"%s\", Expected: \"%s\"\n", myString, testBuf); in TestStringCompatibility()
[all …]
Dfiletst.c50 char testBuf[256] = ""; in TestFileFromICU() local
58 memset(testBuf, '*', UPRV_LENGTHOF(testBuf)); in TestFileFromICU()
869 UChar testBuf[UPRV_LENGTHOF(strABAccentA)*2]; /* *2 to see if too much was */ in TestCodepage() local
897 retVal = u_file_read(testBuf, u_strlen(strABAccentA), myFile); in TestCodepage()
898 if (u_strncmp(strABAccentA, testBuf, u_strlen(strABAccentA)) != 0) { in TestCodepage()
917 retVal = u_file_read(testBuf, u_strlen(strBadConversion), myFile); in TestCodepage()
918 if (u_strncmp(strBadConversion, testBuf, u_strlen(strBadConversion)) != 0) { in TestCodepage()
926 u_file_read(testBuf, 1, myFile); in TestCodepage()
930 retVal = u_file_read(testBuf + 1, u_strlen(strABAccentA) - 1, myFile); in TestCodepage()
931 if (u_strncmp(strABAccentA, testBuf, u_strlen(strABAccentA)) != 0) { in TestCodepage()
[all …]
/external/zstd/contrib/single_file_libs/examples/
Droundtrip.c62 void* testBuf = malloc(sizeof rawData); in main() local
64 if (compBuf && testBuf) { in main()
68 size_t decSize = ZSTD_decompress(testBuf, sizeof rawData, compBuf, compSize); in main()
71 compare = memcmp(rawData, testBuf, decSize); in main()
80 free(testBuf); in main()
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/utils/
DFixedLengthBlockOutputStreamTest.java84 testBuf(4, hwa); in testWriteBuf()
85 testBuf(512, hwa); in testWriteBuf()
86 testBuf(10240, hwa); in testWriteBuf()
87 testBuf(11, hwa + hwa + hwa); in testWriteBuf()
227 private void testBuf(int blockSize, String text) throws IOException { in testBuf() method in FixedLengthBlockOutputStreamTest