IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 18, 2005, 7:03:48 PM (21 years ago)
Author:
desonia
Message:

modified tests to match new psRegion functions.

File:
1 edited

Legend:

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

    r3883 r3976  
    55*  @author GLG, MHPCC
    66*
    7 *  @version $Revision: 1.27 $ $Name: not supported by cvs2svn $
    8 *  @date $Date: 2005-05-11 22:00:35 $
     7*  @version $Revision: 1.28 $ $Name: not supported by cvs2svn $
     8*  @date $Date: 2005-05-19 05:03:48 $
    99*
    1010* XXX: Must test
     
    719719                                    psPlaneTransform *trans3 = NULL;
    720720                                    setCoeffs(trans1, trans2);
    721                                     trans3 = psPlaneTransformCombine(NULL, trans1, trans2);
     721                                    trans3 = psPlaneTransformCombine(NULL, trans1, trans2,psRegionSet(NAN,NAN,NAN,NAN),0);
     722                                    //XXX: the last two parameters are bogus.  Needs to change.  -rdd
    722723
    723724                                    if (trans3 == NULL) {
     
    749750    printf("----------------------------------------------------------------------------------\n");
    750751    printf("Calling psPlaneTransformCombine with NULL trans1.  Should generate error and return NULL.\n");
    751     trans3 = psPlaneTransformCombine(NULL, NULL, trans2);
     752    trans3 = psPlaneTransformCombine(NULL, NULL, trans2, psRegionSet(0,0,0,0), 10);
    752753    if (trans3 != NULL) {
    753754        printf("TEST ERROR: psPlaneTransformCombine() returned a non-NULL psPlaneTransform.\n");
     
    758759    printf("----------------------------------------------------------------------------------\n");
    759760    printf("Calling psPlaneTransformCombine with NULL trans2.  Should generate error and return NULL.\n");
    760     trans3 = psPlaneTransformCombine(NULL, trans1, NULL);
     761    trans3 = psPlaneTransformCombine(NULL, trans1, NULL, psRegionSet(0,0,0,0), 10);
    761762    if (trans3 != NULL) {
    762763        printf("TEST ERROR: psPlaneTransformCombine() returned a non-NULL psPlaneTransform.\n");
     
    908909    psPlaneTransform *trans = psPlaneTransformAlloc(2, 2);
    909910    psPlaneTransform *transOut = NULL;
    910     psRegion *myRegion = psRegionAlloc(1.0, 5.0, 1.0, 5.0);
     911    psRegion myRegion = psRegionSet(1.0, 5.0, 1.0, 5.0);
    911912
    912913    //
     
    931932    }
    932933
    933     printf("----------------------------------------------------------------------------------\n");
    934     printf("Calling psPlaneTransformInvert with NULL psRegion.  Should generate error and return NULL.\n");
    935     transOut = psPlaneTransformInvert(NULL, trans, NULL, 10);
    936     if (transOut != NULL) {
    937         printf("TEST ERROR: psPlaneTransformInvert() returned a non-NULL psPlaneTransform.\n");
    938         testStatus = false;
    939         psFree(transOut);
    940     }
    941934    printf("----------------------------------------------------------------------------------\n");
    942935    printf("Calling psPlaneTransformInvert with zero nSamples.  Should generate error and return NULL.\n");
     
    988981
    989982    psFree(trans);
    990     psFree(myRegion);
    991983
    992984    fflush(stdout);
Note: See TracChangeset for help on using the changeset viewer.