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