OLD | NEW |
1 /*********************************************************************** | 1 /*********************************************************************** |
2 * COPYRIGHT: | 2 * COPYRIGHT: |
3 * Copyright (c) 1997-2012, International Business Machines Corporation | 3 * Copyright (c) 1997-2014, International Business Machines Corporation |
4 * and others. All Rights Reserved. | 4 * and others. All Rights Reserved. |
5 ***********************************************************************/ | 5 ***********************************************************************/ |
6 | 6 |
7 /* Test Internationalized Calendars for C++ */ | 7 /* Test Internationalized Calendars for C++ */ |
8 | 8 |
9 #include "unicode/utypes.h" | 9 #include "unicode/utypes.h" |
10 #include "string.h" | 10 #include "string.h" |
11 #include "unicode/locid.h" | 11 #include "unicode/locid.h" |
12 #include "japancal.h" | 12 #include "japancal.h" |
13 | 13 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 #include "incaltst.h" | 47 #include "incaltst.h" |
48 #include "unicode/gregocal.h" | 48 #include "unicode/gregocal.h" |
49 #include "unicode/smpdtfmt.h" | 49 #include "unicode/smpdtfmt.h" |
50 #include "unicode/simpletz.h" | 50 #include "unicode/simpletz.h" |
51 | 51 |
52 // ***************************************************************************** | 52 // ***************************************************************************** |
53 // class IntlCalendarTest | 53 // class IntlCalendarTest |
54 // ***************************************************************************** | 54 // ***************************************************************************** |
55 //--- move to CalendarTest? | 55 //--- move to CalendarTest? |
56 | 56 |
57 static const double JULIAN_EPOCH = -210866760000000.; | |
58 | |
59 | |
60 // Turn this on to dump the calendar fields | 57 // Turn this on to dump the calendar fields |
61 #define U_DEBUG_DUMPCALS | 58 #define U_DEBUG_DUMPCALS |
62 | 59 |
63 | 60 |
64 #define CASE(id,test) case id: name = #test; if (exec) { logln(#test "---"); log
ln((UnicodeString)""); test(); } break | 61 #define CASE(id,test) case id: name = #test; if (exec) { logln(#test "---"); log
ln((UnicodeString)""); test(); } break |
65 | 62 |
66 | 63 |
67 void IntlCalendarTest::runIndexedTest( int32_t index, UBool exec, const char* &n
ame, char* /*par*/ ) | 64 void IntlCalendarTest::runIndexedTest( int32_t index, UBool exec, const char* &n
ame, char* /*par*/ ) |
68 { | 65 { |
69 if (exec) logln("TestSuite IntlCalendarTest"); | 66 if (exec) logln("TestSuite IntlCalendarTest"); |
(...skipping 837 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
907 errln((UnicodeString)"Can't create " + loc.getName() + " date instance")
; | 904 errln((UnicodeString)"Can't create " + loc.getName() + " date instance")
; |
908 } | 905 } |
909 delete fmt0; | 906 delete fmt0; |
910 } | 907 } |
911 | 908 |
912 #undef CHECK | 909 #undef CHECK |
913 | 910 |
914 #endif /* #if !UCONFIG_NO_FORMATTING */ | 911 #endif /* #if !UCONFIG_NO_FORMATTING */ |
915 | 912 |
916 //eof | 913 //eof |
OLD | NEW |