| OLD | NEW |
| 1 /******************************************************************** | 1 /******************************************************************** |
| 2 * COPYRIGHT: | 2 * COPYRIGHT: |
| 3 * Copyright (c) 1996-2010, International Business Machines Corporation and | 3 * Copyright (c) 1996-2014, International Business Machines Corporation and |
| 4 * others. All Rights Reserved. | 4 * others. All Rights Reserved. |
| 5 ********************************************************************/ | 5 ********************************************************************/ |
| 6 | 6 |
| 7 /* Test CalendarAstronomer for C++ */ | 7 /* Test CalendarAstronomer 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 | 12 |
| 13 #if !UCONFIG_NO_FORMATTING | 13 #if !UCONFIG_NO_FORMATTING |
| 14 | 14 |
| 15 #include "astro.h" | 15 #include "astro.h" |
| 16 #include "astrotst.h" | 16 #include "astrotst.h" |
| 17 #include "gregoimp.h" // for Math | 17 #include "gregoimp.h" // for Math |
| 18 #include "unicode/simpletz.h" | 18 #include "unicode/simpletz.h" |
| 19 | 19 |
| 20 | 20 |
| 21 static const double DAY_MS = 24.*60.*60.*1000.; | |
| 22 | |
| 23 #define CASE(id,test) case id: name = #test; if (exec) { logln(#test "---"); log
ln((UnicodeString)""); test(); } break | 21 #define CASE(id,test) case id: name = #test; if (exec) { logln(#test "---"); log
ln((UnicodeString)""); test(); } break |
| 24 | 22 |
| 25 AstroTest::AstroTest(): astro(NULL), gc(NULL) { | 23 AstroTest::AstroTest(): astro(NULL), gc(NULL) { |
| 26 } | 24 } |
| 27 | 25 |
| 28 void AstroTest::runIndexedTest( int32_t index, UBool exec, const char* &name, ch
ar* /*par*/ ) | 26 void AstroTest::runIndexedTest( int32_t index, UBool exec, const char* &name, ch
ar* /*par*/ ) |
| 29 { | 27 { |
| 30 if (exec) logln("TestSuite AstroTest"); | 28 if (exec) logln("TestSuite AstroTest"); |
| 31 switch (index) { | 29 switch (index) { |
| 32 // CASE(0,FooTest); | 30 // CASE(0,FooTest); |
| (...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 475 } | 473 } |
| 476 | 474 |
| 477 | 475 |
| 478 // TODO: try finding next new moon after 07/28/1984 16:00 GMT | 476 // TODO: try finding next new moon after 07/28/1984 16:00 GMT |
| 479 | 477 |
| 480 | 478 |
| 481 #endif | 479 #endif |
| 482 | 480 |
| 483 | 481 |
| 484 | 482 |
| OLD | NEW |