2003-05-16 21:58:37 +00:00
|
|
|
/********************************************************************
|
|
|
|
* COPYRIGHT:
|
2007-03-19 17:33:20 +00:00
|
|
|
* Copyright (c) 1997-2007, International Business Machines Corporation and
|
2003-05-16 21:58:37 +00:00
|
|
|
* others. All Rights Reserved.
|
|
|
|
********************************************************************/
|
|
|
|
|
|
|
|
#ifndef __IntlCalendarTest__
|
|
|
|
#define __IntlCalendarTest__
|
|
|
|
|
|
|
|
#include "unicode/utypes.h"
|
|
|
|
|
|
|
|
#if !UCONFIG_NO_FORMATTING
|
|
|
|
|
|
|
|
#include "unicode/calendar.h"
|
|
|
|
#include "unicode/smpdtfmt.h"
|
|
|
|
#include "caltztst.h"
|
|
|
|
|
|
|
|
class IntlCalendarTest: public CalendarTimeZoneTest {
|
|
|
|
public:
|
|
|
|
// IntlTest override
|
|
|
|
void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par );
|
|
|
|
public:
|
|
|
|
void TestTypes(void);
|
|
|
|
|
2003-05-25 07:12:19 +00:00
|
|
|
void TestGregorian(void);
|
|
|
|
|
2003-05-16 21:58:37 +00:00
|
|
|
void TestBuddhist(void);
|
2003-05-25 07:12:19 +00:00
|
|
|
void TestBuddhistFormat(void);
|
|
|
|
|
2007-06-29 16:56:34 +00:00
|
|
|
void TestTaiwan(void);
|
|
|
|
|
2003-05-25 07:12:19 +00:00
|
|
|
void TestJapanese(void);
|
|
|
|
void TestJapaneseFormat(void);
|
2005-06-29 16:34:25 +00:00
|
|
|
void TestJapanese3860(void);
|
2007-03-19 17:33:20 +00:00
|
|
|
|
|
|
|
void TestPersian(void);
|
|
|
|
void TestPersianFormat(void);
|
2003-05-16 21:58:37 +00:00
|
|
|
|
|
|
|
protected:
|
2003-05-25 07:12:19 +00:00
|
|
|
// Test a Gregorian-Like calendar
|
2003-05-16 21:58:37 +00:00
|
|
|
void quasiGregorianTest(Calendar& cal, const Locale& gregoLocale, const int32_t *data);
|
2003-05-28 05:41:29 +00:00
|
|
|
void simpleTest(const Locale& loc, const UnicodeString& expect, UDate expectDate, UErrorCode& status);
|
2003-05-16 21:58:37 +00:00
|
|
|
|
|
|
|
public: // package
|
|
|
|
// internal routine for checking date
|
|
|
|
static UnicodeString value(Calendar* calendar);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
2003-11-24 21:36:01 +00:00
|
|
|
|
2003-05-16 21:58:37 +00:00
|
|
|
#endif /* #if !UCONFIG_NO_FORMATTING */
|
|
|
|
|
|
|
|
#endif // __IntlCalendarTest__
|