]>
Commit | Line | Data |
---|---|---|
f3c0d7a5 A |
1 | // © 2016 and later: Unicode, Inc. and others. |
2 | // License & terms of use: http://www.unicode.org/copyright.html | |
b75a7d8f | 3 | /******************************************************************** |
38fbf2fd | 4 | * COPYRIGHT: |
4388f060 | 5 | * Copyright (c) 1997-2012, International Business Machines Corporation and |
b75a7d8f A |
6 | * others. All Rights Reserved. |
7 | ********************************************************************/ | |
8 | ||
9 | #ifndef _CALENDARREGRESSIONTEST_ | |
10 | #define _CALENDARREGRESSIONTEST_ | |
38fbf2fd | 11 | |
b75a7d8f A |
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 | ||
38fbf2fd | 20 | /** |
b75a7d8f A |
21 | * Performs regression test for Calendar |
22 | **/ | |
38fbf2fd A |
23 | class CalendarRegressionTest: public IntlTest { |
24 | ||
b75a7d8f A |
25 | // IntlTest override |
26 | void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par ); | |
27 | public: | |
28 | void test4100311(void); | |
29 | void test4074758(void); | |
30 | void test4028518(void); | |
31 | void test4031502(void) ; | |
32 | void test4035301(void) ; | |
33 | void test4040996(void) ; | |
34 | void test4051765(void) ; | |
35 | void test4059654(void) ; | |
36 | void test4061476(void) ; | |
37 | void test4070502(void) ; | |
38 | void test4071197(void) ; | |
39 | void test4071385(void) ; | |
40 | void test4073929(void) ; | |
41 | void test4083167(void) ; | |
42 | void test4086724(void) ; | |
43 | void test4092362(void) ; | |
44 | void test4095407(void) ; | |
45 | void test4096231(void) ; | |
46 | void test4096539(void) ; | |
47 | void test41003112(void) ; | |
48 | void test4103271(void) ; | |
49 | void test4106136(void) ; | |
50 | void test4108764(void) ; | |
51 | void test4114578(void) ; | |
52 | void test4118384(void) ; | |
53 | void test4125881(void) ; | |
54 | void test4125892(void) ; | |
55 | void test4141665(void) ; | |
56 | void test4142933(void) ; | |
57 | void test4145158(void) ; | |
58 | void test4145983(void) ; | |
59 | void test4147269(void) ; | |
60 | ||
61 | void Test4149677(void) ; | |
62 | void Test4162587(void) ; | |
63 | void Test4165343(void) ; | |
64 | void Test4166109(void) ; | |
65 | void Test4167060(void) ; | |
66 | void Test4197699(void); | |
67 | void TestJ81(void); | |
68 | void TestJ438(void); | |
46f4442e A |
69 | void TestT5555(void); |
70 | void TestT6745(void); | |
4388f060 | 71 | void TestT8057(void); |
b75a7d8f A |
72 | void TestLeapFieldDifference(void); |
73 | void TestMalaysianInstance(void); | |
74 | void TestWeekShift(void); | |
75 | void TestTimeZoneTransitionAdd(void); | |
76 | void TestDeprecates(void); | |
4388f060 A |
77 | void TestT8596(void); |
78 | void Test9019(void); | |
51004dcb | 79 | void TestT9452(void); |
0f5d89e8 | 80 | void TestT11632(void); |
38fbf2fd A |
81 | void TestPersianCalOverflow(void); |
82 | void TestIslamicCalOverflow(void); | |
0f5d89e8 | 83 | void TestWeekOfYear13548(void); |
b75a7d8f | 84 | |
340931cb A |
85 | void Test13745(void); |
86 | ||
b75a7d8f A |
87 | void printdate(GregorianCalendar *cal, const char *string); |
88 | void dowTest(UBool lenient) ; | |
89 | ||
90 | ||
91 | static UDate getAssociatedDate(UDate d, UErrorCode& status); | |
92 | 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); | |
93 | ||
94 | static const UDate EARLIEST_SUPPORTED_MILLIS; | |
95 | static const UDate LATEST_SUPPORTED_MILLIS; | |
96 | static const char* FIELD_NAME[]; | |
97 | ||
98 | protected: | |
99 | UBool failure(UErrorCode status, const char* msg); | |
100 | }; | |
101 | ||
102 | #endif /* #if !UCONFIG_NO_FORMATTING */ | |
38fbf2fd | 103 | |
b75a7d8f A |
104 | #endif // _CALENDARREGRESSIONTEST_ |
105 | //eof |