Home
last modified time | relevance | path

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

/external/icu4c/test/iotest/
Dstrtst.c501 char testBuf[256] = ""; in TestStringCompatibility() local
509 sprintf(testBuf, "%x", (int)num); in TestStringCompatibility()
512 if (strcmp(myString, testBuf) != 0) { in TestStringCompatibility()
513 log_err("%%x Got: \"%s\", Expected: \"%s\"\n", myString, testBuf); in TestStringCompatibility()
516 sprintf(testBuf, "%X", (int)num); in TestStringCompatibility()
519 if (strcmp(myString, testBuf) != 0) { in TestStringCompatibility()
520 log_err("%%X Got: \"%s\", Expected: \"%s\"\n", myString, testBuf); in TestStringCompatibility()
523 sprintf(testBuf, "%o", (int)num); in TestStringCompatibility()
526 if (strcmp(myString, testBuf) != 0) { in TestStringCompatibility()
527 log_err("%%o Got: \"%s\", Expected: \"%s\"\n", myString, testBuf); in TestStringCompatibility()
[all …]
Dfiletst.c34 char testBuf[256] = ""; in TestFileFromICU() local
42 memset(testBuf, '*', sizeof(testBuf)/sizeof(*testBuf)); in TestFileFromICU()
825 UChar testBuf[sizeof(strABAccentA)/sizeof(strABAccentA[0])*2]; /* *2 to see if too much was */ in TestCodepage() local
853 retVal = u_file_read(testBuf, u_strlen(strABAccentA), myFile); in TestCodepage()
854 if (u_strncmp(strABAccentA, testBuf, u_strlen(strABAccentA)) != 0) { in TestCodepage()
873 retVal = u_file_read(testBuf, u_strlen(strBadConversion), myFile); in TestCodepage()
874 if (u_strncmp(strBadConversion, testBuf, u_strlen(strBadConversion)) != 0) { in TestCodepage()
882 u_file_read(testBuf, 1, myFile); in TestCodepage()
886 retVal = u_file_read(testBuf + 1, u_strlen(strABAccentA) - 1, myFile); in TestCodepage()
887 if (u_strncmp(strABAccentA, testBuf, u_strlen(strABAccentA)) != 0) { in TestCodepage()
[all …]