]>
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 A |
3 | /******************************************************************** |
4 | * COPYRIGHT: | |
46f4442e | 5 | * Copyright (c) 1997-2007, International Business Machines Corporation and |
b75a7d8f A |
6 | * others. All Rights Reserved. |
7 | ********************************************************************/ | |
8 | ||
9 | #ifndef __IntlCalendarTest__ | |
10 | #define __IntlCalendarTest__ | |
11 | ||
12 | #include "unicode/utypes.h" | |
13 | ||
14 | #if !UCONFIG_NO_FORMATTING | |
15 | ||
16 | #include "unicode/calendar.h" | |
17 | #include "unicode/smpdtfmt.h" | |
18 | #include "caltztst.h" | |
19 | ||
20 | class IntlCalendarTest: public CalendarTimeZoneTest { | |
21 | public: | |
22 | // IntlTest override | |
23 | void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par ); | |
24 | public: | |
25 | void TestTypes(void); | |
26 | ||
27 | void TestGregorian(void); | |
28 | ||
29 | void TestBuddhist(void); | |
30 | void TestBuddhistFormat(void); | |
31 | ||
46f4442e A |
32 | void TestTaiwan(void); |
33 | ||
b75a7d8f A |
34 | void TestJapanese(void); |
35 | void TestJapaneseFormat(void); | |
73c04bcf | 36 | void TestJapanese3860(void); |
1546d4af | 37 | void TestForceGannenNumbering(void); |
46f4442e A |
38 | |
39 | void TestPersian(void); | |
40 | void TestPersianFormat(void); | |
b75a7d8f A |
41 | |
42 | protected: | |
43 | // Test a Gregorian-Like calendar | |
44 | void quasiGregorianTest(Calendar& cal, const Locale& gregoLocale, const int32_t *data); | |
45 | void simpleTest(const Locale& loc, const UnicodeString& expect, UDate expectDate, UErrorCode& status); | |
46 | ||
47 | public: // package | |
48 | // internal routine for checking date | |
49 | static UnicodeString value(Calendar* calendar); | |
50 | ||
51 | }; | |
52 | ||
374ca955 | 53 | |
b75a7d8f A |
54 | #endif /* #if !UCONFIG_NO_FORMATTING */ |
55 | ||
56 | #endif // __IntlCalendarTest__ |