IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 1179


Ignore:
Timestamp:
Jul 1, 2004, 1:09:53 PM (22 years ago)
Author:
harman
Message:

Added another testpoint

File:
1 edited

Legend:

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

    r1175 r1179  
    66 *     A)  Create two psBitSets
    77 *     B)  Perform binary AND with psBitSets
    8  *     C)  Free psBitSets
     8 *     C)  Perform binary AND and auto allocate output
     9 *     D)  Free psBitSets
    910 *
    1011 *  @author  Ross Harman, MHPCC
    1112 *
    12  *  @version $Revision: 1.6 $  $Name: not supported by cvs2svn $
    13  *  @date  $Date: 2004-07-01 21:56:15 $
     13 *  @version $Revision: 1.7 $  $Name: not supported by cvs2svn $
     14 *  @date  $Date: 2004-07-01 23:09:53 $
    1415 *
    1516 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    2425{
    2526    char *binOut = NULL;
     27    char *binOut2 = NULL;
    2628
    2729
     
    4951    printFooter(stdout, "psBitSet", "Create two psBitSets", true);
    5052
    51 
    5253    // Test B - Perform binary AND with psBitSets
    5354    printPositiveTestHeader(stdout,"psBitSet", "Perform binary AND with psBitSets");
     
    6162
    6263
    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
    6476    printPositiveTestHeader(stdout, "psBitSet", "Free psBitSets");
    6577    psFree(bs1);
    6678    psFree(bs2);
    6779    psFree(outbs);
     80    psFree(outbs2);
    6881    psMemCheckLeaks(0, NULL, stdout);
    6982    int nBad = psMemCheckCorruption(0);
Note: See TracChangeset for help on using the changeset viewer.