Lines Matching full:testbuf
35 char testBuf[256] = "";
43 memset(testBuf, '*', sizeof(testBuf)/sizeof(*testBuf));
832 UChar testBuf[sizeof(strABAccentA)/sizeof(strABAccentA[0])*2]; /* *2 to see if too much was */
860 retVal = u_file_read(testBuf, u_strlen(strABAccentA), myFile);
861 if (u_strncmp(strABAccentA, testBuf, u_strlen(strABAccentA)) != 0) {
880 retVal = u_file_read(testBuf, u_strlen(strBadConversion), myFile);
881 if (u_strncmp(strBadConversion, testBuf, u_strlen(strBadConversion)) != 0) {
889 u_file_read(testBuf, 1, myFile);
893 retVal = u_file_read(testBuf + 1, u_strlen(strABAccentA) - 1, myFile);
894 if (u_strncmp(strABAccentA, testBuf, u_strlen(strABAccentA)) != 0) {
901 retVal = u_file_read(testBuf, u_strlen(strABAccentA), myFile);
902 if (u_strncmp(strABAccentA, testBuf, u_strlen(strABAccentA)) != 0) {
983 char testBuf[512] = "";
1025 sprintf(testBuf, "%x", (int)num);
1026 if (strcmp(readBuf, testBuf) != 0) {
1027 log_err("%%x Got: \"%s\", Expected: \"%s\"\n", readBuf, testBuf);
1031 sprintf(testBuf, "%X", (int)num);
1032 if (strcmp(readBuf, testBuf) != 0) {
1033 log_err("%%X Got: \"%s\", Expected: \"%s\"\n", readBuf, testBuf);
1037 sprintf(testBuf, "%o", (int)num);
1038 if (strcmp(readBuf, testBuf) != 0) {
1039 log_err("%%o Got: \"%s\", Expected: \"%s\"\n", readBuf, testBuf);
1044 sprintf(testBuf, "%d", (int)num);
1045 if (strcmp(readBuf, testBuf) != 0) {
1046 log_err("%%d Got: \"%s\", Expected: \"%s\"\n", readBuf, testBuf);
1050 sprintf(testBuf, "%i", (int)num);
1051 if (strcmp(readBuf, testBuf) != 0) {
1052 log_err("%%i Got: \"%s\", Expected: \"%s\"\n", readBuf, testBuf);
1056 sprintf(testBuf, "%f", (double)num);
1057 if (strcmp(readBuf, testBuf) != 0) {
1058 log_err("%%f Got: \"%s\", Expected: \"%s\"\n", readBuf, testBuf);
1062 sprintf(testBuf, "%e", (double)num);
1063 if (strcmp(readBuf, testBuf) != 0) {
1064 log_err("%%e Got: \"%s\", Expected: \"%s\"\n", readBuf, testBuf);
1068 sprintf(testBuf, "%E", (double)num);
1069 if (strcmp(readBuf, testBuf) != 0) {
1070 log_err("%%E Got: \"%s\", Expected: \"%s\"\n", readBuf, testBuf);
1074 sprintf(testBuf, "%g", (double)num);
1075 if (strcmp(readBuf, testBuf) != 0) {
1076 log_err("%%g Got: \"%s\", Expected: \"%s\"\n", readBuf, testBuf);
1080 sprintf(testBuf, "%G", (double)num);
1081 if (strcmp(readBuf, testBuf) != 0) {
1082 log_err("%%G Got: \"%s\", Expected: \"%s\"\n", readBuf, testBuf);