Changeset 868 for trunk/psLib/test/collections/tst_psVector_01.c
- Timestamp:
- Jun 4, 2004, 10:18:12 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/collections/tst_psVector_01.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/collections/tst_psVector_01.c
r831 r868 9 9 * D) Reallocate S32 vector smaller 10 10 * E) Free S32 vector 11 * 11 * F) Attempt to create a S32 vector with zero size 12 * 12 13 * @author Ross Harman, MHPCC 13 14 * 14 * @version $Revision: 1. 3$ $Name: not supported by cvs2svn $15 * @date $Date: 2004-06-0 2 23:29:29$15 * @version $Revision: 1.4 $ $Name: not supported by cvs2svn $ 16 * @date $Date: 2004-06-04 20:18:12 $ 16 17 * 17 18 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 31 32 psVector *psVec = psVectorAlloc(5, PS_TYPE_S32); 32 33 printf("Vector size = %d\n", psVec->nalloc); 33 printf("Vector population = %d\n", psVec->n); 34 printf("Vector type = %d\n", psVec->type.type); 35 printf("Vector dimen = %d\n", psVec->type.dimen); 36 printf("Vector size = %d\n", psVec->nalloc); 34 37 printFooter(stdout, "psVector", "Create S32 vector", true); 35 38 … … 83 86 printFooter(stdout, "psVector" ,"Free S32 vector", true); 84 87 88 // Test F - Attempt to create a S32 vector with zero size 89 printNegativeTestHeader(stdout,"psVector", "Attempt to create a S32 vector with zero size", 90 "Invalid value for nalloc", 0); 91 psVector *vecBad = psVectorAlloc(0, PS_TYPE_S32); 92 if(vecBad != NULL) { 93 printf("ERROR: Return is not NULL\n"); 94 } 95 printFooter(stdout, "psVector", "Attempt to create a S32 vector with zero size", true); 96 85 97 return 0; 86 98 }
Note:
See TracChangeset
for help on using the changeset viewer.
