IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 12412 for trunk/psLib


Ignore:
Timestamp:
Mar 12, 2007, 2:01:37 PM (19 years ago)
Author:
jhoblitt
Message:

use ok_double(foo, NAN,... instead of ok(isnan(foo),...

File:
1 edited

Legend:

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

    r12411 r12412  
    2323 *  @author  Eric Van Alst, MHPCC
    2424 *
    25  *  @version $Revision: 1.3 $  $Name: not supported by cvs2svn $
    26  *  @date  $Date: 2007-03-12 23:19:41 $
     25 *  @version $Revision: 1.4 $  $Name: not supported by cvs2svn $
     26 *  @date  $Date: 2007-03-13 00:01:37 $
    2727 *
    2828 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    127127const psS32 testTime8TmSec           = 0;
    128128
    129 psS32 main(psS32 argc, char* argv[])
     129int main(int argc, char* argv[])
    130130{
    131131    psLogSetFormat("HLNM");
     
    187187        psMemId id = psMemGetId();
    188188        psF64 ut1Delta = psTimeGetUT1Delta(NULL, PS_IERS_B);
    189         ok(isnan(ut1Delta), "psTimeGetUT1Delta(NULL, PS_IERS_B) returned NAN");
     189        ok_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(isnan(ut1Delta), "psTimeGetUT1Delta() returned NAN for incorrect time");
     202        ok_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(isnan(ut1Delta), "psTimeGetUT1Delta(time, -100) returned NAN (incorrect bulletin)");
     216        ok_double(ut1Delta, NAN, "psTimeGetUT1Delta(time, -100) returned NAN (incorrect bulletin)");
    217217        psFree(time);
    218218        ok(!psMemCheckLeaks (id, NULL, NULL, false), "no memory leaks");
     
    329329        psMemId id = psMemGetId();
    330330        psF64 mjd = psTimeToMJD(NULL);
    331         ok(isnan(mjd), "psTimeToMJD(NULL) returned NULL");
     331        ok_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(isnan(mjd), "psTimeToMJD() returned NAN for incorrect time");
     348        ok_double(mjd, NAN, "psTimeToMJD() returned NAN for incorrect time");
    349349        psFree(time);
    350350        ok(!psMemCheckLeaks (id, NULL, NULL, false), "no memory leaks");
     
    391391        psF64 jd = psTimeToJD(NULL);
    392392
    393         ok(isnan(jd), "psTimeToJD(NULL) returned NULL");
     393        ok_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(isnan(jd), "psTimeToJD() returned NAN for incorrect time");
     409        ok_double(jd, NAN, "psTimeToJD() returned NAN for incorrect time");
    410410
    411411        psFree(time);
Note: See TracChangeset for help on using the changeset viewer.