• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // © 2016 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
3 /********************************************************************
4  * COPYRIGHT:
5  * Copyright (c) 1997-2007, International Business Machines Corporation and
6  * others. All Rights Reserved.
7  ********************************************************************/
8 
9 #ifndef __IntlCalendarTest__
10 #define __IntlCalendarTest__
11 
12 #include "unicode/utypes.h"
13 
14 #if !UCONFIG_NO_FORMATTING
15 
16 #include "unicode/calendar.h"
17 #include "unicode/smpdtfmt.h"
18 #include "caltztst.h"
19 
20 class IntlCalendarTest: public CalendarTimeZoneTest {
21 public:
22     // IntlTest override
23     void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par );
24 public:
25     void TestTypes(void);
26 
27     void TestGregorian(void);
28 
29     void TestBuddhist(void);
30     void TestBuddhistFormat(void);
31 
32     void TestTaiwan(void);
33 
34     void TestJapanese(void);
35     void TestJapaneseFormat(void);
36     void TestJapanese3860(void);
37     void TestForceGannenNumbering(void);
38 
39     void TestPersian(void);
40     void TestPersianFormat(void);
41 
42  protected:
43     // Test a Gregorian-Like calendar
44     void quasiGregorianTest(Calendar& cal, const Locale& gregoLocale, const int32_t *data);
45     void simpleTest(const Locale& loc, const UnicodeString& expect, UDate expectDate, UErrorCode& status);
46 
47 public: // package
48     // internal routine for checking date
49     static UnicodeString value(Calendar* calendar);
50 
51 };
52 
53 
54 #endif /* #if !UCONFIG_NO_FORMATTING */
55 
56 #endif // __IntlCalendarTest__
57