2017-01-20 00:20:31 +00:00
|
|
|
// © 2016 and later: Unicode, Inc. and others.
|
2016-06-15 18:58:17 +00:00
|
|
|
// License & terms of use: http://www.unicode.org/copyright.html
|
2003-11-24 21:36:01 +00:00
|
|
|
/********************************************************************
|
|
|
|
* COPYRIGHT:
|
2016-05-31 21:45:07 +00:00
|
|
|
* Copyright (c) 1997-2008, International Business Machines Corporation and
|
|
|
|
* others. All Rights Reserved.
|
2003-11-24 21:36:01 +00:00
|
|
|
********************************************************************/
|
|
|
|
|
|
|
|
#ifndef __AstroTest__
|
|
|
|
#define __AstroTest__
|
|
|
|
|
|
|
|
#include "unicode/utypes.h"
|
|
|
|
|
|
|
|
#if !UCONFIG_NO_FORMATTING
|
|
|
|
|
|
|
|
#include "unicode/calendar.h"
|
|
|
|
#include "unicode/gregocal.h"
|
|
|
|
#include "unicode/smpdtfmt.h"
|
|
|
|
#include "astro.h"
|
|
|
|
#include "caltztst.h"
|
|
|
|
|
|
|
|
class AstroTest: public CalendarTimeZoneTest {
|
|
|
|
public:
|
|
|
|
// IntlTest override
|
|
|
|
void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par );
|
|
|
|
public:
|
|
|
|
AstroTest();
|
|
|
|
|
|
|
|
void TestSolarLongitude(void);
|
|
|
|
|
|
|
|
void TestLunarPosition(void);
|
|
|
|
|
|
|
|
void TestCoordinates(void);
|
|
|
|
|
|
|
|
void TestCoverage(void);
|
|
|
|
|
|
|
|
void TestSunriseTimes(void);
|
|
|
|
|
|
|
|
void TestBasics(void);
|
2008-07-10 19:42:12 +00:00
|
|
|
|
|
|
|
void TestMoonAge(void);
|
2003-11-24 21:36:01 +00:00
|
|
|
private:
|
|
|
|
void initAstro(UErrorCode&);
|
|
|
|
void closeAstro(UErrorCode&);
|
|
|
|
|
|
|
|
CalendarAstronomer *astro;
|
|
|
|
Calendar *gc;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* #if !UCONFIG_NO_FORMATTING */
|
|
|
|
|
|
|
|
#endif // __AstroTest__
|