Home | History | Annotate | Download | only in iotest

Lines Matching full:testbuf

37     char testBuf[256] = "";
45 memset(testBuf, '*', sizeof(testBuf)/sizeof(*testBuf));
838 UChar testBuf[sizeof(strABAccentA)/sizeof(strABAccentA[0])*2]; /* *2 to see if too much was */
866 retVal = u_file_read(testBuf, u_strlen(strABAccentA), myFile);
867 if (u_strncmp(strABAccentA, testBuf, u_strlen(strABAccentA)) != 0) {
886 retVal = u_file_read(testBuf, u_strlen(strBadConversion), myFile);
887 if (u_strncmp(strBadConversion, testBuf, u_strlen(strBadConversion)) != 0) {
895 u_file_read(testBuf, 1, myFile);
899 retVal = u_file_read(testBuf + 1, u_strlen(strABAccentA) - 1, myFile);
900 if (u_strncmp(strABAccentA, testBuf, u_strlen(strABAccentA)) != 0) {
907 retVal = u_file_read(testBuf, u_strlen(strABAccentA), myFile);
908 if (u_strncmp(strABAccentA, testBuf, u_strlen(strABAccentA)) != 0) {
989 char testBuf[512] = "";
1033 sprintf(testBuf, "%x", (int)num);
1034 if (strcmp(readBuf, testBuf) != 0) {
1035 log_err("%%x Got: \"%s\", Expected: \"%s\"\n", readBuf, testBuf);
1039 sprintf(testBuf, "%X", (int)num);
1040 if (strcmp(readBuf, testBuf) != 0) {
1041 log_err("%%X Got: \"%s\", Expected: \"%s\"\n", readBuf, testBuf);
1045 sprintf(testBuf, "%o", (int)num);
1046 if (strcmp(readBuf, testBuf) != 0) {
1047 log_err("%%o Got: \"%s\", Expected: \"%s\"\n", readBuf, testBuf);
1052 sprintf(testBuf, "%d", (int)num);
1053 if (strcmp(readBuf, testBuf) != 0) {
1054 log_err("%%d Got: \"%s\", Expected: \"%s\"\n", readBuf, testBuf);
1058 sprintf(testBuf, "%i", (int)num);
1059 if (strcmp(readBuf, testBuf) != 0) {
1060 log_err("%%i Got: \"%s\", Expected: \"%s\"\n", readBuf, testBuf);
1064 sprintf(testBuf, "%f", (double)num);
1065 if (strcmp(readBuf, testBuf) != 0) {
1066 log_err("%%f Got: \"%s\", Expected: \"%s\"\n", readBuf, testBuf);
1070 sprintf(testBuf, "%e", (double)num);
1071 if (strcmp(readBuf, testBuf) != 0) {
1072 log_err("%%e Got: \"%s\", Expected: \"%s\"\n", readBuf, testBuf);
1076 sprintf(testBuf, "%E", (double)num);
1077 if (strcmp(readBuf, testBuf) != 0) {
1078 log_err("%%E Got: \"%s\", Expected: \"%s\"\n", readBuf, testBuf);
1082 sprintf(testBuf, "%g", (double)num);
1083 if (strcmp(readBuf, testBuf) != 0) {
1084 log_err("%%g Got: \"%s\", Expected: \"%s\"\n", readBuf, testBuf);
1088 sprintf(testBuf, "%G", (double)num);
1089 if (strcmp(readBuf, testBuf) != 0) {
1090 log_err("%%G Got: \"%s\", Expected: \"%s\"\n", readBuf, testBuf);