CppEphem
cppephem
test
test_CEPlanet.h
Go to the documentation of this file.
1
/***************************************************************************
2
* test_CEPlanet.h: CppEphem *
3
* ----------------------------------------------------------------------- *
4
* Copyright © 2019 JCardenzana *
5
* ----------------------------------------------------------------------- *
6
* *
7
* This program is free software: you can redistribute it and/or modify *
8
* it under the terms of the GNU General Public License as published by *
9
* the Free Software Foundation, either version 3 of the License, or *
10
* (at your option) any later version. *
11
* *
12
* This program is distributed in the hope that it will be useful, *
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
15
* GNU General Public License for more details. *
16
* *
17
* You should have received a copy of the GNU General Public License *
18
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
19
* *
20
***************************************************************************/
21
22
#ifndef test_CEPlanet_h
23
#define test_CEPlanet_h
24
25
#include "
CEDate.h
"
26
#include "
CEObserver.h
"
27
#include "
CEPlanet.h
"
28
#include "CETestSuite.h"
29
30
class
test_CEPlanet
:
public
CETestSuite {
31
public
:
32
test_CEPlanet
();
33
virtual
~test_CEPlanet
();
34
35
virtual
bool
runtests
();
36
37
/****** METHODS ******/
38
39
virtual
bool
test_construct
(
void
);
40
41
// Test individual planets
42
virtual
bool
test_mercury
(
void
);
43
virtual
bool
test_venus
(
void
);
44
virtual
bool
test_earth
(
void
);
45
virtual
bool
test_mars
(
void
);
46
virtual
bool
test_jupiter
(
void
);
47
virtual
bool
test_saturn
(
void
);
48
virtual
bool
test_uranus
(
void
);
49
virtual
bool
test_neptune
(
void
);
50
51
// Run the actual tests
52
virtual
bool
test_planet
(
const
CEPlanet
&
test_planet
,
53
const
CESkyCoord
& true_icrs,
54
const
CESkyCoord
& true_obs,
55
const
std::vector<double>& true_pos,
56
const
std::vector<double>& true_vel);
57
58
private
:
59
60
bool
test_Planets
(
void
);
61
62
CEObserver
base_observer_
;
63
CEDate
base_date_
;
64
65
};
66
67
#endif
/* test_CEPlanet_h */
test_CEPlanet::base_observer_
CEObserver base_observer_
Definition:
test_CEPlanet.h:79
test_CEPlanet::test_mars
virtual bool test_mars(void)
Test Mars.
Definition:
test_CEPlanet.cpp:198
test_CEPlanet::base_date_
CEDate base_date_
Definition:
test_CEPlanet.h:80
CEDate
Definition:
CEDate.h:43
test_CEPlanet::test_jupiter
virtual bool test_jupiter(void)
Test Jupiter.
Definition:
test_CEPlanet.cpp:244
test_CEPlanet::test_earth
virtual bool test_earth(void)
Test Earth.
Definition:
test_CEPlanet.cpp:171
CESkyCoord
Definition:
CESkyCoord.h:49
test_CEPlanet::test_uranus
virtual bool test_uranus(void)
Test Uranus.
Definition:
test_CEPlanet.cpp:298
test_CEPlanet::test_CEPlanet
test_CEPlanet()
Default constructor.
Definition:
test_CEPlanet.cpp:29
CEObserver.h
test_CEPlanet::~test_CEPlanet
virtual ~test_CEPlanet()
Destructor.
Definition:
test_CEPlanet.cpp:52
test_CEPlanet::test_construct
virtual bool test_construct(void)
Test constructors.
Definition:
test_CEPlanet.cpp:78
test_CEPlanet::test_saturn
virtual bool test_saturn(void)
Test Saturn.
Definition:
test_CEPlanet.cpp:271
CEPlanet.h
CEDate.h
test_CEPlanet::runtests
virtual bool runtests()
Run tests.
Definition:
test_CEPlanet.cpp:61
test_CEPlanet::test_neptune
virtual bool test_neptune(void)
Test Neptune.
Definition:
test_CEPlanet.cpp:325
CEPlanet
Definition:
CEPlanet.h:35
test_CEPlanet::test_mercury
virtual bool test_mercury(void)
Test Mercury.
Definition:
test_CEPlanet.cpp:117
test_CEPlanet
Definition:
test_CEPlanet.h:29
CEObserver
Definition:
CEObserver.h:28
test_CEPlanet::test_venus
virtual bool test_venus(void)
Test Venus.
Definition:
test_CEPlanet.cpp:144
test_CEPlanet::test_Planets
bool test_Planets(void)
Compare.
Definition:
test_CEPlanet.cpp:432
test_CEPlanet::test_planet
virtual bool test_planet(const CEPlanet &test_planet, const CESkyCoord &true_icrs, const CESkyCoord &true_obs, const std::vector< double > &true_pos, const std::vector< double > &true_vel)
Test parameters for a given planet.
Definition:
test_CEPlanet.cpp:357
Generated on Wed Aug 21 2019 12:14:12 for CppEphem by
1.8.16