IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 9847


Ignore:
Timestamp:
Nov 3, 2006, 11:11:58 AM (20 years ago)
Author:
drobbin
Message:

Added a test for psArrayAllocEmpty (to complete psArray test-coverage)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/types/tap_psArray_all.c

    r9743 r9847  
    2424int main(void)
    2525{
    26     plan_tests(28);
     26    plan_tests(29);
    2727
    2828    diag("Tests for psArray Functions");
     
    4848            "psArrayAlloc:           return NULL for negative array-size input.");
    4949    }
     50    //Return NULL for negative array size - psArrayAllocEmpty
     51    {
     52        a = psArrayAllocEmpty(-2);
     53        ok( a == NULL,
     54            "psArrayAllocEmpty:      return NULL for negative array-size input.");
     55    }
    5056    //Return properly allocated psArray
    5157    {
     
    5460            "psArrayAlloc:           return properly allocated psArray.");
    5561    }
     62
    5663    //Tests for psMemCheckArray
    5764    //Make sure psMemCheckArray works correctly - return false
Note: See TracChangeset for help on using the changeset viewer.