IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

Updated test case to increase code coverage for psBitSetOp.

File:
1 edited

Legend:

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

    r3288 r3289  
    1717 *  @author  Ross Harman, MHPCC
    1818 *
    19  *  @version $Revision: 1.6 $  $Name: not supported by cvs2svn $
    20  *  @date  $Date: 2005-02-18 22:32:49 $
     19 *  @version $Revision: 1.7 $  $Name: not supported by cvs2svn $
     20 *  @date  $Date: 2005-02-18 22:46:50 $
    2121 *
    2222 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    660660
    661661
     662    psLogMsg(__func__,PS_LOG_INFO,"Following should generate an error");
     663    if(psBitSetOp(outbs,NULL,"AND",bs2) != NULL) {
     664        psError(PS_ERR_UNKNOWN,true,"psBitSetOp did not return NULL with NULL input 1 bit set");
     665        return 40;
     666    }
     667    psLogMsg(__func__,PS_LOG_INFO,"Following should generate an error");
     668    if(psBitSetOp(outbs,bs1,NULL,bs2) != NULL) {
     669        psError(PS_ERR_UNKNOWN,true,"psBitSetOp did not return NULL with NULL operator");
     670        return 41;
     671    }
     672    psLogMsg(__func__,PS_LOG_INFO,"Following should generate an error");
     673    if(psBitSetOp(outbs,bs1,"AND",NULL) != NULL)  {
     674        psError(PS_ERR_UNKNOWN,true,"psBitSetOp did not return NULL with NULL input 2 bit set");
     675        return 42;
     676    }
     677
    662678    psFree(bs1);
    663679    psFree(bs2);
Note: See TracChangeset for help on using the changeset viewer.