IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 2932


Ignore:
Timestamp:
Jan 7, 2005, 2:12:44 PM (22 years ago)
Author:
gusciora
Message:

Added tests for offset unt types.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/astronomy/tst_psCoord.c

    r2930 r2932  
    66*  @author GLG, MHPCC
    77*
    8 *  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
    9 *  @date $Date: 2005-01-07 23:52:00 $
     8*  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
     9*  @date $Date: 2005-01-08 00:12:44 $
    1010*
    1111*  XXX: Must test psSpherePrecess.
    1212*  XXX: psSphereSetOffset(&position1, &offset, PS_LINEAR, 0) doesn't work?
     13*  XXX: Test with a bad offfset unit type in the SphereGet/SetOffset() functions.
    1314*
    1415*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    986987
    987988    printf("-------------------------------------------------------------------\n");
     989    printf("Calling psSphereGetOffset() with bogus offset units.  Should generate error, return NULL.\n");
     990    offset = psSphereGetOffset(&position1, &position2, PS_SPHERICAL, 0x54321);
     991    if (offset != NULL) {
     992        printf("TEST ERROR: psSphereGetOffset() did not return NULL.\n");
     993        testStatus = false;
     994        offset = NULL;
     995    }
     996
     997    printf("-------------------------------------------------------------------\n");
    988998    return(testStatus);
    989999}
     
    10861096
    10871097    printf("-------------------------------------------------------------------\n");
     1098    printf("Calling psSphereSetOffset() with bogus offset unit.  Should generate error, return NULL.\n");
     1099    position2 = psSphereSetOffset(&position1, &offset, PS_SPHERICAL, 0x54321);
     1100    if (position2 != NULL) {
     1101        printf("TEST ERROR: psSphereSetOffset() did not return NULL.\n");
     1102        testStatus = false;
     1103        position2 = NULL;
     1104    }
     1105
     1106    printf("-------------------------------------------------------------------\n");
    10881107    return(testStatus);
    10891108}
Note: See TracChangeset for help on using the changeset viewer.