"Fossies" - the Fresh Open Source Software Archive

Member "icu/source/test/intltest/astrotst.h" (3 Oct 2019, 1237 Bytes) of package /linux/misc/icu4c-65_1-src.tgz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    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 );
   26 public:
   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__