]> git.saurik.com Git - apple/icu.git/blame - icuSources/test/intltest/incaltst.h
ICU-491.11.1.tar.gz
[apple/icu.git] / icuSources / test / intltest / incaltst.h
CommitLineData
b75a7d8f
A
1/********************************************************************
2 * COPYRIGHT:
46f4442e 3 * Copyright (c) 1997-2007, International Business Machines Corporation and
b75a7d8f
A
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
18class IntlCalendarTest: public CalendarTimeZoneTest {
19public:
20 // IntlTest override
21 void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par );
22public:
23 void TestTypes(void);
24
25 void TestGregorian(void);
26
27 void TestBuddhist(void);
28 void TestBuddhistFormat(void);
29
46f4442e
A
30 void TestTaiwan(void);
31
b75a7d8f
A
32 void TestJapanese(void);
33 void TestJapaneseFormat(void);
73c04bcf 34 void TestJapanese3860(void);
46f4442e
A
35
36 void TestPersian(void);
37 void TestPersianFormat(void);
b75a7d8f
A
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
44public: // package
45 // internal routine for checking date
46 static UnicodeString value(Calendar* calendar);
47
48};
49
374ca955 50
b75a7d8f
A
51#endif /* #if !UCONFIG_NO_FORMATTING */
52
53#endif // __IntlCalendarTest__