]>
git.saurik.com Git - apple/icu.git/blob - icuSources/test/intltest/incaltst.h
1 // © 2016 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
3 /********************************************************************
5 * Copyright (c) 1997-2007, International Business Machines Corporation and
6 * others. All Rights Reserved.
7 ********************************************************************/
9 #ifndef __IntlCalendarTest__
10 #define __IntlCalendarTest__
12 #include "unicode/utypes.h"
14 #if !UCONFIG_NO_FORMATTING
16 #include "unicode/calendar.h"
17 #include "unicode/smpdtfmt.h"
20 class IntlCalendarTest
: public CalendarTimeZoneTest
{
23 void runIndexedTest( int32_t index
, UBool exec
, const char* &name
, char* par
);
27 void TestGregorian(void);
29 void TestBuddhist(void);
30 void TestBuddhistFormat(void);
32 void TestTaiwan(void);
34 void TestJapanese(void);
35 void TestJapaneseFormat(void);
36 void TestJapanese3860(void);
38 void TestPersian(void);
39 void TestPersianFormat(void);
42 // Test a Gregorian-Like calendar
43 void quasiGregorianTest(Calendar
& cal
, const Locale
& gregoLocale
, const int32_t *data
);
44 void simpleTest(const Locale
& loc
, const UnicodeString
& expect
, UDate expectDate
, UErrorCode
& status
);
47 // internal routine for checking date
48 static UnicodeString
value(Calendar
* calendar
);
53 #endif /* #if !UCONFIG_NO_FORMATTING */
55 #endif // __IntlCalendarTest__