1 // © 2016 and later: Unicode, Inc. and others. 2 // License & terms of use: http://www.unicode.org/copyright.html 3 /******************************************************************** 4 * COPYRIGHT: 5 * Copyright (c) 1998-2005, International Business Machines Corporation and 6 * others. All Rights Reserved. 7 ********************************************************************/ 8 9 #ifndef _TIMEZONEREGRESSIONTEST_ 10 #define _TIMEZONEREGRESSIONTEST_ 11 12 #include "unicode/utypes.h" 13 14 #if !UCONFIG_NO_FORMATTING 15 16 #include "unicode/timezone.h" 17 #include "unicode/gregocal.h" 18 #include "unicode/simpletz.h" 19 #include "intltest.h" 20 21 22 23 /** 24 * Performs regression test for Calendar 25 **/ 26 class TimeZoneRegressionTest: public IntlTest { 27 28 // IntlTest override 29 void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par ); 30 public: 31 32 void Test4052967(void); 33 void Test4073209(void); 34 void Test4073215(void); 35 void Test4084933(void); 36 void Test4096952(void); 37 void Test4109314(void); 38 void Test4126678(void); 39 void Test4151406(void); 40 void Test4151429(void); 41 void Test4154537(void); 42 void Test4154542(void); 43 void Test4154650(void); 44 void Test4154525(void); 45 void Test4162593(void); 46 void Test4176686(void); 47 void TestJ186(void); 48 void TestJ449(void); 49 void TestJDK12API(void); 50 void Test4184229(void); 51 UBool checkCalendar314(GregorianCalendar *testCal, TimeZone *testTZ); 52 void TestNegativeDaylightSaving(void); 53 54 55 protected: 56 UDate findTransitionBinary(const SimpleTimeZone& tz, UDate min, UDate max); 57 UDate findTransitionStepwise(const SimpleTimeZone& tz, UDate min, UDate max); 58 UBool failure(UErrorCode status, const char* msg); 59 }; 60 61 #endif /* #if !UCONFIG_NO_FORMATTING */ 62 63 #endif // _CALENDARREGRESSIONTEST_ 64 //eof 65