Changeset 2808 for trunk/psLib/test/astronomy/tst_psTime_03.c
- Timestamp:
- Dec 23, 2004, 9:38:38 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/astronomy/tst_psTime_03.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/astronomy/tst_psTime_03.c
r2749 r2808 18 18 * @author Ross Harman, MHPCC 19 19 * 20 * @version $Revision: 1. 7$ $Name: not supported by cvs2svn $21 * @date $Date: 2004-12- 17 20:48:47$20 * @version $Revision: 1.8 $ $Name: not supported by cvs2svn $ 21 * @date $Date: 2004-12-23 19:38:38 $ 22 22 * 23 23 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 44 44 timeOut1 = psTimeMath(time1a, time1b); 45 45 if(timeOut1->sec!=2 && timeOut1->usec!=222222) { 46 printf("ERROR: Incorrect time, %lld:%u. Expected 2:222222\n", timeOut1->sec, timeOut1->usec);46 printf("ERROR: Incorrect time, %lld:%u. Expected 2:222222\n",(long long int)timeOut1->sec, timeOut1->usec); 47 47 } 48 48 printFooter(stdout, "psTime", "Test A - Add two times", true); … … 59 59 timeOut2 = psTimeMath(time2a, time2b); 60 60 if(timeOut2->sec!=12 && timeOut2->usec!=100002) { 61 printf("ERROR: Incorrect time, %lld:%u. Expected 12:100002\n", timeOut2->sec, timeOut2->usec);61 printf("ERROR: Incorrect time, %lld:%u. Expected 12:100002\n",(long long int)timeOut2->sec, timeOut2->usec); 62 62 } 63 63 printFooter(stdout, "psTime", "Test B - Add two times with overflow in microseconds", true); … … 74 74 timeOut3 = psTimeMath(time3a, time3b); 75 75 if(timeOut3->sec!=2 && timeOut3->usec!=222222) { 76 printf("ERROR: Incorrect time, %lld:%u. Expected 2:222222\n", timeOut3->sec, timeOut3->usec);76 printf("ERROR: Incorrect time, %lld:%u. Expected 2:222222\n",(long long int)timeOut3->sec, timeOut3->usec); 77 77 } 78 78 printFooter(stdout, "psTime", "Test C - Subtract two times", true); … … 89 89 timeOut4 = psTimeMath(time4a, time4b); 90 90 if(timeOut4->sec!=2 && timeOut4->usec!=999997) { 91 printf("ERROR: Incorrect time, %lld:%u. Expected 2:999997\n", timeOut4->sec, timeOut4->usec);91 printf("ERROR: Incorrect time, %lld:%u. Expected 2:999997\n",(long long int)timeOut4->sec, timeOut4->usec); 92 92 } 93 93 printFooter(stdout, "psTime", "Test D - Subtact two times with underflow in microseconds", true); … … 152 152 time8b = psTimeFromISOTime("1972-1-1T1:00:00.00"); 153 153 out = psTimeLeapseconds(time8a, time8b); 154 printf("%lld\n", out);154 printf("%lld\n", (long long int)out); 155 155 printFooter(stdout, "psTime", "Test H - Find number of leapseconds added between two times", true); 156 156
Note:
See TracChangeset
for help on using the changeset viewer.
