IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 18, 2005, 12:27:42 PM (21 years ago)
Author:
evanalst
Message:

Added additional test case to increase code coverage.

File:
1 edited

Legend:

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

    r3285 r3287  
    1717 *  @author  Ross Harman, MHPCC
    1818 *
    19  *  @version $Revision: 1.4 $  $Name: not supported by cvs2svn $
    20  *  @date  $Date: 2005-02-18 21:37:15 $
     19 *  @version $Revision: 1.5 $  $Name: not supported by cvs2svn $
     20 *  @date  $Date: 2005-02-18 22:27:42 $
    2121 *
    2222 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    176176    }
    177177
     178    psLogMsg(__func__,PS_LOG_INFO,"Following should be an error");
     179    if(psBitSetClear(NULL,2) != NULL) {
     180        psError(PS_ERR_UNKNOWN,true,"psBitSetClear did not return NULL with NULL bitset");
     181        return 20;
     182    }
     183
     184    psLogMsg(__func__,PS_LOG_INFO,"Following should be an error");
     185    if(psBitSetClear(bs,-3) != bs) {
     186        psError(PS_ERR_UNKNOWN,true,"psBitSetClear did not return original bitset");
     187        return 21;
     188    }
     189
    178190    psLogMsg("testBitSet01b",PS_LOG_INFO,"Following should be an error");
    179191    psErrorClear();
Note: See TracChangeset for help on using the changeset viewer.