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