IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 12395


Ignore:
Timestamp:
Mar 9, 2007, 5:25:48 PM (19 years ago)
Author:
jhoblitt
Message:

fix 2 failing tests (logic errors)
change 2 failing tests to use ok_str() so it's obvious why they are failing

File:
1 edited

Legend:

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

    r11180 r12395  
    2323 *  @author  Eric Van Alst, MHPCC
    2424 *
    25  *  @version $Revision: 1.1 $  $Name: not supported by cvs2svn $
    26  *  @date  $Date: 2007-01-19 20:42:21 $
     25 *  @version $Revision: 1.2 $  $Name: not supported by cvs2svn $
     26 *  @date  $Date: 2007-03-10 03:25:48 $
    2727 *
    2828 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    506506        time->nsec = testTime1NanosecondsUTC;
    507507        char *timeStr = psTimeToISO(time);
    508         ok(strcmp(timeStr,testTime1Str) == 0, "psTimeToISO(time) returned correct time (no leapsecond)");
     508        ok_str(timeStr, testTime1Str, "psTimeToISO(time) returned correct time (no leapsecond)");
    509509        psFree(timeStr);
    510510        psFree(time);
     
    523523        time->leapsecond = true;
    524524        char *timeStr = psTimeToISO(time);
    525         ok(strcmp(timeStr,testTime1StrLeap) == 0, "psTimeToISO(time) returned correct time (with leapsecond)");
     525        ok_str(timeStr, testTime1StrLeap, "psTimeToISO(time) returned correct time (with leapsecond)");
    526526        psFree(timeStr);
    527527        psFree(time);
     
    639639        psMemId id = psMemGetId();
    640640        psTime *time = psTimeFromJD(testTime4JD);
    641         ok(time->type != PS_TIME_TAI, "psTimeFromJD() returned the correct type");
    642         ok(time->sec != testTime4SecondsUTC, "psTimeFromJD() returned the correct ->sec");
     641        is_int(time->type, PS_TIME_TAI, "psTimeFromJD() returned the correct type");
     642        is_int(time->sec, testTime4SecondsUTC, "psTimeFromJD() returned the correct ->sec");
    643643        psFree(time);
    644644        ok(!psMemCheckLeaks (id, NULL, NULL, false), "no memory leaks");
Note: See TracChangeset for help on using the changeset viewer.