IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 17, 2005, 5:15:04 PM (22 years ago)
Author:
desonia
Message:

Added tests for psFitsReadImage & psFitsWriteImage. Also re-enabled
some 'not a requirement' code to support a superset of the required
datatype for various functions.

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

Legend:

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

    r2860 r3028  
    66 *  @author Robert DeSonia, MHPCC
    77 *
    8  *  @version $Revision: 1.35 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2005-01-03 21:58:53 $
     8 *  @version $Revision: 1.36 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2005-01-18 03:15:04 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    210210        return 4;
    211211    }
    212 
    213     // Verify program execution doesn't stop if the input image type is something
    214     // other than U8, U16, S8, S16, F32, F64, C32, C64.
    215     img = psImageAlloc(c,r,PS_TYPE_U32);
    216     psLogMsg(__func__,PS_LOG_INFO,"Following should be an error (invalid type)");
    217     retVal = psImageClip(img,min,-1.0f,max,-2.0f);
    218     if (retVal != 0) {
    219         psError(PS_ERR_UNKNOWN, true,"Expected zero return for clip of invalid image type.");
    220         return 5;
    221     }
    222     psFree(img);
    223212
    224213    return 0;
  • trunk/psLib/test/image/verified/tst_psImageManip.stderr

    r2976 r3028  
    2929<DATE><TIME>|<HOST>|E|psImageClip (psImageManip.c:<LINENO>)
    3030    Specified min value, 256, can not be greater than the specified max value, 128.
    31 <DATE><TIME>|<HOST>|I|testImageClip
    32     Following should be an error (invalid type)
    33 <DATE><TIME>|<HOST>|E|psImageClip (psImageManip.c:<LINENO>)
    34     Specified psImage type, psU32, is not supported.
    3531
    3632---> TESTPOINT PASSED (psImage{psImageClip} | tst_psImageManip.c)
Note: See TracChangeset for help on using the changeset viewer.