Changeset 1179
- Timestamp:
- Jul 1, 2004, 1:09:53 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/collections/tst_psBitSet_02.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/collections/tst_psBitSet_02.c
r1175 r1179 6 6 * A) Create two psBitSets 7 7 * B) Perform binary AND with psBitSets 8 * C) Free psBitSets 8 * C) Perform binary AND and auto allocate output 9 * D) Free psBitSets 9 10 * 10 11 * @author Ross Harman, MHPCC 11 12 * 12 * @version $Revision: 1. 6$ $Name: not supported by cvs2svn $13 * @date $Date: 2004-07-01 2 1:56:15$13 * @version $Revision: 1.7 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2004-07-01 23:09:53 $ 14 15 * 15 16 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 24 25 { 25 26 char *binOut = NULL; 27 char *binOut2 = NULL; 26 28 27 29 … … 49 51 printFooter(stdout, "psBitSet", "Create two psBitSets", true); 50 52 51 52 53 // Test B - Perform binary AND with psBitSets 53 54 printPositiveTestHeader(stdout,"psBitSet", "Perform binary AND with psBitSets"); … … 61 62 62 63 63 // Test C - Free psBitSets 64 // Test C - Perform binary AND and auto allocate output 65 printPositiveTestHeader(stdout,"psBitSet", "Perform binary AND and auto allocate output"); 66 psBitSet* outbs2 = NULL; 67 outbs2 = psBitSetOp(outbs2, bs1, "AND", bs2); 68 binOut2 = psBitSetToString(outbs2); 69 printf("Result:\n"); 70 printf("%s\n", binOut2); 71 psFree(binOut2); 72 printFooter(stdout, "psBitSet", "Perform binary AND and auto allocate output", true); 73 74 75 // Test D - Free psBitSets 64 76 printPositiveTestHeader(stdout, "psBitSet", "Free psBitSets"); 65 77 psFree(bs1); 66 78 psFree(bs2); 67 79 psFree(outbs); 80 psFree(outbs2); 68 81 psMemCheckLeaks(0, NULL, stdout); 69 82 int nBad = psMemCheckCorruption(0);
Note:
See TracChangeset
for help on using the changeset viewer.
