CppEphem
test_CECoordinates.h
Go to the documentation of this file.
1 /***************************************************************************
2  * test_CECoordinates.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_CECoordinates_h
23 #define test_CECoordinates_h
24 
25 #include "CECoordinates.h"
26 #include "CEDate.h"
27 #include "CEObserver.h"
28 #include "CETestSuite.h"
29 
30 class test_CECoordinates : public CETestSuite {
31 public:
33  virtual ~test_CECoordinates();
34 
35  virtual bool runtests();
36 
37  /****** METHODS ******/
38  virtual bool test_construct(void);
39  virtual bool test_copy(void);
40  virtual bool test_HmsDms2Angle(void);
41 
42  virtual bool test_Convert2Icrs(void);
43  virtual bool test_Convert2Cirs(void);
44  virtual bool test_Convert2Galactic(void);
45  virtual bool test_Convert2Observed(void);
46 
47  virtual bool test_AngularSeparation(void);
48  virtual bool test_ConvertTo(void);
49 private:
50 
51  virtual bool test_coords(const CECoordinates& test,
52  const CECoordinates& expected,
53  const std::string& func,
54  const int& line);
55 
56  // Private coordin
63 };
64 
65 #endif /* test_CECoordinates_h */
test_CECoordinates::base_obs_
CECoordinates base_obs_
Definition: test_CECoordinates.h:77
test_CECoordinates::test_CECoordinates
test_CECoordinates()
Default constructor.
Definition: test_CECoordinates.cpp:30
test_CECoordinates::test_Convert2Cirs
virtual bool test_Convert2Cirs(void)
Test ability to set coordinates as CIRS.
Definition: test_CECoordinates.cpp:183
CEDate
Definition: CEDate.h:43
test_CECoordinates::test_copy
virtual bool test_copy(void)
Test ability to copy coordinates.
Definition: test_CECoordinates.cpp:148
test_CECoordinates::test_HmsDms2Angle
virtual bool test_HmsDms2Angle(void)
Test conversions between HMS and DMS to angle and back.
Definition: test_CECoordinates.cpp:502
test_CECoordinates
Definition: test_CECoordinates.h:29
CEObserver.h
test_CECoordinates::~test_CECoordinates
virtual ~test_CECoordinates()
Destructor.
Definition: test_CECoordinates.cpp:69
test_CECoordinates::runtests
virtual bool runtests()
Run tests.
Definition: test_CECoordinates.cpp:78
test_CECoordinates::base_icrs_
CECoordinates base_icrs_
Definition: test_CECoordinates.h:75
CEDate.h
test_CECoordinates::base_observer_
CEObserver base_observer_
Definition: test_CECoordinates.h:79
test_CECoordinates::test_Convert2Icrs
virtual bool test_Convert2Icrs(void)
Test ability to convert to ICRS.
Definition: test_CECoordinates.cpp:269
CECoordinates.h
test_CECoordinates::base_date_
CEDate base_date_
Definition: test_CECoordinates.h:78
test_CECoordinates::base_gal_
CECoordinates base_gal_
Definition: test_CECoordinates.h:76
test_CECoordinates::test_construct
virtual bool test_construct(void)
Test generic constructors.
Definition: test_CECoordinates.cpp:103
test_CECoordinates::test_ConvertTo
virtual bool test_ConvertTo(void)
Tests the CECoordinates::ConvrtTo methods.
Definition: test_CECoordinates.cpp:573
test_CECoordinates::test_coords
virtual bool test_coords(const CECoordinates &test, const CECoordinates &expected, const std::string &func, const int &line)
Tests two coordinates are equal and print some help if they aren't.
Definition: test_CECoordinates.cpp:608
CECoordinates
Definition: CECoordinates.h:48
CEObserver
Definition: CEObserver.h:28
test_CECoordinates::test_Convert2Galactic
virtual bool test_Convert2Galactic(void)
Test ability to convert to Galactic.
Definition: test_CECoordinates.cpp:329
test_CECoordinates::test_Convert2Observed
virtual bool test_Convert2Observed(void)
Test ability to convert to Observed.
Definition: test_CECoordinates.cpp:393
test_CECoordinates::base_cirs_
CECoordinates base_cirs_
Definition: test_CECoordinates.h:74
test_CECoordinates::test_AngularSeparation
virtual bool test_AngularSeparation(void)
Test computation of angular separation.
Definition: test_CECoordinates.cpp:544