Changeset 4426 for trunk/psLib/test/dataManip/tst_psFunc00.c
- Timestamp:
- Jun 28, 2005, 5:23:19 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/dataManip/tst_psFunc00.c (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/dataManip/tst_psFunc00.c
r4422 r4426 14 14 * orders are created. 15 15 * 16 * @version $Revision: 1.2 2$ $Name: not supported by cvs2svn $17 * @date $Date: 2005-06-29 0 0:43:46$16 * @version $Revision: 1.23 $ $Name: not supported by cvs2svn $ 17 * @date $Date: 2005-06-29 03:23:19 $ 18 18 * 19 19 * Copyright 2004-2005 Maui High Performance Computing Center, Univ. of Hawaii … … 99 99 psFree(my1DPoly); 100 100 101 / / Attempt to allocate with negative order102 psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");103 if(psPolynomial1DAlloc(-1,PS_POLYNOMIAL_ORD) != NULL) {104 psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");105 return 7;106 }107 101 /* // Attempt to allocate with negative order 102 psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms"); 103 if(psPolynomial1DAlloc(-1,PS_POLYNOMIAL_ORD) != NULL) { 104 psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL"); 105 return 7; 106 } 107 */ 108 108 return 0; 109 109 } … … 151 151 psFree(my1DDPoly); 152 152 153 / / Attempt to allocate with negative order154 psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");155 if(psDPolynomial1DAlloc(-1,PS_POLYNOMIAL_ORD) != NULL) {156 psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");157 return 7;158 }159 153 /* // Attempt to allocate with negative order 154 psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms"); 155 if(psDPolynomial1DAlloc(-1,PS_POLYNOMIAL_ORD) != NULL) { 156 psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL"); 157 return 7; 158 } 159 */ 160 160 return 0; 161 161 } … … 211 211 psFree(my2DPoly); 212 212 213 / / Attempt to allocate with negative order214 psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");215 if(psPolynomial2DAlloc(-1,1,PS_POLYNOMIAL_ORD) != NULL) {216 psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");217 return 8;218 }219 // Attempt to allocate with negative order220 psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");221 if(psPolynomial2DAlloc(1,-1,PS_POLYNOMIAL_ORD) != NULL) {222 psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");223 return 9;224 }225 213 /* // Attempt to allocate with negative order 214 psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms"); 215 if(psPolynomial2DAlloc(-1,1,PS_POLYNOMIAL_ORD) != NULL) { 216 psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL"); 217 return 8; 218 } 219 // Attempt to allocate with negative order 220 psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms"); 221 if(psPolynomial2DAlloc(1,-1,PS_POLYNOMIAL_ORD) != NULL) { 222 psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL"); 223 return 9; 224 } 225 */ 226 226 return 0; 227 227 } … … 276 276 } 277 277 psFree(my2DDPoly); 278 279 // Attempt to allocate with negative order280 psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");281 if(psDPolynomial2DAlloc(-1,1,PS_POLYNOMIAL_ORD) != NULL) {282 psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");283 return 8;284 }285 // Attempt to allocate with negative order286 psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");287 if(psDPolynomial2DAlloc(1,-1,PS_POLYNOMIAL_ORD) != NULL) {288 psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");289 return 9;290 }291 278 /* 279 // Attempt to allocate with negative order 280 psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms"); 281 if(psDPolynomial2DAlloc(-1,1,PS_POLYNOMIAL_ORD) != NULL) { 282 psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL"); 283 return 8; 284 } 285 // Attempt to allocate with negative order 286 psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms"); 287 if(psDPolynomial2DAlloc(1,-1,PS_POLYNOMIAL_ORD) != NULL) { 288 psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL"); 289 return 9; 290 } 291 */ 292 292 return 0; 293 293 } … … 351 351 psFree(my3DPoly); 352 352 353 / / Attempt to allocate with negative order354 psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");355 if(psPolynomial3DAlloc(-1,1,1,PS_POLYNOMIAL_ORD) != NULL) {356 psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");357 return 9;358 }359 // Attempt to allocate with negative order360 psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");361 if(psPolynomial3DAlloc(1,-1,1,PS_POLYNOMIAL_ORD) != NULL) {362 psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");363 return 10;364 }365 // Attempt to allocate with negative order366 psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");367 if(psPolynomial3DAlloc(1,1,-1,PS_POLYNOMIAL_ORD) != NULL) {368 psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");369 return 11;370 }371 353 /* // Attempt to allocate with negative order 354 psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms"); 355 if(psPolynomial3DAlloc(-1,1,1,PS_POLYNOMIAL_ORD) != NULL) { 356 psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL"); 357 return 9; 358 } 359 // Attempt to allocate with negative order 360 psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms"); 361 if(psPolynomial3DAlloc(1,-1,1,PS_POLYNOMIAL_ORD) != NULL) { 362 psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL"); 363 return 10; 364 } 365 // Attempt to allocate with negative order 366 psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms"); 367 if(psPolynomial3DAlloc(1,1,-1,PS_POLYNOMIAL_ORD) != NULL) { 368 psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL"); 369 return 11; 370 } 371 */ 372 372 return 0; 373 373 } … … 431 431 psFree(my3DDPoly); 432 432 433 / / Attempt to allocate with negative order434 psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");435 if(psDPolynomial3DAlloc(-1,1,1,PS_POLYNOMIAL_ORD) != NULL) {436 psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");437 return 9;438 }439 // Attempt to allocate with negative order440 psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");441 if(psDPolynomial3DAlloc(1,-1,1,PS_POLYNOMIAL_ORD) != NULL) {442 psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");443 return 10;444 }445 // Attempt to allocate with negative order446 psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");447 if(psDPolynomial3DAlloc(1,1,-1,PS_POLYNOMIAL_ORD) != NULL) {448 psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");449 return 11;450 }451 433 /* // Attempt to allocate with negative order 434 psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms"); 435 if(psDPolynomial3DAlloc(-1,1,1,PS_POLYNOMIAL_ORD) != NULL) { 436 psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL"); 437 return 9; 438 } 439 // Attempt to allocate with negative order 440 psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms"); 441 if(psDPolynomial3DAlloc(1,-1,1,PS_POLYNOMIAL_ORD) != NULL) { 442 psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL"); 443 return 10; 444 } 445 // Attempt to allocate with negative order 446 psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms"); 447 if(psDPolynomial3DAlloc(1,1,-1,PS_POLYNOMIAL_ORD) != NULL) { 448 psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL"); 449 return 11; 450 } 451 */ 452 452 return 0; 453 453 } … … 519 519 psFree(my4DPoly); 520 520 521 / / Attempt to allocate with negative order522 psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");523 if(psPolynomial4DAlloc(-1,1,1,1,PS_POLYNOMIAL_ORD) != NULL) {524 psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");525 return 10;526 }527 // Attempt to allocate with negative order528 psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");529 if(psPolynomial4DAlloc(1,-1,1,1,PS_POLYNOMIAL_ORD) != NULL) {530 psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");531 return 11;532 }533 // Attempt to allocate with negative order534 psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");535 if(psPolynomial4DAlloc(1,1,-1,1,PS_POLYNOMIAL_ORD) != NULL) {536 psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");537 return 12;538 }539 // Attempt to allocate with negative order540 psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");541 if(psPolynomial4DAlloc(1,1,1,-1,PS_POLYNOMIAL_ORD) != NULL) {542 psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");543 return 13;544 }545 521 /* // Attempt to allocate with negative order 522 psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms"); 523 if(psPolynomial4DAlloc(-1,1,1,1,PS_POLYNOMIAL_ORD) != NULL) { 524 psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL"); 525 return 10; 526 } 527 // Attempt to allocate with negative order 528 psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms"); 529 if(psPolynomial4DAlloc(1,-1,1,1,PS_POLYNOMIAL_ORD) != NULL) { 530 psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL"); 531 return 11; 532 } 533 // Attempt to allocate with negative order 534 psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms"); 535 if(psPolynomial4DAlloc(1,1,-1,1,PS_POLYNOMIAL_ORD) != NULL) { 536 psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL"); 537 return 12; 538 } 539 // Attempt to allocate with negative order 540 psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms"); 541 if(psPolynomial4DAlloc(1,1,1,-1,PS_POLYNOMIAL_ORD) != NULL) { 542 psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL"); 543 return 13; 544 } 545 */ 546 546 return 0; 547 547 } … … 613 613 psFree(my4DDPoly); 614 614 615 / / Attempt to allocate with negative order616 psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");617 if(psDPolynomial4DAlloc(-1,1,1,1,PS_POLYNOMIAL_ORD) != NULL) {618 psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");619 return 10;620 }621 // Attempt to allocate with negative order622 psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");623 if(psDPolynomial4DAlloc(1,-1,1,1,PS_POLYNOMIAL_ORD) != NULL) {624 psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");625 return 11;626 }627 // Attempt to allocate with negative order628 psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");629 if(psDPolynomial4DAlloc(1,1,-1,1,PS_POLYNOMIAL_ORD) != NULL) {630 psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");631 return 12;632 }633 // Attempt to allocate with negative order634 psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");635 if(psDPolynomial4DAlloc(1,1,1,-1,PS_POLYNOMIAL_ORD) != NULL) {636 psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");637 return 13;638 }639 640 return 0; 641 } 642 615 /* // Attempt to allocate with negative order 616 psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms"); 617 if(psDPolynomial4DAlloc(-1,1,1,1,PS_POLYNOMIAL_ORD) != NULL) { 618 psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL"); 619 return 10; 620 } 621 // Attempt to allocate with negative order 622 psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms"); 623 if(psDPolynomial4DAlloc(1,-1,1,1,PS_POLYNOMIAL_ORD) != NULL) { 624 psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL"); 625 return 11; 626 } 627 // Attempt to allocate with negative order 628 psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms"); 629 if(psDPolynomial4DAlloc(1,1,-1,1,PS_POLYNOMIAL_ORD) != NULL) { 630 psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL"); 631 return 12; 632 } 633 // Attempt to allocate with negative order 634 psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms"); 635 if(psDPolynomial4DAlloc(1,1,1,-1,PS_POLYNOMIAL_ORD) != NULL) { 636 psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL"); 637 return 13; 638 } 639 */ 640 return 0; 641 } 642
Note:
See TracChangeset
for help on using the changeset viewer.
