1// Copyright (C) 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
22class AstroTest: public CalendarTimeZoneTest {
23public:
24    // IntlTest override
25    void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par );
26public:
27    AstroTest();
28
29    void TestSolarLongitude(void);
30
31    void TestLunarPosition(void);
32
33    void TestCoordinates(void);
34
35    void TestCoverage(void);
36
37    void TestSunriseTimes(void);
38
39    void TestBasics(void);
40
41    void TestMoonAge(void);
42 private:
43    void initAstro(UErrorCode&);
44    void closeAstro(UErrorCode&);
45
46    CalendarAstronomer *astro;
47    Calendar *gc;
48
49};
50
51#endif /* #if !UCONFIG_NO_FORMATTING */
52
53#endif // __AstroTest__
54