60 std::cout <<
"\nTesting CEObserver:\n";
82 test_double(test1.
Latitude_Rad(), 0.0, __func__, __LINE__);
128 test_double(obs.
Latitude_Deg(), lat, __func__, __LINE__);
138 test_double(obs.
Elevation_m(), elev, __func__, __LINE__);
141 double utc_offset = obs.
UTCOffset() + 2.5;
143 test_double(obs.
UTCOffset(), utc_offset, __func__, __LINE__);
147 std::vector<double> earth_pos_m = {6378137.00000, 0.0, 0.0};
149 test_vect(test_pos_m, earth_pos_m, __func__, __LINE__);
163 double old_tol(DblTol());
174 test_double(obs.
Temperature_K(), temp_K, __func__, __LINE__);
175 test_double(obs.
Temperature_C(), temp_C, __func__, __LINE__);
176 test_double(obs.
Temperature_F(), temp_F, __func__, __LINE__);
181 test_double(obs.
Temperature_F(), temp_F, __func__, __LINE__);
184 test_double(obs.
Temperature_C(), temp_C, __func__, __LINE__);
189 test_double(obs.
Pressure_hPa(), pres, __func__, __LINE__);
193 if (relHumidity == 0.25) {
204 test_double(obs.
Wavelength_um(), wavelength, __func__, __LINE__);
207 test(obs.
print().size() > 0, __func__, __LINE__);
223 double old_tol(DblTol());
231 test_vect(local, {offset+12, 0.0, 0.0, 0.0}, __func__, __LINE__);
232 test_vect(utc, {12.0, 0.0, 0.0, 0.0}, __func__, __LINE__);
242 int main(
int argc,
char** argv)