]>
git.saurik.com Git - apple/icu.git/blob - icuSources/test/intltest/incaltst.h
1 /********************************************************************
3 * Copyright (c) 1997-2007, International Business Machines Corporation and
4 * others. All Rights Reserved.
5 ********************************************************************/
7 #ifndef __IntlCalendarTest__
8 #define __IntlCalendarTest__
10 #include "unicode/utypes.h"
12 #if !UCONFIG_NO_FORMATTING
14 #include "unicode/calendar.h"
15 #include "unicode/smpdtfmt.h"
18 class IntlCalendarTest
: public CalendarTimeZoneTest
{
21 void runIndexedTest( int32_t index
, UBool exec
, const char* &name
, char* par
);
25 void TestGregorian(void);
27 void TestBuddhist(void);
28 void TestBuddhistFormat(void);
30 void TestTaiwan(void);
32 void TestJapanese(void);
33 void TestJapaneseFormat(void);
34 void TestJapanese3860(void);
36 void TestPersian(void);
37 void TestPersianFormat(void);
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
);
45 // internal routine for checking date
46 static UnicodeString
value(Calendar
* calendar
);
51 #endif /* #if !UCONFIG_NO_FORMATTING */
53 #endif // __IntlCalendarTest__