IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 21, 2005, 11:18:23 AM (21 years ago)
Author:
desonia
Message:

added psPixels functions and rewrote psVectorSortIndex.

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

Legend:

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

    r3682 r3737  
    77 *     B)  Sort input float vector into itself
    88 *     C)  Attempt to sort vector with invalid type (i.e. PS_TYPE_BOOL)
    9  *     D)  Sort input vector with zero items 
     9 *     D)  Sort input vector with zero items
    1010 *     C)  Free float vectors
    1111 *
    1212 *  @author  Ross Harman, MHPCC
    1313 *
    14  *  @version $Revision: 1.8 $  $Name: not supported by cvs2svn $
    15  *  @date  $Date: 2005-04-07 20:27:41 $
     14 *  @version $Revision: 1.9 $  $Name: not supported by cvs2svn $
     15 *  @date  $Date: 2005-04-21 21:18:23 $
    1616 *
    1717 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    142142    psLogMsg(__func__,PS_LOG_INFO,"Following should generate an error messgae");
    143143    tempVec = psVectorSort(out,in);
    144     if(tempVec != out) {
    145         psError(PS_ERR_UNKNOWN,true,"Did not return the specified output vector");
     144    if(tempVec != NULL) {
     145        psError(PS_ERR_UNKNOWN,true,"Did not return NULL on error or didn't error?");
    146146        return 33;
    147147    }
    148     psFree(out);
    149148    printFooter(stdout,"psVectorSort","Invalid vector type",true);
    150149
  • trunk/psLib/test/collections/tst_psVectorSort_02.c

    r3682 r3737  
    1414 *  @author  Ross Harman, MHPCC
    1515 *
    16  *  @version $Revision: 1.8 $  $Name: not supported by cvs2svn $
    17  *  @date  $Date: 2005-04-07 20:27:41 $
     16 *  @version $Revision: 1.9 $  $Name: not supported by cvs2svn $
     17 *  @date  $Date: 2005-04-21 21:18:23 $
    1818 *
    1919 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    155155    psLogMsg(__func__,PS_LOG_INFO,"Following should generate two error messages(psVectorSort,psVectorSortIndex)");
    156156    out = psVectorSortIndex(out,in);
    157     if( out != tempVect) {
    158         psError(PS_ERR_UNKNOWN,true,"Did not return the same output vector");
     157    if( out != NULL) {
     158        psError(PS_ERR_UNKNOWN,true,"Did not return NULL on error or didn't error?");
    159159        return 119;
    160160    }
    161161    in->type.type = PS_TYPE_U8;
    162162    psFree(in);
    163     psFree(out);
    164163    printFooter(stdout,"psVectorSortIndex","Attempt to sort with invalid type",true);
    165164
  • trunk/psLib/test/collections/verified/tst_psVectorSort_01.stderr

    r3127 r3737  
    22    Following should generate an error messgae
    33<DATE><TIME>|<HOST>|E|psVectorSort (FILE:LINENO)
    4     Input psVector is an unsupported type (4865).
     4    Input psVector is an unsupported type (0x1301).
  • trunk/psLib/test/collections/verified/tst_psVectorSort_02.stderr

    r3127 r3737  
    55<DATE><TIME>|<HOST>|I|main
    66    Following should generate two error messages(psVectorSort,psVectorSortIndex)
    7 <DATE><TIME>|<HOST>|E|psVectorSort (FILE:LINENO)
    8     Input psVector is an unsupported type (4865).
    97<DATE><TIME>|<HOST>|E|psVectorSortIndex (FILE:LINENO)
    10     Input psVector is an unsupported type (4865).
     8    Input psVector is an unsupported type (0x1301).
Note: See TracChangeset for help on using the changeset viewer.