]> granicus.if.org Git - icu/commitdiff
ICU-9975 Update test for new expected result, remove timebomb
authorPeter Edberg <pedberg@unicode.org>
Thu, 28 Feb 2013 22:56:34 +0000 (22:56 +0000)
committerPeter Edberg <pedberg@unicode.org>
Thu, 28 Feb 2013 22:56:34 +0000 (22:56 +0000)
X-SVN-Rev: 33350

icu4c/source/test/intltest/dtfmttst.cpp

index 34cd61333d0dbcaf582c8a1577675449e42c34e4..de96cb99af2140a27160e0b4b8cde0b62f09465a 100644 (file)
@@ -3638,7 +3638,7 @@ void DateFormatTest::TestNumberAsStringParsing()
 {
     const NumAsStringItem items[] = {
         // loc lenient fail?  datePattern                                         dateString
-        { "",   FALSE, FALSE, UnicodeString("y MMMM d HH:mm:ss"),                 UnicodeString("2009 7 14 08:43:57") }, // currently timebombed out
+        { "",   FALSE, TRUE,  UnicodeString("y MMMM d HH:mm:ss"),                 UnicodeString("2009 7 14 08:43:57") },
         { "",   TRUE,  FALSE, UnicodeString("y MMMM d HH:mm:ss"),                 UnicodeString("2009 7 14 08:43:57") },
         { "en", FALSE, FALSE, UnicodeString("MMM d, y"),                          UnicodeString("Jul 14, 2009") },
         { "en", TRUE,  FALSE, UnicodeString("MMM d, y"),                          UnicodeString("Jul 14, 2009") },
@@ -3664,9 +3664,6 @@ void DateFormatTest::TestNumberAsStringParsing()
     };
     const NumAsStringItem * itemPtr;
     for (itemPtr = items; itemPtr->localeStr != NULL; itemPtr++ ) {
-        if (!isICUVersionAtLeast(52, 0, 1) && itemPtr->localeStr[0] == 0 && itemPtr->lenient == FALSE) {
-            continue; // Time-bomb added per #9925, fix per #9975
-        }
         Locale locale = Locale::createFromName(itemPtr->localeStr);
         UErrorCode status = U_ZERO_ERROR;
         SimpleDateFormat *formatter = new SimpleDateFormat(itemPtr->datePattern, locale, status);