IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 4, 2004, 3:45:30 PM (22 years ago)
Author:
evanalst
Message:

Add additional cases for null inputs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/image/tst_psImageStats02.c

    r1952 r1954  
    2525    psImage *tmpImage = NULL;
    2626    psImage *outImage = NULL;
     27    psImage *nullImage = NULL;
    2728    psPolynomial2D *my2DPoly = NULL;
    2829    psPolynomial2D *null2DPoly = NULL;
     
    102103    }
    103104
     105
     106    psLogMsg(__func__,PS_LOG_INFO,"Following should be an error message for NULL coeffs argument.");
     107    nullImage = psImageEvalPolynomial( outImage, NULL );
     108    if ( nullImage != NULL ) {
     109        printf("ERROR: psImageEvalPolynomial did not return NULL with invalid coeffs argument.");
     110    }
     111
     112    psLogMsg(__func__,PS_LOG_INFO,"Following should be a error message for NULL input argument.");
     113    nullImage = psImageEvalPolynomial( NULL, my2DPoly );
     114    if ( nullImage != NULL ) {
     115        printf("ERROR: psImageEvalPolynomial did not return NULL with null input image.");
     116    }
     117
     118
    104119    psMemCheckCorruption( 1 );
    105120    printFooter( stdout,
Note: See TracChangeset for help on using the changeset viewer.