Changeset 12412 for trunk/psLib
- Timestamp:
- Mar 12, 2007, 2:01:37 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/astro/tap_psTime_01.c (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/astro/tap_psTime_01.c
r12411 r12412 23 23 * @author Eric Van Alst, MHPCC 24 24 * 25 * @version $Revision: 1. 3$ $Name: not supported by cvs2svn $26 * @date $Date: 2007-03-1 2 23:19:41$25 * @version $Revision: 1.4 $ $Name: not supported by cvs2svn $ 26 * @date $Date: 2007-03-13 00:01:37 $ 27 27 * 28 28 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 127 127 const psS32 testTime8TmSec = 0; 128 128 129 psS32 main(psS32argc, char* argv[])129 int main(int argc, char* argv[]) 130 130 { 131 131 psLogSetFormat("HLNM"); … … 187 187 psMemId id = psMemGetId(); 188 188 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"); 190 190 ok(!psMemCheckLeaks (id, NULL, NULL, false), "no memory leaks"); 191 191 } … … 200 200 time->leapsecond = false; 201 201 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"); 203 203 psFree(time); 204 204 ok(!psMemCheckLeaks (id, NULL, NULL, false), "no memory leaks"); … … 214 214 time->leapsecond = false; 215 215 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)"); 217 217 psFree(time); 218 218 ok(!psMemCheckLeaks (id, NULL, NULL, false), "no memory leaks"); … … 329 329 psMemId id = psMemGetId(); 330 330 psF64 mjd = psTimeToMJD(NULL); 331 ok (isnan(mjd), "psTimeToMJD(NULL) returned NULL");331 ok_double(mjd, NAN, "psTimeToMJD(NULL) returned NULL"); 332 332 ok(!psMemCheckLeaks (id, NULL, NULL, false), "no memory leaks"); 333 333 } … … 346 346 time->leapsecond = false; 347 347 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"); 349 349 psFree(time); 350 350 ok(!psMemCheckLeaks (id, NULL, NULL, false), "no memory leaks"); … … 391 391 psF64 jd = psTimeToJD(NULL); 392 392 393 ok (isnan(jd), "psTimeToJD(NULL) returned NULL");393 ok_double(jd, NAN, "psTimeToJD(NULL) returned NULL"); 394 394 ok(!psMemCheckLeaks (id, NULL, NULL, false), "no memory leaks"); 395 395 } … … 407 407 psF64 jd = psTimeToJD(time); 408 408 409 ok (isnan(jd), "psTimeToJD() returned NAN for incorrect time");409 ok_double(jd, NAN, "psTimeToJD() returned NAN for incorrect time"); 410 410 411 411 psFree(time);
Note:
See TracChangeset
for help on using the changeset viewer.
