Index: /trunk/psLib/test/collections/builddir/tst_psBitSet_08.d
===================================================================
--- /trunk/psLib/test/collections/builddir/tst_psBitSet_08.d	(revision 1173)
+++ /trunk/psLib/test/collections/builddir/tst_psBitSet_08.d	(revision 1173)
@@ -0,0 +1,9 @@
+builddir/tst_psBitSet_08.o: tst_psBitSet_08.c ../../include/pslib.h \
+  ../../include/psMemory.h ../../include/psLogMsg.h \
+  ../../include/psTrace.h ../../include/psAbort.h ../../include/psError.h \
+  ../../include/psString.h ../../include/psType.h ../../include/psList.h \
+  ../../include/psCompare.h ../../include/psVector.h \
+  ../../include/psHash.h ../../include/psScalar.h ../../include/psImage.h \
+  ../../include/psBitSet.h ../../include/psSort.h ../../include/psStats.h \
+  ../../include/psMatrix.h ../../include/psMatrixVectorArithmetic.h \
+  ../../include/psFFT.h ../../include/psImageIO.h ../../include/psTest.h
Index: /trunk/psLib/test/collections/tst_psBitSet_08.c
===================================================================
--- /trunk/psLib/test/collections/tst_psBitSet_08.c	(revision 1173)
+++ /trunk/psLib/test/collections/tst_psBitSet_08.c	(revision 1173)
@@ -0,0 +1,116 @@
+/** @file  tst_psBitSet_08.c
+ *
+ *  @brief Test driver for psBitSet functions
+ *
+ *  This test driver contains the following tests for psBitSet test point 8:
+ *     A) Create psBitSets and set to 0xAA and 0xFF 0xCC
+ *     B) Perform NOT operation and auto allocate output
+ *     C) Attempt NOT operation if input argument is NULL
+ *     D) Free psBitSets
+ *
+ *  @author  Ross Harman, MHPCC
+ *
+ *  @version $Revision: 1.1 $  $Name: not supported by cvs2svn $
+ *  @date  $Date: 2004-07-01 21:46:14 $
+ *
+ *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
+ *
+ */
+
+#include "pslib.h"
+#include "psTest.h"
+
+int main(int argc,
+         char* argv[])
+{
+    char *binOut1 = NULL;
+    char *binOut2 = NULL;
+    char *binOut3 = NULL;
+    psBitSet *bsOut1 = NULL;
+    psBitSet *bsOut2 = NULL;
+    psBitSet *bsOut3 = NULL;
+
+
+    // Test A - Create psBitSets and set to 0xAA and 0xFF 0xCC
+    printPositiveTestHeader(stdout,"psBitSet", "Create psBitSets and set to 0xAA and 0xFF 0xCC");
+    printf("Creating psBitSets\n");
+    psBitSet* bs1 = psBitSetAlloc(8);
+    psBitSet* bs2 = psBitSetAlloc(8);
+    psBitSet* bs3 = psBitSetAlloc(8);
+
+    // Create 0xAA
+    bs1 = psBitSetSet(bs1, 1);
+    bs1 = psBitSetSet(bs1, 3);
+    bs1 = psBitSetSet(bs1, 5);
+    bs1 = psBitSetSet(bs1, 7);
+
+    // Create 0xFF
+    bs2 = psBitSetSet(bs2, 0);
+    bs2 = psBitSetSet(bs2, 1);
+    bs2 = psBitSetSet(bs2, 2);
+    bs2 = psBitSetSet(bs2, 3);
+    bs2 = psBitSetSet(bs2, 4);
+    bs2 = psBitSetSet(bs2, 5);
+    bs2 = psBitSetSet(bs2, 6);
+    bs2 = psBitSetSet(bs2, 7);
+
+    // Create 0xCC
+    bs3 = psBitSetSet(bs3, 2);
+    bs3 = psBitSetSet(bs3, 3);
+
+    binOut1 = psBitSetToString(bs1);
+    binOut2 = psBitSetToString(bs2);
+    binOut3 = psBitSetToString(bs3);
+    printf("%s\n", binOut1);
+    printf("%s\n", binOut2);
+    printf("%s\n\n", binOut3);
+    psFree(binOut1);
+    psFree(binOut2);
+    psFree(binOut3);
+    printFooter(stdout, "psBitSet", "Create psBitSets and set to 0xAA and 0xFF 0xCC", true);
+
+
+    // Test B - Perform NOT operation and auto allocate output argument
+    printPositiveTestHeader(stdout, "psBitSet", "Perform NOT operation and auto allocate output");
+    bsOut1 = psBitSetNot(bsOut1, bs1);
+    bsOut2 = psBitSetNot(bsOut2, bs2);
+    bsOut3 = psBitSetNot(bsOut3, bs3);
+    binOut1 = psBitSetToString(bsOut1);
+    binOut2 = psBitSetToString(bsOut2);
+    binOut3 = psBitSetToString(bsOut3);
+    printf("%s\n", binOut1);
+    printf("%s\n", binOut2);
+    printf("%s\n\n", binOut3);
+    psFree(binOut1);
+    psFree(binOut2);
+    psFree(binOut3);
+    printFooter(stdout, "psBitSet", "Perform NOT operation and auto allocate output", true);
+
+
+    // Test C - Attempt NOT operation if input argument is NULL
+    printNegativeTestHeader(stdout, "psBitSet", "Attempt NOT operation if input argument is NULL",
+                            "Null psBitSet for inBitSet argument", 0);
+    if(psBitSetNot(NULL, NULL) != NULL) {
+        printf("ERROR: Output psBitset should be NULL\n");
+    }
+    printFooter(stdout, "psBitSet", "Attempt NOT operation if input argument is NULL", true);
+
+
+    // Test D - Free psBitSets
+    printPositiveTestHeader(stdout, "psBitSet", "Free psBitSets");
+    psFree(bs1);
+    psFree(bs2);
+    psFree(bs3);
+    psFree(bsOut1);
+    psFree(bsOut2);
+    psFree(bsOut3);
+    psMemCheckLeaks(0, NULL, stdout);
+    psMemCheckCorruption(0);
+    int nBad = psMemCheckCorruption(0);
+    if(nBad) {
+        printf("ERROR: Found %d bad memory blocks\n", nBad);
+    }
+    printFooter(stdout, "psBitSet", "Free psBitSets", true);
+
+    return 0;
+}
Index: /trunk/psLib/test/collections/verified/tst_psBitSet_08.stderr
===================================================================
--- /trunk/psLib/test/collections/verified/tst_psBitSet_08.stderr	(revision 1173)
+++ /trunk/psLib/test/collections/verified/tst_psBitSet_08.stderr	(revision 1173)
@@ -0,0 +1,1 @@
+ <DATE> <TIME> <HOST> |E|    psBitSetNot| : Line 238 - Null psBitSet for inBitSet argument
Index: /trunk/psLib/test/collections/verified/tst_psBitSet_08.stdout
===================================================================
--- /trunk/psLib/test/collections/verified/tst_psBitSet_08.stdout	(revision 1173)
+++ /trunk/psLib/test/collections/verified/tst_psBitSet_08.stdout	(revision 1173)
@@ -0,0 +1,47 @@
+/***************************** TESTPOINT ******************************************\
+*             TestFile: tst_psBitSet_08.c                                          *
+*            TestPoint: psBitSet{Create psBitSets and set to 0xAA and 0xFF 0xCC}   *
+*             TestType: Positive                                                   *
+\**********************************************************************************/
+
+Creating psBitSets
+10101010
+11111111
+00001100
+
+
+---> TESTPOINT PASSED (psBitSet{Create psBitSets and set to 0xAA and 0xFF 0xCC} | tst_psBitSet_08.c)
+
+/***************************** TESTPOINT ******************************************\
+*             TestFile: tst_psBitSet_08.c                                          *
+*            TestPoint: psBitSet{Perform NOT operation and auto allocate output}   *
+*             TestType: Positive                                                   *
+\**********************************************************************************/
+
+01010101
+00000000
+11110011
+
+
+---> TESTPOINT PASSED (psBitSet{Perform NOT operation and auto allocate output} | tst_psBitSet_08.c)
+
+/***************************** TESTPOINT ******************************************\
+*             TestFile: tst_psBitSet_08.c                                          *
+*            TestPoint: psBitSet{Attempt NOT operation if input argument is NULL}  *
+*             TestType: Negative                                                   *
+*    ExpectedErrorText: Null psBitSet for inBitSet argument                        *
+*  ExpectedStatusValue: 0                                                          *
+\**********************************************************************************/
+
+
+---> TESTPOINT PASSED (psBitSet{Attempt NOT operation if input argument is NULL} | tst_psBitSet_08.c)
+
+/***************************** TESTPOINT ******************************************\
+*             TestFile: tst_psBitSet_08.c                                          *
+*            TestPoint: psBitSet{Free psBitSets}                                   *
+*             TestType: Positive                                                   *
+\**********************************************************************************/
+
+
+---> TESTPOINT PASSED (psBitSet{Free psBitSets} | tst_psBitSet_08.c)
+
