Changeset 12607 for trunk/psLib/test/astro/tap_psEarthOrientation_motion.c
- Timestamp:
- Mar 27, 2007, 12:52:03 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/astro/tap_psEarthOrientation_motion.c
r12513 r12607 114 114 skip_start( ep == NULL, 3, 115 115 "Skipping 3 tests because psEarthPole is NULL!"); 116 ok_double_tol(ep->x, x, 0.1,116 is_double_tol(ep->x, x, 0.1, 117 117 "psEOC_PrecessionModel: return valid EarthPole for valid inputs (x)."); 118 ok_double_tol(ep->y, y, 0.1,118 is_double_tol(ep->y, y, 0.1, 119 119 "psEOC_PrecessionModel: return valid EarthPole for valid inputs (y)."); 120 ok_double_tol(ep->s, s, 0.1,120 is_double_tol(ep->s, s, 0.1, 121 121 "psEOC_PrecessionModel: return valid EarthPole for valid inputs (s)."); 122 122 skip_end(); … … 198 198 skip_start( polarMotion == NULL, 3, 199 199 "Skipping 3 tests because psEarthPole is NULL!"); 200 ok_double_tol(polarMotion->x, x, 0.1,200 is_double_tol(polarMotion->x, x, 0.1, 201 201 "psEOC_GetPolarMotion: return valid EarthPole for valid inputs " 202 202 "(x) - IERS B."); 203 ok_double_tol(polarMotion->y, y, 0.1,203 is_double_tol(polarMotion->y, y, 0.1, 204 204 "psEOC_GetPolarMotion: return valid EarthPole for valid inputs " 205 205 "(y) - IERS B."); 206 ok_double_tol(polarMotion->s, s, 0.1,206 is_double_tol(polarMotion->s, s, 0.1, 207 207 "psEOC_GetPolarMotion: return valid EarthPole for valid inputs " 208 208 "(s) - IERS B."); … … 219 219 skip_start( polarMotion == NULL, 3, 220 220 "Skipping 3 tests because psEarthPole is NULL!"); 221 ok_double_tol(polarMotion->x, x, 0.1,221 is_double_tol(polarMotion->x, x, 0.1, 222 222 "psEOC_GetPolarMotion: return valid EarthPole for valid inputs " 223 223 "(x) - IERS A."); 224 ok_double_tol(polarMotion->y, y, 0.1,224 is_double_tol(polarMotion->y, y, 0.1, 225 225 "psEOC_GetPolarMotion: return valid EarthPole for valid inputs " 226 226 "(y) - IERS A."); 227 ok_double_tol(polarMotion->s, s, 0.1,227 is_double_tol(polarMotion->s, s, 0.1, 228 228 "psEOC_GetPolarMotion: return valid EarthPole for valid inputs " 229 229 "(s) - IERS A."); … … 289 289 skip_start( out == NULL, 4, 290 290 "Skipping 4 tests because psSphereRot output is NULL!"); 291 ok_double_tol( out->q0, q0, 0.0001,291 is_double_tol( out->q0, q0, 0.0001, 292 292 "psSphereRot_CEOtoGCRS: return correct psSphereRot for valid input (q0)."); 293 ok_double_tol( out->q1, q1, 0.0001,293 is_double_tol( out->q1, q1, 0.0001, 294 294 "psSphereRot_CEOtoGCRS: return correct psSphereRot for valid input (q1)."); 295 ok_double_tol( out->q2, q2, 0.0001,295 is_double_tol( out->q2, q2, 0.0001, 296 296 "psSphereRot_CEOtoGCRS: return correct psSphereRot for valid input (q2)."); 297 ok_double_tol( out->q3, -q3, 0.0001,297 is_double_tol( out->q3, -q3, 0.0001, 298 298 "psSphereRot_CEOtoGCRS: return correct psSphereRot for valid input (q3)."); 299 299 skip_end(); … … 355 355 psSphere *result = psSphereRotApply(NULL, earthRot, obj); 356 356 psCube *cube = psSphereToCube(result); 357 ok_double_tol( cube->x, x, 0.0001,357 is_double_tol( cube->x, x, 0.0001, 358 358 "psSphereRot_TEOtoCEO: return NULL for NULL time input. (x)"); 359 ok_double_tol( cube->y, y, 0.0001,359 is_double_tol( cube->y, y, 0.0001, 360 360 "psSphereRot_TEOtoCEO: return NULL for NULL time input. (y)"); 361 ok_double_tol( cube->z, z, 0.0001,361 is_double_tol( cube->z, z, 0.0001, 362 362 "psSphereRot_TEOtoCEO: return NULL for NULL time input. (z)"); 363 363 psFree(earthRot); … … 390 390 skip_start( out == NULL, 4, 391 391 "Skipping 4 tests because psSphereRot output is NULL!"); 392 ok_double_tol( out->q0, q0, 0.0001,392 is_double_tol( out->q0, q0, 0.0001, 393 393 "psSphereRot_ITRStoTEO: return correct psSphereRot for valid input (q0)."); 394 ok_double_tol( out->q1, q1, 0.0001,394 is_double_tol( out->q1, q1, 0.0001, 395 395 "psSphereRot_ITRStoTEO: return correct psSphereRot for valid input (q1)."); 396 ok_double_tol( out->q2, q2, 0.0001,396 is_double_tol( out->q2, q2, 0.0001, 397 397 "psSphereRot_ITRStoTEO: return correct psSphereRot for valid input (q2)."); 398 ok_double_tol( out->q3, q3, 0.0001,398 is_double_tol( out->q3, q3, 0.0001, 399 399 "psSphereRot_ITRStoTEO: return correct psSphereRot for valid input (q3)."); 400 400 skip_end(); … … 462 462 skip_start( rot == NULL || outputCoord == NULL, 2, 463 463 "Skipping 2 tests because psSphereRot output is NULL!"); 464 ok_double_tol( outputCoord->r, SPHERE_PRECESS_TP1_EXPECT_R, ERROR_TOL,464 is_double_tol( outputCoord->r, SPHERE_PRECESS_TP1_EXPECT_R, ERROR_TOL, 465 465 "psSpherePrecess: return correct psSphereRot for valid" 466 466 " inputs and PS_PRECESS_ROUGH mode. (r)"); 467 ok_double_tol( outputCoord->d, SPHERE_PRECESS_TP1_EXPECT_D, ERROR_TOL,467 is_double_tol( outputCoord->d, SPHERE_PRECESS_TP1_EXPECT_D, ERROR_TOL, 468 468 "psSpherePrecess: return correct psSphereRot for valid" 469 469 " inputs and PS_PRECESS_ROUGH mode. (d)"); … … 485 485 skip_start( rot == NULL || outputCoord == NULL, 2, 486 486 "Skipping 2 tests because psSphereRot output is NULL!"); 487 ok_double_tol( outputCoord->r, SPHERE_PRECESS_TP2_EXPECT_R, ERROR_TOL,487 is_double_tol( outputCoord->r, SPHERE_PRECESS_TP2_EXPECT_R, ERROR_TOL, 488 488 "psSpherePrecess: return correct psSphereRot for valid" 489 489 " inputs and PS_PRECESS_ROUGH mode. (r)"); 490 ok_double_tol( outputCoord->d, SPHERE_PRECESS_TP2_EXPECT_D, ERROR_TOL,490 is_double_tol( outputCoord->d, SPHERE_PRECESS_TP2_EXPECT_D, ERROR_TOL, 491 491 "psSpherePrecess: return correct psSphereRot for valid" 492 492 " inputs and PS_PRECESS_ROUGH mode. (d)"); … … 508 508 skip_start( rot == NULL || outputCoord == NULL, 2, 509 509 "Skipping 2 tests because psSphereRot output is NULL!"); 510 ok_double_tol( outputCoord->r, SPHERE_PRECESS_TP3_EXPECT_R, ERROR_TOL,510 is_double_tol( outputCoord->r, SPHERE_PRECESS_TP3_EXPECT_R, ERROR_TOL, 511 511 "psSpherePrecess: return correct psSphereRot for valid" 512 512 " inputs and PS_PRECESS_ROUGH mode. (r)"); 513 ok_double_tol( outputCoord->d, SPHERE_PRECESS_TP3_EXPECT_D, ERROR_TOL,513 is_double_tol( outputCoord->d, SPHERE_PRECESS_TP3_EXPECT_D, ERROR_TOL, 514 514 "psSpherePrecess: return correct psSphereRot for valid" 515 515 " inputs and PS_PRECESS_ROUGH mode. (d)");
Note:
See TracChangeset
for help on using the changeset viewer.
