]> granicus.if.org Git - icu/commitdiff
ICU-10730 Just add tests verifying correct behavior for U in skeleton (J)
authorPeter Edberg <pedberg@unicode.org>
Tue, 4 Mar 2014 08:46:56 +0000 (08:46 +0000)
committerPeter Edberg <pedberg@unicode.org>
Tue, 4 Mar 2014 08:46:56 +0000 (08:46 +0000)
X-SVN-Rev: 35316

icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/DateTimeGeneratorTest.java

index 4d510ce940934586a431acc4e0c962474393cbb4..4fbc0fa3c69f4771301d008c9d5384eddc97e5f5 100644 (file)
@@ -1214,15 +1214,28 @@ public class DateTimeGeneratorTest extends TestFmwk {
               new TestOptionsItem( "be", "HHmm", "HH.mm",   DateTimePatternGenerator.MATCH_HOUR_FIELD_LENGTH ),
               new TestOptionsItem( "be", "hhmm", "hh.mm a", DateTimePatternGenerator.MATCH_HOUR_FIELD_LENGTH ),
               //
-              new TestOptionsItem( "en",                   "yyyy", "yyyy", DateTimePatternGenerator.MATCH_NO_OPTIONS ),
-              new TestOptionsItem( "en",                   "YYYY", "YYYY", DateTimePatternGenerator.MATCH_NO_OPTIONS ),
-              new TestOptionsItem( "en",                   "U",    "y",    DateTimePatternGenerator.MATCH_NO_OPTIONS ),
-              new TestOptionsItem( "en@calendar=japanese", "yyyy", "y G",  DateTimePatternGenerator.MATCH_NO_OPTIONS ),
-              new TestOptionsItem( "en@calendar=japanese", "YYYY", "Y G",  DateTimePatternGenerator.MATCH_NO_OPTIONS ),
-              new TestOptionsItem( "en@calendar=japanese", "U",    "y G",  DateTimePatternGenerator.MATCH_NO_OPTIONS ),
-              new TestOptionsItem( "en@calendar=chinese",  "yyyy", "U",    DateTimePatternGenerator.MATCH_NO_OPTIONS ),
-              new TestOptionsItem( "en@calendar=chinese",  "YYYY", "Y",    DateTimePatternGenerator.MATCH_NO_OPTIONS ),
-              new TestOptionsItem( "en@calendar=chinese",  "U",    "U",    DateTimePatternGenerator.MATCH_NO_OPTIONS ),
+              new TestOptionsItem( "en",                   "yyyy",  "yyyy",  DateTimePatternGenerator.MATCH_NO_OPTIONS ),
+              new TestOptionsItem( "en",                   "YYYY",  "YYYY",  DateTimePatternGenerator.MATCH_NO_OPTIONS ),
+              new TestOptionsItem( "en",                   "U",     "y",     DateTimePatternGenerator.MATCH_NO_OPTIONS ),
+              new TestOptionsItem( "en@calendar=japanese", "yyyy",  "y G",   DateTimePatternGenerator.MATCH_NO_OPTIONS ),
+              new TestOptionsItem( "en@calendar=japanese", "YYYY",  "Y G",   DateTimePatternGenerator.MATCH_NO_OPTIONS ),
+              new TestOptionsItem( "en@calendar=japanese", "U",     "y G",   DateTimePatternGenerator.MATCH_NO_OPTIONS ),
+              new TestOptionsItem( "en@calendar=chinese",  "yyyy",  "U",     DateTimePatternGenerator.MATCH_NO_OPTIONS ),
+              new TestOptionsItem( "en@calendar=chinese",  "YYYY",  "Y",     DateTimePatternGenerator.MATCH_NO_OPTIONS ),
+              new TestOptionsItem( "en@calendar=chinese",  "U",     "U",     DateTimePatternGenerator.MATCH_NO_OPTIONS ),
+              new TestOptionsItem( "en@calendar=chinese",  "Gy",    "U",     DateTimePatternGenerator.MATCH_NO_OPTIONS ),
+              new TestOptionsItem( "en@calendar=chinese",  "GU",    "U",     DateTimePatternGenerator.MATCH_NO_OPTIONS ),
+              new TestOptionsItem( "en@calendar=chinese",  "ULLL",  "MMM U", DateTimePatternGenerator.MATCH_NO_OPTIONS ),
+              new TestOptionsItem( "en@calendar=chinese",  "yMMM",  "MMM U", DateTimePatternGenerator.MATCH_NO_OPTIONS ),
+              new TestOptionsItem( "en@calendar=chinese",  "GUMMM", "MMM U", DateTimePatternGenerator.MATCH_NO_OPTIONS ),
+              new TestOptionsItem( "zh@calendar=chinese",  "yyyy",  "U\u5E74",    DateTimePatternGenerator.MATCH_NO_OPTIONS ),
+              new TestOptionsItem( "zh@calendar=chinese",  "YYYY",  "Y\u5E74",    DateTimePatternGenerator.MATCH_NO_OPTIONS ),
+              new TestOptionsItem( "zh@calendar=chinese",  "U",     "U\u5E74",    DateTimePatternGenerator.MATCH_NO_OPTIONS ),
+              new TestOptionsItem( "zh@calendar=chinese",  "Gy",    "U\u5E74",    DateTimePatternGenerator.MATCH_NO_OPTIONS ),
+              new TestOptionsItem( "zh@calendar=chinese",  "GU",    "U\u5E74",    DateTimePatternGenerator.MATCH_NO_OPTIONS ),
+              new TestOptionsItem( "zh@calendar=chinese",  "ULLL",  "U\u5E74MMM", DateTimePatternGenerator.MATCH_NO_OPTIONS ),
+              new TestOptionsItem( "zh@calendar=chinese",  "yMMM",  "U\u5E74MMM", DateTimePatternGenerator.MATCH_NO_OPTIONS ),
+              new TestOptionsItem( "zh@calendar=chinese",  "GUMMM", "U\u5E74MMM", DateTimePatternGenerator.MATCH_NO_OPTIONS ),
           };
 
           for (int i = 0; i < testOptionsData.length; ++i) {