Changeset 12210
- Timestamp:
- Mar 2, 2007, 4:56:19 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/types/tap_psBitSet_all.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/types/tap_psBitSet_all.c
r12094 r12210 66 66 67 67 //BitSetSet Tests 68 //Return NULLfor NULL input psBitSet69 { 70 bool rc = psBitSetSet( noBits, 0);71 ok( rc == true,72 "psBitSetSet: return TRUE for NULL BitSet input.");73 } 74 //Return input BitSetfor negative bit input68 //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 75 75 { 76 76 bool rc = psBitSetSet(bs, -1); 77 ok( rc == true,77 ok( rc == false, 78 78 "psBitSetSet: return TRUE for negative bits input."); 79 79 noBits = NULL; 80 80 } 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); 83 85 bool rc = psBitSetSet(bs, 8); 84 ok( rc = true,86 ok( rc == false, 85 87 "psBitSetSet: return TRUE for out-of-range bits input."); 86 88 noBits = NULL; 87 89 } 90 88 91 //Return set BitSet for valid inputs 89 92 { … … 94 97 95 98 //BitSetClear Tests 96 //Return NULLfor NULL input psBitSet99 //Return FALSE for NULL input psBitSet 97 100 { 98 101 bool rc = psBitSetClear(noBits, 0); … … 100 103 "psBitSetClear: return FALSE for NULL BitSet input."); 101 104 } 102 //Return input BitSetfor negative bit input105 //Return FALSE for negative bit input 103 106 { 104 107 bool rc = psBitSetClear(bs, -1); 105 ok( rc = true,108 ok( rc == false, 106 109 "psBitSetClear: return TRUE for negative bits input."); 107 110 noBits = NULL; 108 111 } 109 //Return input BitSetfor out-of-range bits112 //Return FALSE for out-of-range bits 110 113 { 111 114 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 116 120 //Return cleared BitSet for valid inputs 117 121 {
Note:
See TracChangeset
for help on using the changeset viewer.
