From da8992d78b5eafa2e86d0e500af356f8b0216bde Mon Sep 17 00:00:00 2001 From: George Rhoten Date: Sun, 4 Apr 2004 06:14:35 +0000 Subject: [PATCH] ICU-3499 Comment out some test differences (e.g. e+00 vs. e+000) X-SVN-Rev: 14850 --- icu4c/source/test/iotest/iotest.cpp | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/icu4c/source/test/iotest/iotest.cpp b/icu4c/source/test/iotest/iotest.cpp index b7e552af8ce..d61d80ac4cb 100644 --- a/icu4c/source/test/iotest/iotest.cpp +++ b/icu4c/source/test/iotest/iotest.cpp @@ -731,8 +731,8 @@ static void TestFilePrintCompatibility() { u_fprintf(myFile, "%d ", num); u_fprintf(myFile, "%i ", num); u_fprintf(myFile, "%f ", (double)num); - u_fprintf(myFile, "%e ", (double)num); - u_fprintf(myFile, "%E ", (double)num); +/* u_fprintf(myFile, "%e ", (double)num); + u_fprintf(myFile, "%E ", (double)num);*/ u_fprintf(myFile, "%g ", (double)num); u_fprintf(myFile, "%G", (double)num); u_fputs(emptyStr, myFile); @@ -789,7 +789,7 @@ static void TestFilePrintCompatibility() { log_err("%%f Got: \"%s\", Expected: \"%s\"\n", readBuf, testBuf); } - fscanf(myCFile, "%s", readBuf); +/* fscanf(myCFile, "%s", readBuf); sprintf(testBuf, "%e", (double)num); if (strcmp(readBuf, testBuf) != 0) { log_err("%%e Got: \"%s\", Expected: \"%s\"\n", readBuf, testBuf); @@ -799,7 +799,7 @@ static void TestFilePrintCompatibility() { sprintf(testBuf, "%E", (double)num); if (strcmp(readBuf, testBuf) != 0) { log_err("%%E Got: \"%s\", Expected: \"%s\"\n", readBuf, testBuf); - } + }*/ fscanf(myCFile, "%s", readBuf); sprintf(testBuf, "%g", (double)num); @@ -961,10 +961,6 @@ static void TestFprintfFormat() { TestFPrintFormat2("%+1.*e", 4, 1.2345678); TestFPrintFormat2("%+2.*e", 6, 1.2345678); - /* TODO: Figure out what to do here. This is very platform dependent */ - /*TestFPrintFormat("%p", (void*)123456, "%p", (void*)123456); - TestFPrintFormat("%.2p", (void*)123456, "%.2p", (void*)123456);*/ - log_verbose("Get really crazy with the formatting.\n"); TestFPrintFormat("%-#12x", 123, "%-#12x", 123); @@ -1414,10 +1410,6 @@ static void TestSprintfFormat() { TestSPrintFormat2("%+1.*e", 4, 1.2345678); TestSPrintFormat2("%+2.*e", 6, 1.2345678); - /* TODO: Figure out what to do here. This is very platform dependent */ - /*TestSPrintFormat("%p", (void*)123456, "%p", (void*)123456); - TestSPrintFormat("%.2p", (void*)123456, "%.2p", (void*)123456);*/ - log_verbose("Get really crazy with the formatting.\n"); TestSPrintFormat("%-#12x", 123, "%-#12x", 123); @@ -1527,7 +1519,7 @@ static void TestStringCompatibility() { log_err("%%f Got: \"%s\", Expected: \"%s\"\n", myString, testBuf); } - sprintf(testBuf, "%e", (double)num); +/* sprintf(testBuf, "%e", (double)num); u_sprintf(uStringBuf, "en_US_POSIX", "%e", (double)num); u_austrncpy(myString, uStringBuf, sizeof(myString)/sizeof(myString[0])); if (strcmp(myString, testBuf) != 0) { @@ -1539,7 +1531,7 @@ static void TestStringCompatibility() { u_austrncpy(myString, uStringBuf, sizeof(myString)/sizeof(myString[0])); if (strcmp(myString, testBuf) != 0) { log_err("%%E Got: \"%s\", Expected: \"%s\"\n", myString, testBuf); - } + }*/ sprintf(testBuf, "%g", (double)num); u_sprintf(uStringBuf, "en_US_POSIX", "%g", (double)num);