X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/b75a7d8f3b4adbae880cab104ce2c6a50eee4db2..374ca955a76ecab1204ca8bfa63ff9238d998416:/icuSources/test/intltest/tzbdtest.cpp diff --git a/icuSources/test/intltest/tzbdtest.cpp b/icuSources/test/intltest/tzbdtest.cpp index 887226ce..66e0f24a 100644 --- a/icuSources/test/intltest/tzbdtest.cpp +++ b/icuSources/test/intltest/tzbdtest.cpp @@ -1,8 +1,8 @@ -/******************************************************************** +/*********************************************************************** * COPYRIGHT: - * Copyright (c) 1997-2003, International Business Machines Corporation and - * others. All Rights Reserved. - ********************************************************************/ + * Copyright (c) 1997-2004, International Business Machines Corporation + * and others. All Rights Reserved. + ***********************************************************************/ #include "unicode/utypes.h" @@ -12,6 +12,7 @@ #include "unicode/timezone.h" #include "unicode/simpletz.h" #include "unicode/gregocal.h" +#include "putilimp.h" void TimeZoneBoundaryTest::runIndexedTest( int32_t index, UBool exec, const char* &name, char* /*par*/ ) { @@ -175,7 +176,11 @@ TimeZoneBoundaryTest::showDate(UDate d) UnicodeString TimeZoneBoundaryTest::showNN(int32_t n) { - return ((n < 10) ? UnicodeString("0"): UnicodeString("")) + n; + UnicodeString nStr; + if (n < 10) { + nStr += UnicodeString("0", ""); + } + return nStr + n; } // ------------------------------------- @@ -401,7 +406,7 @@ TimeZoneBoundaryTest::findBoundariesStepwise(int32_t year, UDate interval, TimeZ void TimeZoneBoundaryTest::TestStepwise() { - TimeZone *zone = TimeZone::createTimeZone("EST"); + TimeZone *zone = TimeZone::createTimeZone("America/New_York"); findBoundariesStepwise(1997, ONE_DAY, zone, 2); delete zone; zone = TimeZone::createTimeZone("UTC"); // updated 12/3/99 aliu