54 std::cout <<
"\nTesting CENamespace:\n";
73 double sea_level_temp_K = 288.2;
77 double sea_level_temp_C = sea_level_temp_K - 273.15;
80 double sea_level_temp_F = (9.0/5.0) * sea_level_temp_C + 32.0;
97 test_double(
CppEphem::c(), DC * DAU / DAYSEC, __func__, __LINE__);
110 double temp_C(-273.15);
111 double temp_F(-459.67);
113 double old_tol = DblTol();
148 test_double(
CppEphem::xp(mjd), 0.043190 * DAS2R, __func__, __LINE__);
149 test_double(
CppEphem::yp(mjd), 0.377700 * DAS2R, __func__, __LINE__);
152 test_double(
CppEphem::dpsi(mjd), -0.252*DMAS2R, __func__, __LINE__);
153 test_double(
CppEphem::deps(mjd), -0.119*DMAS2R, __func__, __LINE__);
160 std::string file_path(CECORRFILEPATH);
161 std::string nut_file = file_path +
"/nutation.txt";
162 std::string ttut1_hist = file_path +
"/ttut1_historic.txt";
163 std::string ttut1_pred = file_path +
"/ttut1_predicted.txt";
170 std::string newfilename(
"testfilename.txt");
194 std::string test1 =
"hello world!";
198 std::vector<std::string> test2;
200 test_vect(test2, {
"hello",
"world!"}, __func__, __LINE__);
203 std::string test3 = CppEphem::StrOpt::join<std::string>(test2,
',');
204 test_string(test3,
"hello,world!", __func__, __LINE__);
207 std::vector<double> angles = {123, 34, 52, 0.542};
209 test_string(angle_str,
"123:34:52.54200000", __func__, __LINE__);
218 int main(
int argc,
char** argv)