• Home
  • Raw
  • Download

Lines Matching refs:testBuf

40     char testBuf[256] = "";  in TestFileFromICU()  local
48 memset(testBuf, '*', UPRV_LENGTHOF(testBuf)); in TestFileFromICU()
841 UChar testBuf[UPRV_LENGTHOF(strABAccentA)*2]; /* *2 to see if too much was */ in TestCodepage() local
869 retVal = u_file_read(testBuf, u_strlen(strABAccentA), myFile); in TestCodepage()
870 if (u_strncmp(strABAccentA, testBuf, u_strlen(strABAccentA)) != 0) { in TestCodepage()
889 retVal = u_file_read(testBuf, u_strlen(strBadConversion), myFile); in TestCodepage()
890 if (u_strncmp(strBadConversion, testBuf, u_strlen(strBadConversion)) != 0) { in TestCodepage()
898 u_file_read(testBuf, 1, myFile); in TestCodepage()
902 retVal = u_file_read(testBuf + 1, u_strlen(strABAccentA) - 1, myFile); in TestCodepage()
903 if (u_strncmp(strABAccentA, testBuf, u_strlen(strABAccentA)) != 0) { in TestCodepage()
910 retVal = u_file_read(testBuf, u_strlen(strABAccentA), myFile); in TestCodepage()
911 if (u_strncmp(strABAccentA, testBuf, u_strlen(strABAccentA)) != 0) { in TestCodepage()
992 char testBuf[512] = ""; in TestFilePrintCompatibility() local
1036 sprintf(testBuf, "%x", (int)num); in TestFilePrintCompatibility()
1037 if (strcmp(readBuf, testBuf) != 0) { in TestFilePrintCompatibility()
1038 log_err("%%x Got: \"%s\", Expected: \"%s\"\n", readBuf, testBuf); in TestFilePrintCompatibility()
1042 sprintf(testBuf, "%X", (int)num); in TestFilePrintCompatibility()
1043 if (strcmp(readBuf, testBuf) != 0) { in TestFilePrintCompatibility()
1044 log_err("%%X Got: \"%s\", Expected: \"%s\"\n", readBuf, testBuf); in TestFilePrintCompatibility()
1048 sprintf(testBuf, "%o", (int)num); in TestFilePrintCompatibility()
1049 if (strcmp(readBuf, testBuf) != 0) { in TestFilePrintCompatibility()
1050 log_err("%%o Got: \"%s\", Expected: \"%s\"\n", readBuf, testBuf); in TestFilePrintCompatibility()
1055 sprintf(testBuf, "%d", (int)num); in TestFilePrintCompatibility()
1056 if (strcmp(readBuf, testBuf) != 0) { in TestFilePrintCompatibility()
1057 log_err("%%d Got: \"%s\", Expected: \"%s\"\n", readBuf, testBuf); in TestFilePrintCompatibility()
1061 sprintf(testBuf, "%i", (int)num); in TestFilePrintCompatibility()
1062 if (strcmp(readBuf, testBuf) != 0) { in TestFilePrintCompatibility()
1063 log_err("%%i Got: \"%s\", Expected: \"%s\"\n", readBuf, testBuf); in TestFilePrintCompatibility()
1067 sprintf(testBuf, "%f", (double)num); in TestFilePrintCompatibility()
1068 if (strcmp(readBuf, testBuf) != 0) { in TestFilePrintCompatibility()
1069 log_err("%%f Got: \"%s\", Expected: \"%s\"\n", readBuf, testBuf); in TestFilePrintCompatibility()
1085 sprintf(testBuf, "%g", (double)num); in TestFilePrintCompatibility()
1086 if (strcmp(readBuf, testBuf) != 0) { in TestFilePrintCompatibility()
1087 log_err("%%g Got: \"%s\", Expected: \"%s\"\n", readBuf, testBuf); in TestFilePrintCompatibility()
1091 sprintf(testBuf, "%G", (double)num); in TestFilePrintCompatibility()
1092 if (strcmp(readBuf, testBuf) != 0) { in TestFilePrintCompatibility()
1093 log_err("%%G Got: \"%s\", Expected: \"%s\"\n", readBuf, testBuf); in TestFilePrintCompatibility()