IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 1, 2007, 6:14:33 PM (19 years ago)
Author:
gusciora
Message:

Added tabular file of all psLib functions in Chapter 6 of the SDRS (Data
Manipulation). Most of the test file changes in this check-in are fairly
cosmetic.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/imageops/tap_psImagePixelManip.c

    r12440 r13123  
    66 *  @author Robert DeSonia, MHPCC
    77 *
    8  *  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2007-03-14 21:20:28 $
     8 *  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2007-05-02 04:14:33 $
    1010 *
    1111 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    2222    psLogSetFormat("HLNM");
    2323    psLogSetLevel(PS_LOG_INFO);
    24     plan_tests(47);
    25 
    26     // testImageClip()
     24    plan_tests(107);
     25
     26    // test psImageClip()
    2727    {
    2828        psMemId id = psMemGetId();
     
    4444        // Verify the retuned integer is zero, psImage structure input is unmodified
    4545        // and program executions doesn't stop, if input parameter psImage structure
    46         // pointer is null.
     46        // pointer is NULL.
    4747        //
    4848        // Verify the retuned integer is zero, psImage structure input is unmodified
     
    111111        // Verify the retuned integer is zero, psImage structure input is unmodified
    112112        // and program executions doesn't stop, if input parameter psImage structure
    113         // pointer is null.
     113        // pointer is NULL.
    114114        retVal = psImageClip(NULL,min,-1.0f,max,-2.0f);
    115115        ok(retVal == 0, "Expected zero return for clips of a NULL image");
     
    144144        //
    145145        // Verify the returned integer is zero and program execution doesn't stop,
    146         // if the input parameter psImage structure pointer is null.
     146        // if the input parameter psImage structure pointer is NULL.
    147147        // create image
    148148        #define testImageClipNaNByType(datatype) \
     
    193193        // Verify the retuned integer is zero, psImage structure input is unmodified
    194194        // and program executions doesn't stop, if input parameter psImage structure
    195         // pointer is null.
     195        // pointer is NULL.
    196196        retVal = psImageClipNaN(NULL,-1.0f);
    197197        ok(retVal == 0, "Expected zero return for clips of a NULL image");
     
    286286        testOverlayTypeOP(DATATYPE,=,"=");
    287287
    288 
    289         //        testOverlayType(F64);
    290         //        testOverlayType(F32);
    291         //        testOverlayType(S16);
    292         //        testOverlayType(S8);
    293         //        testOverlayType(U16);
    294         //        testOverlayType(U8);
     288        testOverlayType(F64);
     289        testOverlayType(F32);
     290        testOverlayType(S16);
     291        testOverlayType(S8);
     292        testOverlayType(U16);
     293        testOverlayType(U8);
    295294
    296295        // Verify the returned integer is equal to non-zero and the input psImage structure
     
    351350        // Verify the returned integer is equal to non-zero, the input psImage
    352351        // structure is unmodified and program execution doesn't stop, if the
    353         // overlay specified is null.
     352        // overlay specified is NULL.
    354353        // Following should error as overlay is NULL
    355354        // XXX: Verify error
     
    371370
    372371        // Verify the returned integer is equal to non-zero and program execution
    373         // doesn't stop, if the input parameter image is null.
     372        // doesn't stop, if the input parameter image is NULL.
    374373        // Following should error as image input is NULL
    375374        // XXX: Verify error
     
    416415        ok(retVal != 0, "psImageOverlaySection returned non-zero when checking divide-by-zero");
    417416        errorFlag = false;
    418 
    419 
    420 
    421 
    422 
    423 
    424 
    425 
    426 
    427 
    428 
    429 
    430 
    431 
    432 
    433 
    434 
    435 
    436 
    437 
    438 
    439 
    440 
    441 
    442 
    443 
    444 
    445 
    446 
    447 
    448417
    449418        for (unsigned row=0;row<r;row++)
Note: See TracChangeset for help on using the changeset viewer.