IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 27, 2007, 12:52:03 PM (19 years ago)
Author:
jhoblitt
Message:

s/is_float/is_float/g
s/is_float_tol/is_float_tol/g
s/is_double/is_double/g
s/is_double_tol/is_double_tol/g
s/is_str/is_str/g
s/is_strn/is_strn/g

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/astro/tap_psEarthOrientation_motion.c

    r12513 r12607  
    114114        skip_start(  ep == NULL, 3,
    115115                     "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,
    117117                      "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,
    119119                      "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,
    121121                      "psEOC_PrecessionModel:          return valid EarthPole for valid inputs (s).");
    122122        skip_end();
     
    198198        skip_start(  polarMotion == NULL, 3,
    199199                     "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,
    201201                      "psEOC_GetPolarMotion:          return valid EarthPole for valid inputs "
    202202                      "(x) - IERS B.");
    203         ok_double_tol(polarMotion->y, y, 0.1,
     203        is_double_tol(polarMotion->y, y, 0.1,
    204204                      "psEOC_GetPolarMotion:          return valid EarthPole for valid inputs "
    205205                      "(y) - IERS B.");
    206         ok_double_tol(polarMotion->s, s, 0.1,
     206        is_double_tol(polarMotion->s, s, 0.1,
    207207                      "psEOC_GetPolarMotion:          return valid EarthPole for valid inputs "
    208208                      "(s) - IERS B.");
     
    219219        skip_start(  polarMotion == NULL, 3,
    220220                     "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,
    222222                      "psEOC_GetPolarMotion:          return valid EarthPole for valid inputs "
    223223                      "(x) - IERS A.");
    224         ok_double_tol(polarMotion->y, y, 0.1,
     224        is_double_tol(polarMotion->y, y, 0.1,
    225225                      "psEOC_GetPolarMotion:          return valid EarthPole for valid inputs "
    226226                      "(y) - IERS A.");
    227         ok_double_tol(polarMotion->s, s, 0.1,
     227        is_double_tol(polarMotion->s, s, 0.1,
    228228                      "psEOC_GetPolarMotion:          return valid EarthPole for valid inputs "
    229229                      "(s) - IERS A.");
     
    289289        skip_start(  out == NULL, 4,
    290290                     "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,
    292292                       "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,
    294294                       "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,
    296296                       "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,
    298298                       "psSphereRot_CEOtoGCRS:         return correct psSphereRot for valid input (q3).");
    299299        skip_end();
     
    355355        psSphere *result = psSphereRotApply(NULL, earthRot, obj);
    356356        psCube *cube = psSphereToCube(result);
    357         ok_double_tol( cube->x, x, 0.0001,
     357        is_double_tol( cube->x, x, 0.0001,
    358358                       "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,
    360360                       "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,
    362362                       "psSphereRot_TEOtoCEO:          return NULL for NULL time input. (z)");
    363363        psFree(earthRot);
     
    390390        skip_start(  out == NULL, 4,
    391391                     "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,
    393393                       "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,
    395395                       "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,
    397397                       "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,
    399399                       "psSphereRot_ITRStoTEO:         return correct psSphereRot for valid input (q3).");
    400400        skip_end();
     
    462462        skip_start( rot == NULL || outputCoord == NULL, 2,
    463463                    "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,
    465465                       "psSpherePrecess:               return correct psSphereRot for valid"
    466466                       " 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,
    468468                       "psSpherePrecess:               return correct psSphereRot for valid"
    469469                       " inputs and PS_PRECESS_ROUGH mode. (d)");
     
    485485        skip_start( rot == NULL || outputCoord == NULL, 2,
    486486                    "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,
    488488                       "psSpherePrecess:               return correct psSphereRot for valid"
    489489                       " 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,
    491491                       "psSpherePrecess:               return correct psSphereRot for valid"
    492492                       " inputs and PS_PRECESS_ROUGH mode. (d)");
     
    508508        skip_start( rot == NULL || outputCoord == NULL, 2,
    509509                    "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,
    511511                       "psSpherePrecess:               return correct psSphereRot for valid"
    512512                       " 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,
    514514                       "psSpherePrecess:               return correct psSphereRot for valid"
    515515                       " inputs and PS_PRECESS_ROUGH mode. (d)");
Note: See TracChangeset for help on using the changeset viewer.