Changeset 2966 for trunk/psLib/test/astronomy/tst_psTime_03.c
- Timestamp:
- Jan 12, 2005, 3:58:10 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/astronomy/tst_psTime_03.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/astronomy/tst_psTime_03.c
r2964 r2966 19 19 * @author Ross Harman, MHPCC 20 20 * 21 * @version $Revision: 1. 9$ $Name: not supported by cvs2svn $22 * @date $Date: 2005-01-13 01: 35:30 $21 * @version $Revision: 1.10 $ $Name: not supported by cvs2svn $ 22 * @date $Date: 2005-01-13 01:58:10 $ 23 23 * 24 24 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 130 130 printFooter(stdout, "psTime", "Test F - Delta two times with underflow in microseconds", true); 131 131 132 // Test F1 - Delta two times in UTC type 133 printPositiveTestHeader(stdout,"psTime","Test F1 - Delta two UTC times"); 134 psTime *time20a = NULL; 135 psTime *time20b = NULL; 136 psF64 timeOut20 = 0.0; 137 time20a = psTimeAlloc(PS_TIME_UTC); 138 time20b = psTimeAlloc(PS_TIME_UTC); 139 time20a->sec = 1090434113; 140 time20a->usec = 272044; 141 time20b->sec = 1090434112; 142 time20b->usec = 272044; 143 timeOut20 = psTimeDelta(time20a, time20b); 144 if(fabs(timeOut20-1.000000000) > FLT_EPSILON) { 145 printf("ERROR: Incorrect delta, %lf. Expected -1.00000\n",timeOut20); 146 } 147 printFooter(stdout,"psTime","Test F1 - Delta two UTC times",true); 132 148 133 149 // Test G - Add two times across leapsecond boundary … … 185 201 psFree(time8a); 186 202 psFree(time8b); 203 psFree(time20a); 204 psFree(time20b); 187 205 if (psMemCheckLeaks(0, NULL, stdout,false)) { 188 206 psError(PS_ERR_UNKNOWN,true,"Memory leaks detected.");
Note:
See TracChangeset
for help on using the changeset viewer.
