Stellarium 0.15.2
testEphemeris.hpp
1 /*
2  * Stellarium
3  * Copyright (C) 2016 Alexander Wolf
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License
7  * as published by the Free Software Foundation; either version 2
8  * of the License, or (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA.
18  */
19 
20 #ifndef _TESTEPHEMERIS_HPP_
21 #define _TESTEPHEMERIS_HPP_
22 
23 #include <QObject>
24 #include <QTest>
25 
26 class TestEphemeris : public QObject
27 {
28  Q_OBJECT
29 
30 private slots:
31  void initTestCase();
32  // VSOP87
33  void testMercuryHeliocentricEphemerisVsop87();
34  void testVenusHeliocentricEphemerisVsop87();
35  void testMarsHeliocentricEphemerisVsop87();
36  void testJupiterHeliocentricEphemerisVsop87();
37  void testSaturnHeliocentricEphemerisVsop87();
38  void testUranusHeliocentricEphemerisVsop87();
39  void testNeptuneHeliocentricEphemerisVsop87();
40  // JPL DE430
41  void testMercuryHeliocentricEphemerisDe430();
42  void testVenusHeliocentricEphemerisDe430();
43  void testMarsHeliocentricEphemerisDe430();
44  void testJupiterHeliocentricEphemerisDe430();
45  void testSaturnHeliocentricEphemerisDe430();
46  void testUranusHeliocentricEphemerisDe430();
47  void testNeptuneHeliocentricEphemerisDe430();
48  // JPL DE431
49  void testMercuryHeliocentricEphemerisDe431();
50  void testVenusHeliocentricEphemerisDe431();
51  void testMarsHeliocentricEphemerisDe431();
52  void testJupiterHeliocentricEphemerisDe431();
53  void testSaturnHeliocentricEphemerisDe431();
54  void testUranusHeliocentricEphemerisDe431();
55  void testNeptuneHeliocentricEphemerisDe431();
56 
57 private:
58  QString de430FilePath, de431FilePath;
59  QVariantList mercury, venus, mars, jupiter, saturn, uranus, neptune;
60 
61 };
62 
63 #endif // _TESTEPHEMERIS_HPP_
64