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) 1997-2012, International Business Machines Corporation and 6 * others. All Rights Reserved. 7 ********************************************************************/ 8 9 #ifndef _CALENDARREGRESSIONTEST_ 10 #define _CALENDARREGRESSIONTEST_ 11 12 #include "unicode/utypes.h" 13 14 #if !UCONFIG_NO_FORMATTING 15 16 #include "unicode/calendar.h" 17 #include "unicode/gregocal.h" 18 #include "intltest.h" 19 20 /** 21 * Performs regression test for Calendar 22 **/ 23 class CalendarRegressionTest: public IntlTest { 24 25 // IntlTest override 26 void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par ) override; 27 public: 28 void test4100311(); 29 void test4074758(); 30 void test4028518(); 31 void test4031502() ; 32 void test4035301() ; 33 void test4040996() ; 34 void test4051765() ; 35 void test4059654() ; 36 void test4061476() ; 37 void test4070502() ; 38 void test4071197() ; 39 void test4071385() ; 40 void test4073929() ; 41 void test4083167() ; 42 void test4086724() ; 43 void test4092362() ; 44 void test4095407() ; 45 void test4096231() ; 46 void test4096539() ; 47 void test41003112() ; 48 void test4103271() ; 49 void test4106136() ; 50 void test4108764() ; 51 void test4114578() ; 52 void test4118384() ; 53 void test4125881() ; 54 void test4125892() ; 55 void test4141665() ; 56 void test4142933() ; 57 void test4145158() ; 58 void test4145983() ; 59 void test4147269() ; 60 61 void Test4149677() ; 62 void Test4162587() ; 63 void Test4165343() ; 64 void Test4166109() ; 65 void Test4167060() ; 66 void Test4197699(); 67 void TestJ81(); 68 void TestJ438(); 69 void TestT5555(); 70 void TestT6745(); 71 void TestT8057(); 72 void TestLeapFieldDifference(); 73 void TestMalaysianInstance(); 74 void TestWeekShift(); 75 void TestTimeZoneTransitionAdd(); 76 void TestDeprecates(); 77 void TestT8596(); 78 void Test9019(); 79 void TestT9452(); 80 void TestT11632(); 81 void TestPersianCalOverflow(); 82 void TestIslamicCalOverflow(); 83 void TestWeekOfYear13548(); 84 void TestUTCWrongAMPM22023(); 85 void TestAsiaManilaAfterSetGregorianChange22043(); 86 87 void Test13745(); 88 void TestRespectUExtensionFw(); 89 90 void printdate(GregorianCalendar *cal, const char *string); 91 void dowTest(UBool lenient) ; 92 93 void VerifyGetStayInBound(double test_value); 94 void VerifyNoAssertWithSetGregorianChange(const char* timezone); 95 96 static UDate getAssociatedDate(UDate d, UErrorCode& status); 97 static UDate makeDate(int32_t y, int32_t m = 0, int32_t d = 0, int32_t hr = 0, int32_t min = 0, int32_t sec = 0); 98 99 static const UDate EARLIEST_SUPPORTED_MILLIS; 100 static const UDate LATEST_SUPPORTED_MILLIS; 101 static const char* FIELD_NAME[]; 102 103 protected: 104 UBool failure(UErrorCode status, const char* msg); 105 }; 106 107 #endif /* #if !UCONFIG_NO_FORMATTING */ 108 109 #endif // _CALENDARREGRESSIONTEST_ 110 //eof 111