diff --git a/icu4c/source/test/cintltst/creststn.c b/icu4c/source/test/cintltst/creststn.c index 65b243228f9..bd1fac9f8bf 100644 --- a/icu4c/source/test/cintltst/creststn.c +++ b/icu4c/source/test/cintltst/creststn.c @@ -2605,7 +2605,7 @@ static void TestXPath(void) { } static void TestCLDRStyleAliases(void) { UErrorCode status = U_ZERO_ERROR; - UResourceBundle *rb = NULL, *alias = NULL, *a3=NULL, *a4=NULL, *a5=NULL, *a6=NULL, *a=NULL; + UResourceBundle *rb = NULL, *alias = NULL, *a=NULL; int32_t i, len; char resource[256]; const UChar *result = NULL; diff --git a/icu4c/source/test/intltest/numfmtst.cpp b/icu4c/source/test/intltest/numfmtst.cpp index 9e3298872e7..a9b5c97d5b7 100644 --- a/icu4c/source/test/intltest/numfmtst.cpp +++ b/icu4c/source/test/intltest/numfmtst.cpp @@ -1503,7 +1503,7 @@ void NumberFormatTest::TestCurrencyAmount(void){ } CurrencyAmount *ca3 = (CurrencyAmount *)ca.clone(); - if (!(ca2 == ca)){ + if (!(*ca3 == ca)){ errln("CurrencyAmount cloned object should be same"); } } diff --git a/icu4c/source/test/iotest/filetst.c b/icu4c/source/test/iotest/filetst.c index 8585c8a93fd..a271dcb8512 100644 --- a/icu4c/source/test/iotest/filetst.c +++ b/icu4c/source/test/iotest/filetst.c @@ -1083,13 +1083,9 @@ static void TestFprintfFormat(void) { TestFPrintFormat("%8c", (char)'e', "%8c", (char)'e'); TestFPrintFormat("%-8c", (char)'e', "%-8c", (char)'e'); - TestFPrintFormat("%5.3c", (char)'e', "%5.3c", (char)'e'); - TestFPrintFormat("%-5.3c", (char)'e', "%-5.3c", (char)'e'); TestFPrintFormat("%8C", (UChar)0x65, "%8c", (char)'e'); TestFPrintFormat("%-8C", (UChar)0x65, "%-8c", (char)'e'); - TestFPrintFormat("%5.3C", (UChar)0x65, "%5.3c", (char)'e'); - TestFPrintFormat("%-5.3C", (UChar)0x65, "%-5.3c", (char)'e'); TestFPrintFormat("%f", 1.23456789, "%f", 1.23456789); TestFPrintFormat("%f", 12345.6789, "%f", 12345.6789); @@ -1403,7 +1399,6 @@ static void TestUnicodeFormat(void) UChar myUString[256]; UFILE *myFile; static const UChar TEST_STR[] = { 0x03BC, 0x0025, 0x0024, 0}; - static const UChar EXPECTED_STR[] = { 0x03BC, 0x03BC, 0x0025, 0x0024, 0}; static const UChar PERCENT_S[] = { 0x03BC, 0x0025, 0x0053, 0}; u_memset(myUString, 0x2a, sizeof(myUString)/sizeof(*myUString)); diff --git a/icu4c/source/test/iotest/strtst.c b/icu4c/source/test/iotest/strtst.c index 9bc6423906a..906f519d3c2 100644 --- a/icu4c/source/test/iotest/strtst.c +++ b/icu4c/source/test/iotest/strtst.c @@ -391,13 +391,9 @@ static void TestSprintfFormat(void) { TestSPrintFormat("%8c", (char)'e', "%8c", (char)'e'); TestSPrintFormat("%-8c", (char)'e', "%-8c", (char)'e'); - TestSPrintFormat("%5.3c", (char)'e', "%5.3c", (char)'e'); - TestSPrintFormat("%-5.3c", (char)'e', "%-5.3c", (char)'e'); TestSPrintFormat("%8C", (UChar)0x65, "%8c", (char)'e'); TestSPrintFormat("%-8C", (UChar)0x65, "%-8c", (char)'e'); - TestSPrintFormat("%5.3C", (UChar)0x65, "%5.3c", (char)'e'); - TestSPrintFormat("%-5.3C", (UChar)0x65, "%-5.3c", (char)'e'); TestSPrintFormat("%f", 1.23456789, "%f", 1.23456789); TestSPrintFormat("%f", 12345.6789, "%f", 12345.6789);