• 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-2008, International Business Machines Corporation and
6  * others. All Rights Reserved.
7  ********************************************************************/
8 
9 #ifndef __AstroTest__
10 #define __AstroTest__
11 
12 #include "unicode/utypes.h"
13 
14 #if !UCONFIG_NO_FORMATTING
15 
16 #include "unicode/calendar.h"
17 #include "unicode/gregocal.h"
18 #include "unicode/smpdtfmt.h"
19 #include "astro.h"
20 #include "caltztst.h"
21 
22 class AstroTest: public CalendarTimeZoneTest {
23 public:
24     // IntlTest override
25     void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par ) override;
26 public:
27     AstroTest();
28 
29     void TestSolarLongitude();
30 
31     void TestLunarPosition();
32 
33     void TestCoordinates();
34 
35     void TestCoverage();
36 
37     void TestBasics();
38 
39     void TestMoonAge();
40  private:
41     void init(UErrorCode&);
42     void close(UErrorCode&);
43 
44     Calendar *gc;
45 
46 };
47 
48 #endif /* #if !UCONFIG_NO_FORMATTING */
49 
50 #endif // __AstroTest__
51