X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/729e4ab9bc6618bc3d8a898e575df7f4019e29ca..b331163bffd790ced0e88b73f44f86d49ccc48a5:/icuSources/test/intltest/sdtfmtts.cpp diff --git a/icuSources/test/intltest/sdtfmtts.cpp b/icuSources/test/intltest/sdtfmtts.cpp index b63a71fe..546b43cc 100644 --- a/icuSources/test/intltest/sdtfmtts.cpp +++ b/icuSources/test/intltest/sdtfmtts.cpp @@ -1,7 +1,7 @@ /******************************************************************** * COPYRIGHT: - * Copyright (c) 1997-2010, International Business Machines Corporation and + * Copyright (c) 1997-2014, International Business Machines Corporation and * others. All Rights Reserved. ********************************************************************/ @@ -229,7 +229,7 @@ void IntlTestSimpleDateFormatAPI::testAPI(/*char *par*/) status = U_ZERO_ERROR; pat.applyLocalizedPattern(p1, status); if(U_FAILURE(status)) { - errln("ERROR: applyPattern() failed with " + (int32_t) status); + errln("ERROR: applyPattern() failed with %s", u_errorName(status)); } UnicodeString s3; status = U_ZERO_ERROR; @@ -269,6 +269,12 @@ void IntlTestSimpleDateFormatAPI::testAPI(/*char *par*/) if ((double)udDate == 0.0) { errln("ERROR: Parsing failed using 'Y' and 'e'"); } + +// ====== Test ticket 11295 getNumberFormatForField returns wild pointer + if (object.getNumberFormatForField('B') != NULL) { + errln("B is not a valid field, " + "getNumberFormatForField should return NULL"); + } } #endif /* #if !UCONFIG_NO_FORMATTING */