Changeset 10819
- Timestamp:
- Dec 21, 2006, 10:04:35 AM (20 years ago)
- Location:
- trunk/psLib/test/types
- Files:
-
- 19 edited
-
tap_psArguments_all.c (modified) (4 diffs)
-
tap_psArray_all.c (modified) (5 diffs)
-
tap_psBitSet_all.c (modified) (3 diffs)
-
tap_psHash_all.c (modified) (4 diffs)
-
tap_psListIterator.c (modified) (6 diffs)
-
tap_psList_all.c (modified) (4 diffs)
-
tap_psLookupTable_all.c (modified) (2 diffs)
-
tap_psMetadataConfigParse_time.c (modified) (1 diff)
-
tap_psMetadataConfigRead.c (modified) (7 diffs)
-
tap_psMetadataConfig_input.c (modified) (5 diffs)
-
tap_psMetadataItemCompare.c (modified) (2 diffs)
-
tap_psMetadataItemParse.c (modified) (2 diffs)
-
tap_psMetadataIterator.c (modified) (12 diffs)
-
tap_psMetadata_copying.c (modified) (4 diffs)
-
tap_psMetadata_creating.c (modified) (4 diffs)
-
tap_psMetadata_manip.c (modified) (4 diffs)
-
tap_psMetadata_polynomials.c (modified) (8 diffs)
-
tap_psMetadata_printing.c (modified) (4 diffs)
-
tap_psPixels_all.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/types/tap_psArguments_all.c
r9868 r10819 23 23 int main(void) 24 24 { 25 plan_tests( 27);26 27 diag("Tests for psArguments Functions");25 plan_tests(30); 26 27 note("Tests for psArguments Functions"); 28 28 29 29 testArgumentGetParse(); … … 36 36 void testArgumentGetParse(void) 37 37 { 38 diag(" >>>Test 1: psArgument Get, Remove, Parse, and Help Fxns");38 note(" >>>Test 1: psArgument Get, Remove, Parse, and Help Fxns"); 39 39 psMetadata *arg = NULL; 40 40 char *argv[25]; … … 217 217 void testArgumentVerbosity(void) 218 218 { 219 diag(" >>>Test 2: psArgumentRemove & psArgumentVerbosity Fxns");219 note(" >>>Test 2: psArgumentRemove & psArgumentVerbosity Fxns"); 220 220 221 221 //Return 2 (default) for NULL input argument … … 317 317 void testLogTraceArguments(void) 318 318 { 319 diag(" >>>Test 3: psLogArguments & psTraceArguments Fxns");319 note(" >>>Test 3: psLogArguments & psTraceArguments Fxns"); 320 320 321 321 //Return 2 (default) for NULL arguments input -
trunk/psLib/test/types/tap_psArray_all.c
r9847 r10819 24 24 int main(void) 25 25 { 26 plan_tests( 29);27 28 diag("Tests for psArray Functions");26 plan_tests(34); 27 28 note("Tests for psArray Functions"); 29 29 30 30 testArrayAllocs(); … … 38 38 void testArrayAllocs(void) 39 39 { 40 diag(" >>>Test 1: psArrayAlloc, Realloc, & Free Fxns");40 note(" >>>Test 1: psArrayAlloc, Realloc, & Free Fxns"); 41 41 psArray *a = NULL; 42 42 … … 127 127 void testArrayAddRemove(void) 128 128 { 129 diag(" >>>Test 2: psArrayAdd & psArrayRemove Fxns");129 note(" >>>Test 2: psArrayAdd & psArrayRemove Fxns"); 130 130 psArray *a = psArrayAlloc(0); 131 131 psS32 *s1 = (psS32*)psAlloc(sizeof(psS32)); … … 200 200 void testArraySetGet(void) 201 201 { 202 diag(" >>>Test 3: psArraySet & psArrayGet Fxns");202 note(" >>>Test 3: psArraySet & psArrayGet Fxns"); 203 203 psArray *a = NULL; 204 204 psArray *b = NULL; … … 285 285 void testArraySort(void) 286 286 { 287 diag(" >>>Test 4: psArray Sort Function");287 note(" >>>Test 4: psArray Sort Function"); 288 288 psArray *a = NULL; 289 289 a = psArrayAlloc(3); -
trunk/psLib/test/types/tap_psBitSet_all.c
r9143 r10819 22 22 int main(void) 23 23 { 24 plan_tests(3 1);25 26 diag("Tests for psBitSet Functions");24 plan_tests(34); 25 26 note("Tests for psBitSet Functions"); 27 27 28 28 testBitSetBasics(); … … 34 34 void testBitSetBasics(void) 35 35 { 36 diag(" >>>Test 1: psBitSet Basic Fxns");36 note(" >>>Test 1: psBitSet Basic Fxns"); 37 37 38 38 psBitSet *noBits = NULL; … … 159 159 void testBitSetOps(void) 160 160 { 161 diag(" >>>Test 2: psBitSet Operation Fxns");161 note(" >>>Test 2: psBitSet Operation Fxns"); 162 162 psBitSet *noBits = NULL; 163 163 psBitSet *bs = NULL; -
trunk/psLib/test/types/tap_psHash_all.c
r9082 r10819 23 23 int main(void) 24 24 { 25 plan_tests(2 5);26 27 diag("Tests for psHash Functions");25 plan_tests(29); 26 27 note("Tests for psHash Functions"); 28 28 29 29 testHashCreate(); … … 36 36 void testHashCreate(void) 37 37 { 38 diag(" >>>Test 1: psHash Creation Fxns");38 note(" >>>Test 1: psHash Creation Fxns"); 39 39 40 40 psHash *h1 = NULL; … … 112 112 void testHashManip(void) 113 113 { 114 diag(" >>>Test 2: psHash Manipulation Fxns");114 note(" >>>Test 2: psHash Manipulation Fxns"); 115 115 116 116 psHash *h1 = NULL; … … 181 181 void testHashConvert(void) 182 182 { 183 diag(" >>>Test 3: psHash Conversion/List Fxns");183 note(" >>>Test 3: psHash Conversion/List Fxns"); 184 184 185 185 psHash *h1 = NULL; -
trunk/psLib/test/types/tap_psListIterator.c
r8995 r10819 72 72 int main (void) 73 73 { 74 plan_tests( 66);74 plan_tests(73); 75 75 76 diag("psListIterator tests");76 note("psListIterator tests"); 77 77 78 78 { 79 diag("Forwards");79 note("Forwards"); 80 80 psList *list = listGenerate(); 81 81 psListIterator *iter = psListIteratorAlloc(list, PS_LIST_HEAD, false); … … 97 97 98 98 { 99 diag("Backwards");99 note("Backwards"); 100 100 psList *list = listGenerate(); 101 101 psListIterator *iter = psListIteratorAlloc(list, PS_LIST_TAIL, NULL); … … 117 117 118 118 { 119 diag("Jumping in halfway through (using allocator), forwards");119 note("Jumping in halfway through (using allocator), forwards"); 120 120 psList *list = listGenerate(); 121 121 psListIterator *iter = psListIteratorAlloc(list, 3, NULL); … … 134 134 135 135 { 136 diag("Jumping in halfway through (using allocator), backwards");136 note("Jumping in halfway through (using allocator), backwards"); 137 137 psList *list = listGenerate(); 138 138 psListIterator *iter = psListIteratorAlloc(list, -4, NULL); … … 151 151 152 152 { 153 diag("Jumping in halfway through (using set), forwards");153 note("Jumping in halfway through (using set), forwards"); 154 154 psList *list = listGenerate(); 155 155 psListIterator *iter = psListIteratorAlloc(list, PS_LIST_HEAD, NULL); … … 169 169 170 170 { 171 diag("Jumping in halfway through (using set), backwards");171 note("Jumping in halfway through (using set), backwards"); 172 172 psList *list = listGenerate(); 173 173 psListIterator *iter = psListIteratorAlloc(list, PS_LIST_HEAD, NULL); -
trunk/psLib/test/types/tap_psList_all.c
r9143 r10819 26 26 int main(void) 27 27 { 28 plan_tests(6 0);29 30 diag("Tests for psList Functions");28 plan_tests(64); 29 30 note("Tests for psList Functions"); 31 31 32 32 testListCreate(); … … 39 39 void testListCreate(void) 40 40 { 41 diag(" >>>Test 1: psList Creation Fxns");41 note(" >>>Test 1: psList Creation Fxns"); 42 42 psList *noList = NULL; 43 43 psListIterator *noIter = NULL; … … 243 243 void testListManip(void) 244 244 { 245 diag(" >>>Test 2: psList Manipulation Fxns");245 note(" >>>Test 2: psList Manipulation Fxns"); 246 246 psMetadata *md = psMetadataAlloc(); 247 247 psList *emptyList = psListAlloc(NULL); … … 427 427 void testListConvertSort(void) 428 428 { 429 diag(" >>>Test 3: psList Conversion and Sorting Fxns");429 note(" >>>Test 3: psList Conversion and Sorting Fxns"); 430 430 psList *emptyList = psListAlloc(NULL); 431 431 psS32 *s1 = (psS32*)psAlloc(sizeof(psS32)); -
trunk/psLib/test/types/tap_psLookupTable_all.c
r9745 r10819 24 24 int main(void) 25 25 { 26 plan_tests( 28);27 28 diag("Tests for psLookupTable Functions");26 plan_tests(30); 27 28 note("Tests for psLookupTable Functions"); 29 29 30 30 testLookupTableAlloc(); … … 37 37 void testLookupTableAlloc(void) 38 38 { 39 diag(" >>>Test 1: psLookupTableAlloc & psMemCheckLookupTable Fxns");39 note(" >>>Test 1: psLookupTableAlloc & psMemCheckLookupTable Fxns"); 40 40 41 41 psLookupTable *lt = NULL; -
trunk/psLib/test/types/tap_psMetadataConfigParse_time.c
r8774 r10819 7 7 int main (void) 8 8 { 9 plan_tests(4 0);9 plan_tests(41); 10 10 11 diag("psMetadataParseConfig time format tests");11 note("psMetadataParseConfig time format tests"); 12 12 13 13 { -
trunk/psLib/test/types/tap_psMetadataConfigRead.c
r8995 r10819 147 147 int main (void) 148 148 { 149 plan_tests(5 2);150 151 diag("psMetadataConfigRead tests");149 plan_tests(58); 150 151 note("psMetadataConfigRead tests"); 152 152 153 153 generateMDConfig(); … … 155 155 unsigned int numBadLines = 0; // Number of bad lines 156 156 psMetadata *md = psMetadataConfigRead(NULL, &numBadLines, FILENAME, false); 157 unlink (FILENAME); 158 157 159 ok(md, "md = %x", md); 158 160 ok(numBadLines == 1, "number of bad lines = %d", numBadLines); // One bad line from boolean … … 165 167 psMetadataIterator *iterator = psMetadataIteratorAlloc(md, PS_LIST_HEAD, NULL); // Iterator 166 168 167 diag("Checking the output");169 note("Checking the output"); 168 170 { 169 171 psMetadataItem *item = psMetadataGetAndIncrement(iterator); … … 174 176 175 177 { 176 diag("Checking the nested METADATA");178 note("Checking the nested METADATA"); 177 179 psMetadataItem *item = psMetadataGetAndIncrement(iterator); 178 180 mixedType value; // Needed only to check the other stuff … … 200 202 } 201 203 202 diag("Checking the rest");204 note("Checking the rest"); 203 205 { 204 206 psMetadataItem *item = psMetadataGetAndIncrement(iterator); … … 232 234 } 233 235 234 diag("Checking the MULTI");236 note("Checking the MULTI"); 235 237 { 236 238 // Check that the correct item is MULTI … … 266 268 } 267 269 268 diag("Checking the bad line");270 note("Checking the bad line"); 269 271 { 270 272 // Check that the bad one isn't there -
trunk/psLib/test/types/tap_psMetadataConfig_input.c
r9910 r10819 25 25 int main(void) 26 26 { 27 plan_tests(3 3);28 29 diag("Tests for psMetadataConfig Input Functions");27 plan_tests(36); 28 29 note("Tests for psMetadataConfig Input Functions"); 30 30 31 31 testMetaConfigRead(); … … 37 37 void testMetaConfigRead(void) 38 38 { 39 diag(" >>>Test 1: psMetadataConfigRead");39 note(" >>>Test 1: psMetadataConfigRead"); 40 40 41 41 //Return NULL for NULL filename input … … 97 97 "returned metadata."); 98 98 skip_end(); 99 psMetadataConfigWrite(out, "mdc-overwrite_false.txt");99 // psMetadataConfigWrite(out, "mdc-overwrite_false.txt"); 100 100 psFree(out); 101 101 } … … 128 128 "returned metadata."); 129 129 skip_end(); 130 psMetadataConfigWrite(out, "mdc-overwrite_true.txt");130 // psMetadataConfigWrite(out, "mdc-overwrite_true.txt"); 131 131 psFree(out); 132 132 } … … 138 138 void testMetaConfigParse(void) 139 139 { 140 diag(" >>>Test 2: psMetadataConfigParse");140 note(" >>>Test 2: psMetadataConfigParse"); 141 141 char str1[70]; 142 142 char str2[70]; -
trunk/psLib/test/types/tap_psMetadataItemCompare.c
r9936 r10819 19 19 int main (void) 20 20 { 21 plan_tests(2 2);22 23 diag("psMetadataItemCompare() tests");21 plan_tests(24); 22 23 note("psMetadataItemCompare() tests"); 24 24 25 25 testItemCompare(); … … 30 30 void testItemCompare(void) 31 31 { 32 diag(" >>>Test 1: psMetadataItemCompare");32 note(" >>>Test 1: psMetadataItemCompare"); 33 33 34 34 psMetadataItem *compare = NULL; -
trunk/psLib/test/types/tap_psMetadataItemParse.c
r9941 r10819 20 20 int main (void) 21 21 { 22 plan_tests(11 2);23 24 diag("psMetadataItemParse() tests");22 plan_tests(114); 23 24 note("psMetadataItemParse() tests"); 25 25 26 26 testItemParse(); … … 31 31 void testItemParse(void) 32 32 { 33 diag(" >>>Test 1: psMetadataItemParse");33 note(" >>>Test 1: psMetadataItemParse"); 34 34 35 35 psMetadataItem *itemBool = psMetadataItemAlloc("bool", PS_DATA_BOOL, "No Comment", true); -
trunk/psLib/test/types/tap_psMetadataIterator.c
r8995 r10819 102 102 int main (void) 103 103 { 104 plan_tests(2 42);105 106 diag("psMetadataIterator tests");107 108 { 109 diag("No regular expressions, forwards");104 plan_tests(255); 105 106 note("psMetadataIterator tests"); 107 108 { 109 note("No regular expressions, forwards"); 110 110 psMetadata *md = mdGenerate(); 111 111 psMetadataIterator *iter = psMetadataIteratorAlloc(md, PS_LIST_HEAD, NULL); … … 127 127 128 128 { 129 diag("No regular expressions, backwards");129 note("No regular expressions, backwards"); 130 130 psMetadata *md = mdGenerate(); 131 131 psMetadataIterator *iter = psMetadataIteratorAlloc(md, PS_LIST_TAIL, NULL); … … 147 147 148 148 { 149 diag("No regular expressions, jumping in halfway through (using allocator), forwards");149 note("No regular expressions, jumping in halfway through (using allocator), forwards"); 150 150 psMetadata *md = mdGenerate(); 151 151 psMetadataIterator *iter = psMetadataIteratorAlloc(md, 3, NULL); … … 164 164 165 165 { 166 diag("No regular expressions, jumping in halfway through (using allocator), backwards");166 note("No regular expressions, jumping in halfway through (using allocator), backwards"); 167 167 psMetadata *md = mdGenerate(); 168 168 psMetadataIterator *iter = psMetadataIteratorAlloc(md, -4, NULL); … … 181 181 182 182 { 183 diag("No regular expressions, jumping in halfway through (using set), forwards");183 note("No regular expressions, jumping in halfway through (using set), forwards"); 184 184 psMetadata *md = mdGenerate(); 185 185 psMetadataIterator *iter = psMetadataIteratorAlloc(md, PS_LIST_HEAD, NULL); … … 199 199 200 200 { 201 diag("No regular expressions, jumping in halfway through (using set), backwards");201 note("No regular expressions, jumping in halfway through (using set), backwards"); 202 202 psMetadata *md = mdGenerate(); 203 203 psMetadataIterator *iter = psMetadataIteratorAlloc(md, PS_LIST_HEAD, NULL); … … 217 217 218 218 { 219 diag("With regular expressions, forwards");219 note("With regular expressions, forwards"); 220 220 psMetadata *md = mdGenerate(); 221 221 psMetadataIterator *iter = psMetadataIteratorAlloc(md, PS_LIST_HEAD, "^" MULTI_NAME "$"); … … 234 234 235 235 { 236 diag("With regular expressions, backwards");236 note("With regular expressions, backwards"); 237 237 psMetadata *md = mdGenerate(); 238 238 psMetadataIterator *iter = psMetadataIteratorAlloc(md, PS_LIST_TAIL, "^" MULTI_NAME "$"); … … 251 251 252 252 { 253 diag("With regular expressions, jumping in halfway through (using allocator), forwards");253 note("With regular expressions, jumping in halfway through (using allocator), forwards"); 254 254 psMetadata *md = mdGenerate(); 255 255 psMetadataIterator *iter = psMetadataIteratorAlloc(md, 2, "^" MULTI_NAME "$"); … … 266 266 267 267 { 268 diag("With regular expressions, jumping in halfway through (using allocator), backwards");268 note("With regular expressions, jumping in halfway through (using allocator), backwards"); 269 269 psMetadata *md = mdGenerate(); 270 270 psMetadataIterator *iter = psMetadataIteratorAlloc(md, -3, "^" MULTI_NAME "$"); … … 281 281 282 282 { 283 diag("With regular expressions, jumping in halfway through (using set), forwards");283 note("With regular expressions, jumping in halfway through (using set), forwards"); 284 284 psMetadata *md = mdGenerate(); 285 285 psMetadataIterator *iter = psMetadataIteratorAlloc(md, PS_LIST_HEAD, "^" MULTI_NAME "$"); … … 297 297 298 298 { 299 diag("With regular expressions, jumping in halfway through (using set), backwards");299 note("With regular expressions, jumping in halfway through (using set), backwards"); 300 300 psMetadata *md = mdGenerate(); 301 301 psMetadataIterator *iter = psMetadataIteratorAlloc(md, PS_LIST_HEAD, "^" MULTI_NAME "$"); -
trunk/psLib/test/types/tap_psMetadata_copying.c
r9805 r10819 23 23 int main(void) 24 24 { 25 plan_tests( 36);26 27 diag("psMetadataCopy and psMetadataItemCopy tests");25 plan_tests(40); 26 27 note("psMetadataCopy and psMetadataItemCopy tests"); 28 28 29 29 testMetadataCopy(); … … 36 36 void testMetadataCopy(void) 37 37 { 38 diag(" >>>Test 1: psMetadataCopy");38 note(" >>>Test 1: psMetadataCopy"); 39 39 psMetadata *in = NULL; 40 40 psMetadata *out = NULL; … … 165 165 void testMetadataItemCopy(void) 166 166 { 167 diag(" >>>Test 2: psMetadataItemCopy");167 note(" >>>Test 2: psMetadataItemCopy"); 168 168 169 169 //Return NULL for NULL input psMetadataItem … … 426 426 void testMetadataItemTransfer(void) 427 427 { 428 diag(" >>>Test 3: psMetadataItemTransfer");428 note(" >>>Test 3: psMetadataItemTransfer"); 429 429 psMetadata *out = psMetadataAlloc(); 430 430 psMetadata *in = psMetadataAlloc(); -
trunk/psLib/test/types/tap_psMetadata_creating.c
r8995 r10819 25 25 int main(void) 26 26 { 27 plan_tests(4 2);28 29 diag("psMetadata & psMetadataItem Creation Functions");27 plan_tests(46); 28 29 note("psMetadata & psMetadataItem Creation Functions"); 30 30 31 31 testItemAllocs(); … … 38 38 void testItemAllocs(void) 39 39 { 40 diag(" >>>Test 1: psMetadataItemAlloc Fxns");40 note(" >>>Test 1: psMetadataItemAlloc Fxns"); 41 41 psMetadataItem *itemStr = psMetadataItemAllocStr("itemStr", "", "itemStr"); 42 42 psMetadataItem *itemF32 = psMetadataItemAllocF32("itemF32", "", 6.66); … … 263 263 void testMDAlloc_AddItem(void) 264 264 { 265 diag(" >>>Test 2: psMetadataAlloc & psMetadataAdd Fxns");265 note(" >>>Test 2: psMetadataAlloc & psMetadataAdd Fxns"); 266 266 psMetadata *md = NULL; 267 267 md = psMetadataAlloc(); … … 438 438 void testIterAlloc(void) 439 439 { 440 diag(" >>>Test 3: psMetadataIteratorAlloc");440 note(" >>>Test 3: psMetadataIteratorAlloc"); 441 441 psMetadata *md = psMetadataAlloc(); 442 442 psMetadata *md2 = NULL; -
trunk/psLib/test/types/tap_psMetadata_manip.c
r9582 r10819 23 23 int main(void) 24 24 { 25 plan_tests( 48);26 27 diag("psMetadataLookup, Remove, and Iterator Fxns");25 plan_tests(52); 26 27 note("psMetadataLookup, Remove, and Iterator Fxns"); 28 28 29 29 testLookups(); … … 36 36 void testLookups(void) 37 37 { 38 diag(" >>>Test 1: psMetadataLookup Functions");38 note(" >>>Test 1: psMetadataLookup Functions"); 39 39 psMetadata *md = psMetadataAlloc(); 40 40 psMetadataAddStr(md, PS_LIST_TAIL, "itemStr", 0, "I am a string", "GNIRTS"); … … 315 315 void testRemoves(void) 316 316 { 317 diag(" >>>Test 2: psMetadataRemove Functions");317 note(" >>>Test 2: psMetadataRemove Functions"); 318 318 psMetadata *md = psMetadataAlloc(); 319 319 psMetadataAddStr(md, PS_LIST_TAIL, "itemStr", 0, "I am a string", "GNIRTS"); … … 403 403 void testIter(void) 404 404 { 405 diag(" >>>Test 3: psMetadataIterator Functions");405 note(" >>>Test 3: psMetadataIterator Functions"); 406 406 psMetadata *md = psMetadataAlloc(); 407 407 psMetadataAddS32(md, PS_LIST_HEAD, "S32_1", PS_META_NO_REPLACE, "", 1); -
trunk/psLib/test/types/tap_psMetadata_polynomials.c
r9597 r10819 24 24 int main(void) 25 25 { 26 plan_tests( 89);27 28 diag("psPolynomial(1D, 2D, 3D, & 4D)(to/from)Metadata tests");26 plan_tests(96); 27 28 note("psPolynomial(1D, 2D, 3D, & 4D)(to/from)Metadata tests"); 29 29 30 30 test1Dcase(); … … 39 39 void test1Dcase(void) 40 40 { 41 diag(" >>>Test 1: psPolynomial1DtoMetadata & psPolynomial1DfromMetadata functions");41 note(" >>>Test 1: psPolynomial1DtoMetadata & psPolynomial1DfromMetadata functions"); 42 42 psMetadata *md = psMetadataAlloc(); 43 43 psPolynomial1D *p1d = psPolynomial1DAlloc(PS_POLYNOMIAL_ORD, 1); … … 50 50 //Return a valid metadata containing a polynomial-metadata structure 51 51 { 52 diag("example of 1DtoMD using the names not the sequence");52 note ("example of 1DtoMD using the names not the sequence"); 53 53 54 54 ok( psPolynomial1DtoMetadata(md, p1d, "polyMD"), … … 198 198 void test2Dcase(void) 199 199 { 200 diag(" >>>Test 2: psPolynomial2DtoMetadata & psPolynomial2DfromMetadata functions");200 note(" >>>Test 2: psPolynomial2DtoMetadata & psPolynomial2DfromMetadata functions"); 201 201 psMetadata *md = psMetadataAlloc(); 202 202 psPolynomial2D *p2d = psPolynomial2DAlloc(PS_POLYNOMIAL_ORD, 1, 1); … … 216 216 "psPolynomial2DtoMetadata: return true for valid inputs."); 217 217 218 psMetadataConfigWrite (md, "test.md");218 // psMetadataConfigWrite (md, "test.md"); 219 219 220 220 //XXX ok (0, "these tests are relying on the ORDER of the MD components not the NAMES"); … … 249 249 //Return a valid metadata containing a polynomial-metadata structure 250 250 { 251 diag("example of 2DtoMD using the names not the sequence");251 note ("example of 2DtoMD using the names not the sequence"); 252 252 253 253 ok( psPolynomial2DtoMetadata(md, p2d, "polyMD"), 254 254 "psPolynomial2DtoMetadata: return true for valid inputs."); 255 255 256 psMetadataConfigWrite (md, "test.md");256 // psMetadataConfigWrite (md, "test.md"); 257 257 258 258 // of the components. these seem like irrelevant tests. … … 418 418 void test3Dcase(void) 419 419 { 420 diag(" >>>Test 3: psPolynomial3DtoMetadata & psPolynomial3DfromMetadata functions");420 note(" >>>Test 3: psPolynomial3DtoMetadata & psPolynomial3DfromMetadata functions"); 421 421 psMetadata *md = psMetadataAlloc(); 422 422 psPolynomial3D *p3d = psPolynomial3DAlloc(PS_POLYNOMIAL_ORD, 1, 1, 1); … … 616 616 void test4Dcase(void) 617 617 { 618 diag(" >>>Test 4: psPolynomial4DtoMetadata & psPolynomial4DfromMetadata functions");618 note(" >>>Test 4: psPolynomial4DtoMetadata & psPolynomial4DfromMetadata functions"); 619 619 psMetadata *md = psMetadataAlloc(); 620 620 psPolynomial4D *p4d = psPolynomial4DAlloc(PS_POLYNOMIAL_ORD, 1, 1, 1, 1); -
trunk/psLib/test/types/tap_psMetadata_printing.c
r9900 r10819 23 23 int main(void) 24 24 { 25 plan_tests(3 0);26 27 diag("psMetadataPrint and psMetadataItemPrint tests");25 plan_tests(33); 26 27 note("psMetadataPrint and psMetadataItemPrint tests"); 28 28 29 29 testMetaPrint(); … … 180 180 void testMetaPrint(void) 181 181 { 182 diag(" >>Test 1: psMetadataPrint");182 note(" >>Test 1: psMetadataPrint"); 183 183 FILE *fd = fopen("psMetadataPrint.out", "w+"); 184 184 FILE *fd_read = fopen("Makefile", "r"); … … 268 268 void testMetaItemPrint(void) 269 269 { 270 diag(" >>Test2: psMetadataItemPrint");270 note(" >>Test2: psMetadataItemPrint"); 271 271 FILE *fd; 272 272 //bool psMetadataItemPrint(FILE * fd, const char *format, const psMetadataItem* item) … … 402 402 { 403 403 fclose(fd); 404 unlink ("psMetadataItemPrint.out"); 404 405 psFree(item1); 405 406 psFree(item2); -
trunk/psLib/test/types/tap_psPixels_all.c
r8966 r10819 23 23 int main(void) 24 24 { 25 plan_tests( 38);26 27 diag("Tests for psPixels Functions");25 plan_tests(41); 26 27 note("Tests for psPixels Functions"); 28 28 29 29 testPixelsCreate(); … … 35 35 void testPixelsCreate(void) 36 36 { 37 diag(" >>>Test 1: psPixels Creation Fxns");37 note(" >>>Test 1: psPixels Creation Fxns"); 38 38 39 39 //Return allocated psPixels of length 0 with NULL data. … … 123 123 void testPixelsManip(void) 124 124 { 125 diag(" >>>Test 2: psPixels Manipulation Fxns");125 note(" >>>Test 2: psPixels Manipulation Fxns"); 126 126 127 127 //Tests for psPixelsSet
Note:
See TracChangeset
for help on using the changeset viewer.
