IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 12210


Ignore:
Timestamp:
Mar 2, 2007, 4:56:19 PM (19 years ago)
Author:
gusciora
Message:

Fixed remaining failing tests in this file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/types/tap_psBitSet_all.c

    r12094 r12210  
    6666
    6767    //BitSetSet Tests
    68     //Return NULL for NULL input psBitSet
    69     {
    70         bool rc = psBitSetSet(noBits, 0);
    71         ok( rc == true,
    72             "psBitSetSet:           return TRUE for NULL BitSet input.");
    73     }
    74     //Return input BitSet for negative bit input
     68    //Return FALSE for NULL input psBitSet
     69    {
     70        bool rc = psBitSetSet(NULL, 0);
     71        ok(rc == false,
     72            "psBitSetSet:           return FALSE for NULL BitSet input.");
     73    }
     74    //Return FALSE for negative bit input
    7575    {
    7676        bool rc = psBitSetSet(bs, -1);
    77         ok( rc == true,
     77        ok( rc == false,
    7878            "psBitSetSet:           return TRUE for negative bits input.");
    7979        noBits = NULL;
    8080    }
    81     //Return input BitSet for out-of-range bits
    82     {
     81    //Return FALSE for out-of-range bits
     82    {
     83        psFree(bs);
     84        bs = psBitSetAlloc(8);
    8385        bool rc = psBitSetSet(bs, 8);
    84         ok( rc = true,
     86        ok( rc == false,
    8587            "psBitSetSet:           return TRUE for out-of-range bits input.");
    8688        noBits = NULL;
    8789    }
     90
    8891    //Return set BitSet for valid inputs
    8992    {
     
    9497
    9598    //BitSetClear Tests
    96     //Return NULL for NULL input psBitSet
     99    //Return FALSE for NULL input psBitSet
    97100    {
    98101        bool rc = psBitSetClear(noBits, 0);
     
    100103            "psBitSetClear:         return FALSE for NULL BitSet input.");
    101104    }
    102     //Return input BitSet for negative bit input
     105    //Return FALSE for negative bit input
    103106    {
    104107        bool rc = psBitSetClear(bs, -1);
    105         ok( rc = true,
     108        ok( rc == false,
    106109            "psBitSetClear:        return TRUE for negative bits input.");
    107110        noBits = NULL;
    108111    }
    109     //Return input BitSet for out-of-range bits
     112    //Return FALSE for out-of-range bits
    110113    {
    111114        bool rc = psBitSetClear(bs, 8);
    112         ok( rc == true,
    113             "psBitSetClear:        return TRUE for out-of-range bits input.");
    114         noBits = NULL;
    115     }
     115        ok( rc == false,
     116            "psBitSetClear:        return FALSE for out-of-range bits input.");
     117        noBits = NULL;
     118    }
     119
    116120    //Return cleared BitSet for valid inputs
    117121    {
Note: See TracChangeset for help on using the changeset viewer.