Changeset 4422 for trunk/psLib/test
- Timestamp:
- Jun 28, 2005, 2:43:46 PM (21 years ago)
- Location:
- trunk/psLib/test
- Files:
-
- 7 edited
-
astronomy/tst_psCoord.c (modified) (4 diffs)
-
dataManip/tst_psFunc00.c (modified) (3 diffs)
-
dataManip/verified/tst_psFunc00.stderr (modified) (4 diffs)
-
dataManip/verified/tst_psFunc08.stderr (modified) (1 diff)
-
dataManip/verified/tst_psFunc09.stderr (modified) (1 diff)
-
dataManip/verified/tst_psFunc10.stderr (modified) (1 diff)
-
dataManip/verified/tst_psFunc11.stderr (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/astronomy/tst_psCoord.c
r3682 r4422 6 6 * @author GLG, MHPCC 7 7 * 8 * @version $Revision: 1.2 8$ $Name: not supported by cvs2svn $9 * @date $Date: 2005-0 4-07 20:27:41$8 * @version $Revision: 1.29 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2005-06-29 00:43:46 $ 10 10 * 11 11 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 104 104 } 105 105 106 #define N W_TERMS 2107 #define N X_TERMS 3108 #define N Y_TERMS 4109 #define N Z_TERMS 5106 #define NX_TERMS 2 107 #define NY_TERMS 3 108 #define NZ_TERMS 4 109 #define NT_TERMS 5 110 110 111 111 psS32 testPlaneTransformAlloc( void ) … … 170 170 { 171 171 // Invoke function with known parameters 172 psPlaneDistort *myPD = psPlaneDistortAlloc(N W_TERMS, NX_TERMS, NY_TERMS, NZ_TERMS);172 psPlaneDistort *myPD = psPlaneDistortAlloc(NX_TERMS, NY_TERMS, NZ_TERMS, NT_TERMS); 173 173 174 174 // Verify NULL is not returned … … 178 178 } 179 179 // Verify the terms are properly set after allocation 180 if (myPD->x->nW != NW_TERMS) {181 psError(PS_ERR_UNKNOWN,true,"myPD->x->nW is %d, should be %d",182 myPD->x->nW, NW_TERMS);183 return 2;184 }185 if (myPD->y->nW != NW_TERMS) {186 psError(PS_ERR_UNKNOWN,true,"myPD->y->nW is %d, should be %d",187 myPD->y->nW, NW_TERMS);188 return 3;189 }190 180 if (myPD->x->nX != NX_TERMS) { 191 181 psError(PS_ERR_UNKNOWN,true,"myPD->x->nX is %d, should be %d", 192 182 myPD->x->nX, NX_TERMS); 193 return 4;183 return 2; 194 184 } 195 185 if (myPD->y->nX != NX_TERMS) { 196 186 psError(PS_ERR_UNKNOWN,true,"myPD->y->nX is %d, should be %d", 197 187 myPD->y->nX, NX_TERMS); 198 return 5;188 return 3; 199 189 } 200 190 if (myPD->x->nY != NY_TERMS) { 201 191 psError(PS_ERR_UNKNOWN,true,"myPD->x->nY is %d, should be %d", 202 192 myPD->x->nY, NY_TERMS); 203 return 6;193 return 4; 204 194 } 205 195 if (myPD->y->nY != NY_TERMS) { 206 196 psError(PS_ERR_UNKNOWN,true,"myPD->y->nY is %d, should be %d", 207 197 myPD->y->nY, NY_TERMS); 208 return 7;198 return 5; 209 199 } 210 200 if (myPD->x->nZ != NZ_TERMS) { 211 201 psError(PS_ERR_UNKNOWN,true,"myPD->x->nZ is %d, should be %d", 212 202 myPD->x->nZ, NZ_TERMS); 213 return 8;203 return 6; 214 204 } 215 205 if (myPD->y->nZ != NZ_TERMS) { 216 206 psError(PS_ERR_UNKNOWN,true,"myPD->y->nZ is %d, should be %d", 217 207 myPD->y->nZ, NZ_TERMS); 208 return 7; 209 } 210 if (myPD->x->nT != NT_TERMS) { 211 psError(PS_ERR_UNKNOWN,true,"myPD->x->nT is %d, should be %d", 212 myPD->x->nT, NT_TERMS); 213 return 8; 214 } 215 if (myPD->y->nT != NT_TERMS) { 216 psError(PS_ERR_UNKNOWN,true,"myPD->y->nT is %d, should be %d", 217 myPD->y->nT, NT_TERMS); 218 218 return 9; 219 219 } -
trunk/psLib/test/dataManip/tst_psFunc00.c
r3682 r4422 14 14 * orders are created. 15 15 * 16 * @version $Revision: 1.2 1$ $Name: not supported by cvs2svn $17 * @date $Date: 2005-0 4-07 20:27:41$16 * @version $Revision: 1.22 $ $Name: not supported by cvs2svn $ 17 * @date $Date: 2005-06-29 00:43:46 $ 18 18 * 19 19 * Copyright 2004-2005 Maui High Performance Computing Center, Univ. of Hawaii … … 466 466 } 467 467 // Verify polynomial structure members set properly 468 if(my4DPoly->n X!= ORDER) {469 psError(PS_ERR_UNKNOWN,true,"Number of terms %d not as expected %d", 470 my4DPoly->n X, ORDER);471 return 2; 472 } 473 // Verify polynomial structure members set properly 474 if(my4DPoly->n Y!= ORDER+1) {475 psError(PS_ERR_UNKNOWN,true,"Number of terms %d not as expected %d", 476 my4DPoly->n Y, ORDER+1);477 return 3; 478 } 479 // Verify polynomial structure members set properly 480 if(my4DPoly->n Z!= ORDER+2) {481 psError(PS_ERR_UNKNOWN,true,"Number of terms %d not as expected %d", 482 my4DPoly->n Z, ORDER+2);468 if(my4DPoly->nY != ORDER) { 469 psError(PS_ERR_UNKNOWN,true,"Number of terms %d not as expected %d", 470 my4DPoly->nY, ORDER); 471 return 2; 472 } 473 // Verify polynomial structure members set properly 474 if(my4DPoly->nZ != ORDER+1) { 475 psError(PS_ERR_UNKNOWN,true,"Number of terms %d not as expected %d", 476 my4DPoly->nZ, ORDER+1); 477 return 3; 478 } 479 // Verify polynomial structure members set properly 480 if(my4DPoly->nT != ORDER+2) { 481 psError(PS_ERR_UNKNOWN,true,"Number of terms %d not as expected %d", 482 my4DPoly->nT, ORDER+2); 483 483 return 4; 484 484 } 485 485 // Verify polynomial structure members set properly 486 if(my4DPoly->n W!= ORDER+3) {487 psError(PS_ERR_UNKNOWN,true,"Number of terms %d not as expected %d", 488 my4DPoly->n W, ORDER+3);486 if(my4DPoly->nX != ORDER+3) { 487 psError(PS_ERR_UNKNOWN,true,"Number of terms %d not as expected %d", 488 my4DPoly->nX, ORDER+3); 489 489 return 5; 490 490 } … … 560 560 } 561 561 // Verify polynomial structure members set properly 562 if(my4DDPoly->n X!= ORDER) {563 psError(PS_ERR_UNKNOWN,true,"Number of terms %d not as expected %d", 564 my4DDPoly->n X, ORDER);565 return 2; 566 } 567 // Verify polynomial structure members set properly 568 if(my4DDPoly->n Y!= ORDER+1) {569 psError(PS_ERR_UNKNOWN,true,"Number of terms %d not as expected %d", 570 my4DDPoly->n Y, ORDER+1);571 return 3; 572 } 573 // Verify polynomial structure members set properly 574 if(my4DDPoly->n Z!= ORDER+2) {575 psError(PS_ERR_UNKNOWN,true,"Number of terms %d not as expected %d", 576 my4DDPoly->n Z, ORDER+2);562 if(my4DDPoly->nY != ORDER) { 563 psError(PS_ERR_UNKNOWN,true,"Number of terms %d not as expected %d", 564 my4DDPoly->nY, ORDER); 565 return 2; 566 } 567 // Verify polynomial structure members set properly 568 if(my4DDPoly->nZ != ORDER+1) { 569 psError(PS_ERR_UNKNOWN,true,"Number of terms %d not as expected %d", 570 my4DDPoly->nZ, ORDER+1); 571 return 3; 572 } 573 // Verify polynomial structure members set properly 574 if(my4DDPoly->nT != ORDER+2) { 575 psError(PS_ERR_UNKNOWN,true,"Number of terms %d not as expected %d", 576 my4DDPoly->nT, ORDER+2); 577 577 return 4; 578 578 } 579 579 // Verify polynomial structure members set properly 580 if(my4DDPoly->n W!= ORDER+3) {581 psError(PS_ERR_UNKNOWN,true,"Number of terms %d not as expected %d", 582 my4DDPoly->n W, ORDER+3);580 if(my4DDPoly->nX != ORDER+3) { 581 psError(PS_ERR_UNKNOWN,true,"Number of terms %d not as expected %d", 582 my4DDPoly->nX, ORDER+3); 583 583 return 5; 584 584 } -
trunk/psLib/test/dataManip/verified/tst_psFunc00.stderr
r3769 r4422 59 59 Following should generate error msg for negative terms 60 60 <DATE><TIME>|<HOST>|E|psPolynomial4DAlloc (FILE:LINENO) 61 Error: nW is 0 or less.62 <DATE><TIME>|<HOST>|I|testPolynomial4DAlloc63 Following should generate error msg for negative terms64 <DATE><TIME>|<HOST>|E|psPolynomial4DAlloc (FILE:LINENO)65 61 Error: nX is 0 or less. 66 62 <DATE><TIME>|<HOST>|I|testPolynomial4DAlloc … … 72 68 <DATE><TIME>|<HOST>|E|psPolynomial4DAlloc (FILE:LINENO) 73 69 Error: nZ is 0 or less. 70 <DATE><TIME>|<HOST>|I|testPolynomial4DAlloc 71 Following should generate error msg for negative terms 72 <DATE><TIME>|<HOST>|E|psPolynomial4DAlloc (FILE:LINENO) 73 Error: nT is 0 or less. 74 74 75 75 ---> TESTPOINT PASSED (psPolynomialXD{psPolynomial4DAlloc} | tst_psFunc00.c) … … 135 135 Following should generate error msg for negative terms 136 136 <DATE><TIME>|<HOST>|E|psDPolynomial4DAlloc (FILE:LINENO) 137 Error: nW is 0 or less.138 <DATE><TIME>|<HOST>|I|testDPolynomial4DAlloc139 Following should generate error msg for negative terms140 <DATE><TIME>|<HOST>|E|psDPolynomial4DAlloc (FILE:LINENO)141 137 Error: nX is 0 or less. 142 138 <DATE><TIME>|<HOST>|I|testDPolynomial4DAlloc … … 148 144 <DATE><TIME>|<HOST>|E|psDPolynomial4DAlloc (FILE:LINENO) 149 145 Error: nZ is 0 or less. 146 <DATE><TIME>|<HOST>|I|testDPolynomial4DAlloc 147 Following should generate error msg for negative terms 148 <DATE><TIME>|<HOST>|E|psDPolynomial4DAlloc (FILE:LINENO) 149 Error: nT is 0 or less. 150 150 151 151 ---> TESTPOINT PASSED (psPolynomialXD{psDPolynomial4DAlloc} | tst_psFunc00.c) -
trunk/psLib/test/dataManip/verified/tst_psFunc08.stderr
r4405 r4422 55 55 Following should generate an error message for NULL polynomial 56 56 <DATE><TIME>|<HOST>|E|psDPolynomial1DEvalVector (FILE:LINENO) 57 Unallowable operation: polynomial myPoly or its coeffs is NULL.57 Unallowable operation: polynomial poly or its coeffs is NULL. 58 58 <DATE><TIME>|<HOST>|I|testDPoly1DEvalVector 59 59 Following should generate an error message for NULL input vector -
trunk/psLib/test/dataManip/verified/tst_psFunc09.stderr
r4405 r4422 63 63 Following should generate an error message for NULL polynomial 64 64 <DATE><TIME>|<HOST>|E|psDPolynomial2DEvalVector (FILE:LINENO) 65 Unallowable operation: polynomial myPoly or its coeffs is NULL.65 Unallowable operation: polynomial poly or its coeffs is NULL. 66 66 <DATE><TIME>|<HOST>|I|testDPoly2DEvalVector 67 67 Following should generate an error message for NULL input vector -
trunk/psLib/test/dataManip/verified/tst_psFunc10.stderr
r4405 r4422 71 71 Following should generate an error message for NULL polynomial 72 72 <DATE><TIME>|<HOST>|E|psDPolynomial3DEvalVector (FILE:LINENO) 73 Unallowable operation: polynomial myPoly or its coeffs is NULL.73 Unallowable operation: polynomial poly or its coeffs is NULL. 74 74 <DATE><TIME>|<HOST>|I|testDPoly3DEvalVector 75 75 Following should generate an error message for NULL input vector -
trunk/psLib/test/dataManip/verified/tst_psFunc11.stderr
r4405 r4422 79 79 Following should generate an error message for NULL polynomial 80 80 <DATE><TIME>|<HOST>|E|psDPolynomial4DEvalVector (FILE:LINENO) 81 Unallowable operation: polynomial myPoly or its coeffs is NULL. 82 <DATE><TIME>|<HOST>|I|testDPoly4DEvalVector 83 Following should generate an error message for NULL input vector 84 <DATE><TIME>|<HOST>|E|psDPolynomial4DEvalVector (FILE:LINENO) 85 Unallowable operation: psVector w or its data is NULL. 81 Unallowable operation: polynomial poly or its coeffs is NULL. 86 82 <DATE><TIME>|<HOST>|I|testDPoly4DEvalVector 87 83 Following should generate an error message for NULL input vector … … 97 93 Unallowable operation: psVector z or its data is NULL. 98 94 <DATE><TIME>|<HOST>|I|testDPoly4DEvalVector 99 Following should generate an error message for invalid input type95 Following should generate an error message for NULL input vector 100 96 <DATE><TIME>|<HOST>|E|psDPolynomial4DEvalVector (FILE:LINENO) 101 Unallowable operation: psVector x has incorrect type.97 Unallowable operation: psVector t or its data is NULL. 102 98 <DATE><TIME>|<HOST>|I|testDPoly4DEvalVector 103 99 Following should generate an error message for invalid input type … … 111 107 Following should generate an error message for invalid input type 112 108 <DATE><TIME>|<HOST>|E|psDPolynomial4DEvalVector (FILE:LINENO) 113 Unallowable operation: psVector w has incorrect type. 109 Unallowable operation: psVector t has incorrect type. 110 <DATE><TIME>|<HOST>|I|testDPoly4DEvalVector 111 Following should generate an error message for invalid input type 112 <DATE><TIME>|<HOST>|E|psDPolynomial4DEvalVector (FILE:LINENO) 113 Unallowable operation: psVector x has incorrect type. 114 114 115 115 ---> TESTPOINT PASSED (psPolynomialXDEval{psDPolynomial4DEvalVector} | tst_psFunc11.c)
Note:
See TracChangeset
for help on using the changeset viewer.
