mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-10 07:39:16 +00:00
ICU-8330 Add ICU4J test for handling of 'S' (fractional seconds) in skeleton
X-SVN-Rev: 29422
This commit is contained in:
parent
2c5bd3f343
commit
3497b51daf
1 changed files with 11 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
*******************************************************************************
|
||||
* Copyright (C) 2006-2010, Google, International Business Machines Corporation *
|
||||
* Copyright (C) 2006-2011, Google, International Business Machines Corporation *
|
||||
* and others. All Rights Reserved. *
|
||||
*******************************************************************************
|
||||
*/
|
||||
|
@ -267,7 +267,7 @@ public class DateTimeGeneratorTest extends TestFmwk {
|
|||
|
||||
// can be generated by using GENERATE_TEST_DATA. Must be reviewed before adding
|
||||
static final Object[] dateTestData = {
|
||||
new Date(916300739000L), // 1999-01-13T23:58:59,0-0800
|
||||
new Date(916300739123L), // 1999-01-13T23:58:59.123,0-0800
|
||||
new ULocale("en_US"),
|
||||
new String[] {"yM", "1/1999"},
|
||||
new String[] {"yMMM", "Jan 1999"},
|
||||
|
@ -283,6 +283,7 @@ public class DateTimeGeneratorTest extends TestFmwk {
|
|||
new String[] {"yyyyMMMM", "January 1999"}, // (new item for testing 6872<-5702)
|
||||
new String[] {"MMMEd", "Wed, Jan 13"},
|
||||
new String[] {"Ed", "13 Wed"},
|
||||
new String[] {"jmmssSSS", "11:58:59.123 PM"},
|
||||
new ULocale("en_US@calendar=japanese"), // (new locale for testing ticket 6872<-5702)
|
||||
new String[] {"yM", "1/11 Heisei"},
|
||||
new String[] {"yMMM", "Jan 11 Heisei"},
|
||||
|
@ -298,6 +299,7 @@ public class DateTimeGeneratorTest extends TestFmwk {
|
|||
new String[] {"yyyyMMMM", "January 11 Heisei"},
|
||||
new String[] {"MMMEd", "Wed, Jan 13"},
|
||||
new String[] {"Ed", "13 Wed"},
|
||||
new String[] {"jmmssSSS", "11:58:59.123 PM"},
|
||||
new ULocale("de_DE"),
|
||||
new String[] {"yM", "1.1999"},
|
||||
new String[] {"yMMM", "Jan 1999"},
|
||||
|
@ -313,6 +315,7 @@ public class DateTimeGeneratorTest extends TestFmwk {
|
|||
new String[] {"yyyyMMMM", "Januar 1999"}, // (new item for testing 6872<-5702)
|
||||
new String[] {"MMMEd", "Mi., 13. Jan"},
|
||||
new String[] {"Ed", "Mi., 13."},
|
||||
new String[] {"jmmssSSS", "23:58:59,123"},
|
||||
new ULocale("fi"),
|
||||
new String[] {"yM", "1.1999"}, // (fixed expected result per ticket 6872<-6626)
|
||||
new String[] {"yMMM", "tammi 1999"}, // (fixed expected result per ticket 6872<-7007)
|
||||
|
@ -328,6 +331,7 @@ public class DateTimeGeneratorTest extends TestFmwk {
|
|||
new String[] {"yyyyMMMM", "tammikuu 1999"}, // (new item for testing 6872<-5702,7007)
|
||||
new String[] {"MMMEd", "ke 13. tammikuuta"},
|
||||
new String[] {"Ed", "ke 13."},
|
||||
new String[] {"jmmssSSS", "23.58.59,123"},
|
||||
new ULocale("ja"), // (new locale for testing ticket 6872<-6626)
|
||||
new String[] {"yM", "1999/1"},
|
||||
new String[] {"yMMM", "1999\u5E741\u6708"},
|
||||
|
@ -343,6 +347,7 @@ public class DateTimeGeneratorTest extends TestFmwk {
|
|||
new String[] {"yyyyMMMM", "1999\u5E741\u6708"}, // (new item for testing 6872<-5702)
|
||||
new String[] {"MMMEd", "1\u670813\u65E5(\u6C34)"},
|
||||
new String[] {"Ed", "13\u65E5(\u6C34)"},
|
||||
new String[] {"jmmssSSS", "23:58:59.123"},
|
||||
new ULocale("ja@calendar=japanese"), // (new locale for testing ticket 6872<-5702)
|
||||
new String[] {"yM", "\u5E73\u621011/1"},
|
||||
new String[] {"yMMM", "\u5E73\u621011\u5E741\u6708"},
|
||||
|
@ -358,6 +363,7 @@ public class DateTimeGeneratorTest extends TestFmwk {
|
|||
new String[] {"yyyyMMMM", "\u5E73\u621011\u5E741\u6708"},
|
||||
new String[] {"MMMEd", "1\u670813\u65E5(\u6C34)"},
|
||||
new String[] {"Ed", "13\u65E5(\u6C34)"},
|
||||
new String[] {"jmmssSSS", "23:58:59.123"},
|
||||
new ULocale("zh_Hans_CN"),
|
||||
new String[] {"yM", "1999-1"},
|
||||
new String[] {"yMMM", "1999\u5E741\u6708"}, // (fixed expected result per ticket 6872<-6626)
|
||||
|
@ -373,6 +379,7 @@ public class DateTimeGeneratorTest extends TestFmwk {
|
|||
new String[] {"yyyyMMMM", "1999\u5E741\u6708"}, // (new item for testing 6872<-5702)
|
||||
new String[] {"MMMEd", "1\u670813\u65E5\u5468\u4E09"},
|
||||
new String[] {"Ed", "13\u65E5\u5468\u4E09"},
|
||||
new String[] {"jmmssSSS", "\u4E0B\u534811:58:59.123"},
|
||||
new ULocale("zh_TW@calendar=roc"), // (new locale for testing ticket 6872<-5702)
|
||||
new String[] {"yM", "\u6C11\u570B88/1"},
|
||||
new String[] {"yMMM", "\u6C11\u570B88\u5E741\u6708"},
|
||||
|
@ -388,6 +395,7 @@ public class DateTimeGeneratorTest extends TestFmwk {
|
|||
new String[] {"yyyyMMMM", "\u6C11\u570B88\u5E741\u6708"},
|
||||
new String[] {"MMMEd", "1\u670813\u65E5\u9031\u4E09"},
|
||||
new String[] {"Ed", "13\u65E5(\u9031\u4E09)"},
|
||||
new String[] {"jmmssSSS", "\u4E0B\u534811:58:59.123"},
|
||||
new ULocale("ru"),
|
||||
new String[] {"yM", "1.1999"},
|
||||
new String[] {"yMMM", "\u044F\u043D\u0432. 1999"},
|
||||
|
@ -403,6 +411,7 @@ public class DateTimeGeneratorTest extends TestFmwk {
|
|||
new String[] {"yyyyMMMM", "\u042F\u043D\u0432\u0430\u0440\u044C 1999"},
|
||||
new String[] {"MMMEd", "\u0421\u0440, 13 \u044F\u043D\u0432."},
|
||||
new String[] {"Ed", "\u0441\u0440, 13"},
|
||||
new String[] {"jmmssSSS", "23:58:59,123"},
|
||||
};
|
||||
|
||||
public void DayMonthTest() {
|
||||
|
|
Loading…
Add table
Reference in a new issue