CppEphem
test_CESkyCoord.h
Go to the documentation of this file.
1 /***************************************************************************
2  * test_CESkyCoord.h: CppEphem *
3  * ----------------------------------------------------------------------- *
4  * Copyright © 2018 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_CESkyCoord_h
23 #define test_CESkyCoord_h
24 
25 #include "CESkyCoord.h"
26 #include "CEDate.h"
27 #include "CEObserver.h"
28 #include "CETestSuite.h"
29 
30 class test_CESkyCoord : public CETestSuite {
31 public:
33  virtual ~test_CESkyCoord();
34 
35  virtual bool runtests();
36 
37  /****** METHODS ******/
38  virtual bool test_construct(void);
39  virtual bool test_copy(void);
40 
41  virtual bool test_Convert2Icrs(void);
42  virtual bool test_Convert2Cirs(void);
43  virtual bool test_Convert2Galactic(void);
44  virtual bool test_Convert2Observed(void);
45  virtual bool test_Convert2Ecliptic(void);
46 
47  virtual bool test_AngularSeparation(void);
48  virtual bool test_ConvertTo(void);
49 private:
50 
51  virtual bool test_coords(const CESkyCoord& test,
52  const CESkyCoord& expected,
53  const std::string& func,
54  const int& line);
55 
56  // Private coordin
64 };
65 
66 #endif /* test_CESkyCoord_h */
test_CESkyCoord::test_copy
virtual bool test_copy(void)
Test ability to copy coordinates.
Definition: test_CESkyCoord.cpp:148
test_CESkyCoord::~test_CESkyCoord
virtual ~test_CESkyCoord()
Destructor.
Definition: test_CESkyCoord.cpp:73
test_CESkyCoord::test_ConvertTo
virtual bool test_ConvertTo(void)
Tests the CESkyCoord::ConvertTo methods.
Definition: test_CESkyCoord.cpp:428
CEDate
Definition: CEDate.h:43
CESkyCoord
Definition: CESkyCoord.h:49
test_CESkyCoord::test_Convert2Icrs
virtual bool test_Convert2Icrs(void)
Test ability to convert to ICRS.
Definition: test_CESkyCoord.cpp:224
CEObserver.h
test_CESkyCoord::test_construct
virtual bool test_construct(void)
Test generic constructors.
Definition: test_CESkyCoord.cpp:107
test_CESkyCoord::base_cirs_
CESkyCoord base_cirs_
Definition: test_CESkyCoord.h:74
test_CESkyCoord::test_Convert2Cirs
virtual bool test_Convert2Cirs(void)
Test ability to set coordinates as CIRS.
Definition: test_CESkyCoord.cpp:183
test_CESkyCoord
Definition: test_CESkyCoord.h:29
test_CESkyCoord::base_ecl_
CESkyCoord base_ecl_
Definition: test_CESkyCoord.h:78
CEDate.h
test_CESkyCoord::test_Convert2Galactic
virtual bool test_Convert2Galactic(void)
Test ability to convert to Galactic.
Definition: test_CESkyCoord.cpp:264
test_CESkyCoord::base_obs_
CESkyCoord base_obs_
Definition: test_CESkyCoord.h:77
test_CESkyCoord::base_observer_
CEObserver base_observer_
Definition: test_CESkyCoord.h:80
test_CESkyCoord::runtests
virtual bool runtests()
Run tests.
Definition: test_CESkyCoord.cpp:82
test_CESkyCoord::test_coords
virtual bool test_coords(const CESkyCoord &test, const CESkyCoord &expected, const std::string &func, const int &line)
Tests two coordinates are equal and print some help if they aren't.
Definition: test_CESkyCoord.cpp:463
test_CESkyCoord::test_AngularSeparation
virtual bool test_AngularSeparation(void)
Test computation of angular separation.
Definition: test_CESkyCoord.cpp:387
test_CESkyCoord::test_Convert2Ecliptic
virtual bool test_Convert2Ecliptic(void)
Test ability to convert to Ecliptic.
Definition: test_CESkyCoord.cpp:349
test_CESkyCoord::base_icrs_
CESkyCoord base_icrs_
Definition: test_CESkyCoord.h:75
test_CESkyCoord::test_CESkyCoord
test_CESkyCoord()
Default constructor.
Definition: test_CESkyCoord.cpp:31
test_CESkyCoord::test_Convert2Observed
virtual bool test_Convert2Observed(void)
Test ability to convert to Observed.
Definition: test_CESkyCoord.cpp:305
CEObserver
Definition: CEObserver.h:28
test_CESkyCoord::base_date_
CEDate base_date_
Definition: test_CESkyCoord.h:79
CESkyCoord.h
test_CESkyCoord::base_gal_
CESkyCoord base_gal_
Definition: test_CESkyCoord.h:76