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