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_psTime_01.c

    r12412 r12607  
    2323 *  @author  Eric Van Alst, MHPCC
    2424 *
    25  *  @version $Revision: 1.4 $  $Name: not supported by cvs2svn $
    26  *  @date  $Date: 2007-03-13 00:01:37 $
     25 *  @version $Revision: 1.5 $  $Name: not supported by cvs2svn $
     26 *  @date  $Date: 2007-03-27 22:52:02 $
    2727 *
    2828 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    187187        psMemId id = psMemGetId();
    188188        psF64 ut1Delta = psTimeGetUT1Delta(NULL, PS_IERS_B);
    189         ok_double(ut1Delta, NAN, "psTimeGetUT1Delta(NULL, PS_IERS_B) returned NAN");
     189        is_double(ut1Delta, NAN, "psTimeGetUT1Delta(NULL, PS_IERS_B) returned NAN");
    190190        ok(!psMemCheckLeaks (id, NULL, NULL, false), "no memory leaks");
    191191    }
     
    200200        time->leapsecond = false;
    201201        psF64 ut1Delta = psTimeGetUT1Delta(time, PS_IERS_B);
    202         ok_double(ut1Delta, NAN, "psTimeGetUT1Delta() returned NAN for incorrect time");
     202        is_double(ut1Delta, NAN, "psTimeGetUT1Delta() returned NAN for incorrect time");
    203203        psFree(time);
    204204        ok(!psMemCheckLeaks (id, NULL, NULL, false), "no memory leaks");
     
    214214        time->leapsecond = false;
    215215        psF64 ut1Delta = psTimeGetUT1Delta(time, -100);
    216         ok_double(ut1Delta, NAN, "psTimeGetUT1Delta(time, -100) returned NAN (incorrect bulletin)");
     216        is_double(ut1Delta, NAN, "psTimeGetUT1Delta(time, -100) returned NAN (incorrect bulletin)");
    217217        psFree(time);
    218218        ok(!psMemCheckLeaks (id, NULL, NULL, false), "no memory leaks");
     
    229229        psF64 ut1Delta = psTimeGetUT1Delta(time, PS_IERS_A);
    230230
    231         ok_double_tol(ut1Delta, testTime1UT1DeltaBullA, ERROR_TOL, "psTimeGetUT1Delta() produced the correct result: bulletin A");
     231        is_double_tol(ut1Delta, testTime1UT1DeltaBullA, ERROR_TOL, "psTimeGetUT1Delta() produced the correct result: bulletin A");
    232232
    233233        psFree(time);
     
    244244        psF64 ut1Delta = psTimeGetUT1Delta(time, PS_IERS_B);
    245245
    246         ok_double_tol(ut1Delta, testTime1UT1DeltaBullB, ERROR_TOL, "psTimeGetUT1Delta() produced the correct result: bulletin B");
     246        is_double_tol(ut1Delta, testTime1UT1DeltaBullB, ERROR_TOL, "psTimeGetUT1Delta() produced the correct result: bulletin B");
    247247
    248248        psFree(time);
     
    262262        psF64 ut1Delta = psTimeGetUT1Delta(time,PS_IERS_A);
    263263
    264         ok_double_tol(ut1Delta, testTime2UT1DeltaBullA, ERROR_TOL, "psTimeGetUT1Delta() produced the correct result: bulletin B");
     264        is_double_tol(ut1Delta, testTime2UT1DeltaBullA, ERROR_TOL, "psTimeGetUT1Delta() produced the correct result: bulletin B");
    265265
    266266        psFree(time);
     
    280280        psF64 ut1Delta = psTimeGetUT1Delta(time,PS_IERS_B);
    281281
    282         ok_double_tol(ut1Delta, testTime2UT1DeltaBullB, ERROR_TOL, "psTimeGetUT1Delta() produced the correct result: bulletin B");
     282        is_double_tol(ut1Delta, testTime2UT1DeltaBullB, ERROR_TOL, "psTimeGetUT1Delta() produced the correct result: bulletin B");
    283283
    284284        psFree(time);
     
    298298        psF64 ut1Delta = psTimeGetUT1Delta(time,PS_IERS_A);
    299299
    300         ok_double_tol(ut1Delta, testTime3UT1DeltaBullA, ERROR_TOL, "psTimeGetUT1Delta() produced the correct result: bulletin B");
     300        is_double_tol(ut1Delta, testTime3UT1DeltaBullA, ERROR_TOL, "psTimeGetUT1Delta() produced the correct result: bulletin B");
    301301
    302302        psFree(time);
     
    315315        psF64 ut1Delta = psTimeGetUT1Delta(time,PS_IERS_B);
    316316
    317         ok_double_tol(ut1Delta, testTime3UT1DeltaBullB, ERROR_TOL, "psTimeGetUT1Delta() produced the correct result: bulletin B");
     317        is_double_tol(ut1Delta, testTime3UT1DeltaBullB, ERROR_TOL, "psTimeGetUT1Delta() produced the correct result: bulletin B");
    318318
    319319        psFree(time);
     
    329329        psMemId id = psMemGetId();
    330330        psF64 mjd = psTimeToMJD(NULL);
    331         ok_double(mjd, NAN, "psTimeToMJD(NULL) returned NULL");
     331        is_double(mjd, NAN, "psTimeToMJD(NULL) returned NULL");
    332332        ok(!psMemCheckLeaks (id, NULL, NULL, false), "no memory leaks");
    333333    }
     
    346346        time->leapsecond = false;
    347347        psF64 mjd = psTimeToMJD(time);
    348         ok_double(mjd, NAN, "psTimeToMJD() returned NAN for incorrect time");
     348        is_double(mjd, NAN, "psTimeToMJD() returned NAN for incorrect time");
    349349        psFree(time);
    350350        ok(!psMemCheckLeaks (id, NULL, NULL, false), "no memory leaks");
     
    361361        psF64 mjd = psTimeToMJD(time);
    362362
    363         ok_double_tol(mjd, 53207.765929, ERROR_TOL, "psTimeToMJD() returned correct time after 1/1/1970 epoch");
     363        is_double_tol(mjd, 53207.765929, ERROR_TOL, "psTimeToMJD() returned correct time after 1/1/1970 epoch");
    364364
    365365        psFree(time);
     
    376376        psF64 mjd = psTimeToMJD(time);
    377377
    378         ok_double_tol(mjd, testTime4MJD, ERROR_TOL, "psTimeToMJD() returned correct time before 1/1/1970 epoch");
     378        is_double_tol(mjd, testTime4MJD, ERROR_TOL, "psTimeToMJD() returned correct time before 1/1/1970 epoch");
    379379
    380380        psFree(time);
     
    391391        psF64 jd = psTimeToJD(NULL);
    392392
    393         ok_double(jd, NAN, "psTimeToJD(NULL) returned NULL");
     393        is_double(jd, NAN, "psTimeToJD(NULL) returned NULL");
    394394        ok(!psMemCheckLeaks (id, NULL, NULL, false), "no memory leaks");
    395395    }
     
    407407        psF64 jd = psTimeToJD(time);
    408408       
    409         ok_double(jd, NAN, "psTimeToJD() returned NAN for incorrect time");
     409        is_double(jd, NAN, "psTimeToJD() returned NAN for incorrect time");
    410410
    411411        psFree(time);
     
    423423        psF64 jd = psTimeToJD(time);
    424424
    425         ok_double_tol(jd, 2453208.265929, ERROR_TOL, "psTimeToJD() returned the correct time after 1/1/1970 epoch");
     425        is_double_tol(jd, 2453208.265929, ERROR_TOL, "psTimeToJD() returned the correct time after 1/1/1970 epoch");
    426426
    427427        psFree(time);
     
    439439        psF64 jd = psTimeToJD(time);
    440440
    441         ok_double_tol(jd, testTime4JD, ERROR_TOL, "psTimeToJD() returned the correct time before 1/1/1970 epoch");
     441        is_double_tol(jd, testTime4JD, ERROR_TOL, "psTimeToJD() returned the correct time before 1/1/1970 epoch");
    442442
    443443        psFree(time);
     
    528528        char *timeStr = psTimeToISO(time);
    529529
    530         ok_str(timeStr, testTime1Str, "psTimeToISO(time) returned correct time (no leapsecond)");
     530        is_str(timeStr, testTime1Str, "psTimeToISO(time) returned correct time (no leapsecond)");
    531531
    532532        psFree(timeStr);
     
    547547        char *timeStr = psTimeToISO(time);
    548548
    549         ok_str(timeStr, testTime1StrLeap, "psTimeToISO(time) returned correct time (with leapsecond)");
     549        is_str(timeStr, testTime1StrLeap, "psTimeToISO(time) returned correct time (with leapsecond)");
    550550
    551551        psFree(timeStr);
Note: See TracChangeset for help on using the changeset viewer.