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:
gnrunge 2020-09-16 13:24:25 -07:00 committed by Norbert Runge
parent 5769803253
commit 10face8140
2 changed files with 4 additions and 0 deletions

View file

@ -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 }

View file

@ -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" },