From 7e03903fd577a91e15fb3ce971bfc404bdc3ed74 Mon Sep 17 00:00:00 2001 From: Peter Edberg Date: Tue, 8 Sep 2015 02:25:24 +0000 Subject: [PATCH] ICU-11773 Improve test, fix typo (C) X-SVN-Rev: 37900 --- icu4c/source/i18n/smpdtfmt.cpp | 2 +- icu4c/source/test/intltest/dtfmttst.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/icu4c/source/i18n/smpdtfmt.cpp b/icu4c/source/i18n/smpdtfmt.cpp index c971891b047..95db904d13e 100644 --- a/icu4c/source/i18n/smpdtfmt.cpp +++ b/icu4c/source/i18n/smpdtfmt.cpp @@ -3264,7 +3264,7 @@ int32_t SimpleDateFormat::subParse(const UnicodeString& text, int32_t& start, UC return -start; } // currently no pattern character is defined for UDAT_TIME_SEPARATOR_FIELD - // so we shoul dnot get here. Leave support in for future definition. + // so we should not get here. Leave support in for future definition. case UDAT_TIME_SEPARATOR_FIELD: // { static const UChar def_sep = DateFormatSymbols::DEFAULT_TIME_SEPARATOR; diff --git a/icu4c/source/test/intltest/dtfmttst.cpp b/icu4c/source/test/intltest/dtfmttst.cpp index 7c153246765..ebcc81a7960 100644 --- a/icu4c/source/test/intltest/dtfmttst.cpp +++ b/icu4c/source/test/intltest/dtfmttst.cpp @@ -508,7 +508,7 @@ void DateFormatTest::TestFieldPosition() { #if UDAT_HAS_PATTERN_CHAR_FOR_TIME_SEPARATOR assertTrue("Data", UDAT_FIELD_COUNT == uprv_strlen(PATTERN_CHARS)); #else - // assertTrue("Data", UDAT_FIELD_COUNT == uprv_strlen(PATTERN_CHARS)); // test invalid if no pattern char for UDAT_TIME_SEPARATOR_FIELD + assertTrue("Data", UDAT_FIELD_COUNT == uprv_strlen(PATTERN_CHARS) + 1); // +1 for missing TIME_SEPARATOR pattern char #endif // Create test formatters -- 2.40.0