mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-05 21:45:37 +00:00
ICU-21249 Adds !UCONFIG_NO_BREAK_ITERATION around selected test data items.
The corresponding code that implements the feature under test is likewise enclosed.
This commit is contained in:
parent
5769803253
commit
10face8140
2 changed files with 4 additions and 0 deletions
|
@ -74,6 +74,7 @@ static const DateIntervalFormatTestItem testItems[] = {
|
|||
{ "cs", "MMMEd", CAP_NONE, tzUSPacific, Date201009270800, Date201009270800 + 60.0*_DAY, "po 27. 9. \\u2013 p\\u00E1 26. 11." },
|
||||
{ "cs", "yMMMM", CAP_NONE, tzUSPacific, Date201009270800, Date201009270800 + 60.0*_DAY, "z\\u00E1\\u0159\\u00ED\\u2013listopad 2010" },
|
||||
{ "cs", "yMMMM", CAP_NONE, tzUSPacific, Date201009270800, Date201009270800 + 1.0*_DAY, "z\\u00E1\\u0159\\u00ED 2010" },
|
||||
#if !UCONFIG_NO_BREAK_ITERATION
|
||||
{ "cs", "MMMEd", CAP_BEGIN, tzUSPacific, Date201009270800, Date201009270800 + 60.0*_DAY, "Po 27. 9. \\u2013 p\\u00E1 26. 11." },
|
||||
{ "cs", "yMMMM", CAP_BEGIN, tzUSPacific, Date201009270800, Date201009270800 + 60.0*_DAY, "Z\\u00E1\\u0159\\u00ED\\u2013listopad 2010" },
|
||||
{ "cs", "yMMMM", CAP_BEGIN, tzUSPacific, Date201009270800, Date201009270800 + 1.0*_DAY, "Z\\u00E1\\u0159\\u00ED 2010" },
|
||||
|
@ -81,6 +82,7 @@ static const DateIntervalFormatTestItem testItems[] = {
|
|||
{ "cs", "yMMMM", CAP_LIST, tzUSPacific, Date201009270800, Date201009270800 + 60.0*_DAY, "Z\\u00E1\\u0159\\u00ED\\u2013listopad 2010" },
|
||||
{ "cs", "yMMMM", CAP_LIST, tzUSPacific, Date201009270800, Date201009270800 + 1.0*_DAY, "Z\\u00E1\\u0159\\u00ED 2010" },
|
||||
{ "cs", "MMMEd", CAP_ALONE, tzUSPacific, Date201009270800, Date201009270800 + 60.0*_DAY, "po 27. 9. \\u2013 p\\u00E1 26. 11." },
|
||||
#endif
|
||||
{ "cs", "yMMMM", CAP_ALONE, tzUSPacific, Date201009270800, Date201009270800 + 60.0*_DAY, "z\\u00E1\\u0159\\u00ED\\u2013listopad 2010" },
|
||||
{ "cs", "yMMMM", CAP_ALONE, tzUSPacific, Date201009270800, Date201009270800 + 1.0*_DAY, "z\\u00E1\\u0159\\u00ED 2010" },
|
||||
{ NULL, NULL, CAP_NONE, NULL, 0, 0, NULL }
|
||||
|
|
|
@ -1298,12 +1298,14 @@ void DateIntervalFormatTest::testContext() {
|
|||
{ "cs", "MMMEd", CAP_NONE, 60.0*_DAY, u"po 27. 9. – pá 26. 11." },
|
||||
{ "cs", "yMMMM", CAP_NONE, 60.0*_DAY, u"září–listopad 2010" },
|
||||
{ "cs", "yMMMM", CAP_NONE, 1.0*_DAY, u"září 2010" },
|
||||
#if !UCONFIG_NO_BREAK_ITERATION
|
||||
{ "cs", "MMMEd", CAP_BEGIN, 60.0*_DAY, u"Po 27. 9. – pá 26. 11." },
|
||||
{ "cs", "yMMMM", CAP_BEGIN, 60.0*_DAY, u"Září–listopad 2010" },
|
||||
{ "cs", "yMMMM", CAP_BEGIN, 1.0*_DAY, u"Září 2010" },
|
||||
{ "cs", "MMMEd", CAP_LIST, 60.0*_DAY, u"Po 27. 9. – pá 26. 11." },
|
||||
{ "cs", "yMMMM", CAP_LIST, 60.0*_DAY, u"Září–listopad 2010" },
|
||||
{ "cs", "yMMMM", CAP_LIST, 1.0*_DAY, u"Září 2010" },
|
||||
#endif
|
||||
{ "cs", "MMMEd", CAP_ALONE, 60.0*_DAY, u"po 27. 9. – pá 26. 11." },
|
||||
{ "cs", "yMMMM", CAP_ALONE, 60.0*_DAY, u"září–listopad 2010" },
|
||||
{ "cs", "yMMMM", CAP_ALONE, 1.0*_DAY, u"září 2010" },
|
||||
|
|
Loading…
Add table
Reference in a new issue