ICU-4665 DateFormatRoundTripTest should look for both "z" and "Z" to check for zone.

X-SVN-Rev: 18259
This commit is contained in:
Eric Mader 2005-07-15 21:28:19 +00:00
parent 2f86fde628
commit 621ab38807

View File

@ -1,6 +1,6 @@
/***********************************************************************
* COPYRIGHT:
* Copyright (c) 1997-2004, International Business Machines Corporation
* Copyright (c) 1997-2005, International Business Machines Corporation
* and others. All Rights Reserved.
***********************************************************************/
@ -29,7 +29,7 @@
#endif
// Define this to test just a single locale
//#define TEST_ONE_LOC "ja_JP_TRADITIONAL"
//#define TEST_ONE_LOC "cs_CZ"
// If SPARSENESS is > 0, we don't run each exhaustive possibility.
// There are 24 total possible tests per each locale. A SPARSENESS
@ -255,7 +255,7 @@ void DateFormatRoundTripTest::test(DateFormat *fmt, const Locale &origLocale, UB
// patterns we have, but it may be a problem later.
UBool hasEra = (pat.indexOf(UnicodeString("G")) != -1);
UBool hasZone = (pat.indexOf(UnicodeString("z")) != -1);
UBool hasZone = (pat.indexOf(UnicodeString("Z")) != -1) || (pat.indexOf(UnicodeString("z")) != -1);
// Because patterns contain incomplete data representing the Date,
// we must be careful of how we do the roundtrip. We start with