IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 2386


Ignore:
Timestamp:
Nov 18, 2004, 3:04:51 PM (22 years ago)
Author:
evanalst
Message:

Add additional test case for function psArrayRemove.

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

Legend:

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

    r2385 r2386  
    1212 *     G)  Remove invalid item from array
    1313 *     H)  Remove item from null array
    14  *     I)  Free void pointer array
     14 *     I)  Remove null item from array
     15 *     J)  Free void pointer array
    1516 *
    1617 *  @author  Ross Harman, MHPCC
    1718 *
    18  *  @version $Revision: 1.7 $  $Name: not supported by cvs2svn $
    19  *  @date  $Date: 2004-11-19 00:34:22 $
     19 *  @version $Revision: 1.8 $  $Name: not supported by cvs2svn $
     20 *  @date  $Date: 2004-11-19 01:04:51 $
    2021 *
    2122 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    189190        return 104;
    190191    }
    191 
    192     // Test I - Free void pointer array
     192    printFooter(stdout,"psArray","Remove item from null array",true);
     193
     194    // Test I - Remove null item from array
     195    printPositiveTestHeader(stdout, "psArray", "Remove null item from array");
     196    if( psArrayRemove(psArr,NULL) ) {
     197        psError(PS_ERR_UNKNOWN,true,"Remove null item from array",true);
     198        return 105;
     199    }
     200    printFooter(stdout,"psArray","Remove null item from array",true);
     201
     202    // Test J - Free void pointer array
    193203    printPositiveTestHeader(stdout, "psArray", "Free void pointer array");
    194204    psFree(psArr);
  • trunk/psLib/test/collections/verified/tst_psArray.stdout

    r2385 r2386  
    9898\**********************************************************************************/
    9999
     100
     101---> TESTPOINT PASSED (psArray{Remove item from null array} | tst_psArray.c)
     102
     103/***************************** TESTPOINT ******************************************\
     104*             TestFile: tst_psArray.c                                              *
     105*            TestPoint: psArray{Remove null item from array}                       *
     106*             TestType: Positive                                                   *
     107\**********************************************************************************/
     108
     109
     110---> TESTPOINT PASSED (psArray{Remove null item from array} | tst_psArray.c)
     111
    100112/***************************** TESTPOINT ******************************************\
    101113*             TestFile: tst_psArray.c                                              *
Note: See TracChangeset for help on using the changeset viewer.