icu/icu4c/source/test/intltest/astrotst.h
2024-03-20 13:36:17 -07:00

50 lines
1.1 KiB
C++

// © 2016 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html
/********************************************************************
* COPYRIGHT:
* Copyright (c) 1997-2008, International Business Machines Corporation and
* others. All Rights Reserved.
********************************************************************/
#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 ) override;
public:
AstroTest();
void TestSolarLongitude();
void TestLunarPosition();
void TestCoordinates();
void TestCoverage();
void TestBasics();
void TestMoonAge();
private:
void init(UErrorCode&);
void close(UErrorCode&);
Calendar *gc;
};
#endif /* #if !UCONFIG_NO_FORMATTING */
#endif // __AstroTest__