]> git.saurik.com Git - apple/icu.git/blob - icuSources/test/intltest/incaltst.h
ICU-8.11.2.tar.gz
[apple/icu.git] / icuSources / test / intltest / incaltst.h
1 /********************************************************************
2 * COPYRIGHT:
3 * Copyright (c) 1997-2005, 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 TestJapanese(void);
31 void TestJapaneseFormat(void);
32 void TestJapanese3860(void);
33
34 protected:
35 // Test a Gregorian-Like calendar
36 void quasiGregorianTest(Calendar& cal, const Locale& gregoLocale, const int32_t *data);
37 void simpleTest(const Locale& loc, const UnicodeString& expect, UDate expectDate, UErrorCode& status);
38
39 public: // package
40 // internal routine for checking date
41 static UnicodeString value(Calendar* calendar);
42
43 };
44
45
46 #endif /* #if !UCONFIG_NO_FORMATTING */
47
48 #endif // __IntlCalendarTest__