IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 4152


Ignore:
Timestamp:
Jun 8, 2005, 9:08:22 AM (21 years ago)
Author:
evanalst
Message:

Update test cases for psPixelsToMask function.

Location:
trunk/psLib/test/collections
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/collections/tst_psPixels.c

    r4146 r4152  
    55 *  @author Robert DeSonia, MHPCC
    66 *
    7  *  @version $Revision: 1.3 $
     7 *  @version $Revision: 1.4 $
    88 *           $Name: not supported by cvs2svn $
    9  *  @date $Date: 2005-06-08 03:17:01 $
     9 *  @date $Date: 2005-06-08 19:08:22 $
    1010 *
    1111 *  Copyright 2005 Maui High Performance Computing Center, University of Hawaii
     
    364364
    365365
     366    // Test for invalid region
     367    psLogMsg(__func__,PS_LOG_INFO,"Following should generate an error for invalid range");
     368    mask = psPixelsToMask(mask,pixels,psRegionSet(10,0,10,0),1);
     369    if(mask != NULL) {
     370        psError(PS_ERR_UNKNOWN,true,"Did not expect non-NULL for invalid range");
     371        return 21;
     372    }
     373
    366374    psFree(mask);
    367375    psFree(pixels);
  • trunk/psLib/test/collections/verified/tst_psPixels.stderr

    r4146 r4152  
    3838<DATE><TIME>|<HOST>|E|psPixelsToMask (FILE:LINENO)
    3939    Input psPixels can not be NULL.
     40<DATE><TIME>|<HOST>|I|testPixelsToMask
     41    Following should generate an error for invalid range
     42<DATE><TIME>|<HOST>|E|psPixelsToMask (FILE:LINENO)
     43    Specified psRegion, [10:0,10:0], does not specify a valid region.
    4044
    4145---> TESTPOINT PASSED (psPixels{psPixelsToMask} | tst_psPixels.c)
Note: See TracChangeset for help on using the changeset viewer.