]> granicus.if.org Git - icu/commitdiff
ICU-13359 More logKnownIssues for exhaustive test failures: #13366,#13368,#13374
authorPeter Edberg <pedberg@unicode.org>
Wed, 27 Sep 2017 05:59:03 +0000 (05:59 +0000)
committerPeter Edberg <pedberg@unicode.org>
Wed, 27 Sep 2017 05:59:03 +0000 (05:59 +0000)
X-SVN-Rev: 40473

icu4c/source/test/intltest/dtfmtrtts.cpp
icu4c/source/test/intltest/nmfmtrt.cpp
icu4c/source/test/intltest/tsdate.cpp
icu4c/source/test/intltest/tsnmfmt.cpp
icu4c/source/test/intltest/tzfmttst.cpp

index 21874aceb18b1338d57a2e589972876a8d4c6b51..6d4b76da92515af55012c394582125c6d210d041 100644 (file)
@@ -263,8 +263,10 @@ void DateFormatRoundTripTest::test(const Locale& loc)
     for(int32_t dstyle = DateFormat::FULL; dstyle <= DateFormat::SHORT; ++dstyle) {
         for(int32_t tstyle = DateFormat::FULL; tstyle <= DateFormat::SHORT; ++tstyle) {
             if(TEST_TABLE[itable++]) {
-                if (uprv_strcmp(loc.getLanguage(), "ccp")==0 && logKnownIssue("13366", "Skip ccp formats with zzzz,a until DateFormat parsing is fixed") &&
-                        (dstyle==DateFormat::SHORT && tstyle<= DateFormat::LONG || dstyle==DateFormat::MEDIUM && tstyle>= DateFormat::MEDIUM)) {
+                if (uprv_strcmp(loc.getLanguage(),"ccp")==0 && logKnownIssue("13366", "Skip handling ccp until DateFormat parsing is fixed")) {
+                    continue;
+                }
+                if (uprv_strcmp(loc.getLanguage(),"fa")==0 && tstyle==DateFormat::FULL && logKnownIssue("13374", "Skip handling fa until TimeZone roundtrip is fixed")) {
                     continue;
                 }
                 logln("Testing dstyle" + UnicodeString(styleName((DateFormat::EStyle)dstyle)) + ", tstyle" + UnicodeString(styleName((DateFormat::EStyle)tstyle)) );
index 33b4c0927a5e5d737ac5b6b494a0253181bb2984..54226a54710bdd6a41557f41195775d10af75df1 100644 (file)
@@ -16,6 +16,7 @@
 #include "unicode/decimfmt.h"
 #include "unicode/locid.h"
 #include "putilimp.h"
+#include "cstring.h"
 
 #include <float.h>
 #include <stdio.h>    // for sprintf
@@ -122,6 +123,9 @@ NumberFormatRoundTripTest::start()
         logln("Quick mode: only testing first 5 Locales");
     }
     for(int i = 0; i < locCount; ++i) {
+        if (uprv_strcmp(loc[i].getLanguage(),"ccp")==0 && logKnownIssue("13366", "Skip handling ccp until NumberFormat parsing is fixed")) {
+            continue;
+        }
         UnicodeString name;
         logln(loc[i].getDisplayName(name));
 
@@ -343,10 +347,13 @@ NumberFormatRoundTripTest::escape(UnicodeString& s)
     UnicodeString copy(s);
     s.remove();
     for(int i = 0; i < copy.length(); ++i) {
-        UChar c = copy[i];
-        if(c < 0x00FF) 
+        UChar32 c = copy.char32At(i);
+        if (c >= 0x10000) {
+            ++i;
+        }
+        if(c < 0x00FF) {
             s += c;
-        else {
+        else {
             s += "+U";
             char temp[16];
             sprintf(temp, "%4X", c);        // might not work
index 15d8a570b74fe285181ee74ea3cb9068e7ffaac9..68806b8c2e5b6277ecacf049a0413c236558d606 100644 (file)
@@ -13,6 +13,7 @@
 #include "unicode/smpdtfmt.h"
 #include "tsdate.h"
 #include "putilimp.h"
+#include "cstring.h"
 
 #include <float.h>
 #include <stdlib.h>
@@ -280,6 +281,9 @@ void IntlTestDateFormat::monsterTest(/*char *par*/)
         }
         for (int32_t i=0; i<count; ++i)
         {
+            if (uprv_strcmp(locales[i].getLanguage(),"ccp")==0 && logKnownIssue("13366", "Skip handling ccp until DateFormat parsing is fixed")) {
+                continue;
+            }
             UnicodeString name = UnicodeString(locales[i].getName(), "");
             logln((UnicodeString)"Testing " + name + "...");
             testLocale(/*par, */locales[i], name);
index 845206f266e07fa0510f9ecdccdfa05deb51b1c0..e326f556cba4d787427c4cb8fdfe7ef75d4e6b53 100644 (file)
@@ -442,6 +442,9 @@ void IntlTestNumberFormat::monsterTest(/* char* par */)
         }
         for (int32_t i=0; i<count; ++i)
         {
+            if (uprv_strcmp(locales[i].getLanguage(),"ccp")==0 && logKnownIssue("13366", "Skip handling ccp until NumberFormat parsing is fixed")) {
+                continue;
+            }
             UnicodeString name(locales[i].getName(), "");
             logln(SEP);
             testLocale(/* par, */locales[i], name);
index b74ee5ffc719add5e69e5d4ef02759e3ffa2433c..d2a841f54334a36631da6f0d220f32f237473732 100644 (file)
@@ -159,6 +159,12 @@ TimeZoneFormatTest::TestTimeZoneRoundTrip(void) {
 
     // Run the roundtrip test
     for (int32_t locidx = 0; locidx < nLocales; locidx++) {
+        if (uprv_strcmp(LOCALES[locidx].getLanguage(),"ccp")==0 && logKnownIssue("13366", "Skip handling ccp until TimeZone offset roundtrip is fixed")) {
+            continue;
+        }
+        if (uprv_strcmp(LOCALES[locidx].getLanguage(),"fa")==0 && logKnownIssue("13374", "Skip handling fa until TimeZone offset roundtrip is fixed")) {
+            continue;
+        }
         UnicodeString localGMTString;
         SimpleDateFormat gmtFmt(UnicodeString("ZZZZ"), LOCALES[locidx], status);
         if (U_FAILURE(status)) {