Changeset 13084 for trunk/psLib/test/math
- Timestamp:
- Apr 30, 2007, 2:08:52 PM (19 years ago)
- Location:
- trunk/psLib/test/math
- Files:
-
- 3 edited
-
tap_psHist00.c (modified) (1 diff)
-
tap_psPolynomial.c (modified) (7 diffs)
-
tap_psRandom.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/math/tap_psHist00.c
r10813 r13084 55 55 // XXX: How should we test these kinds of things? 56 56 if (0) { 57 psLogMsg(__func__,PS_LOG_INFO,"Following should generate an error message.");57 // Following should generate an error message 58 58 psHistogram *myHist = psHistogramAlloc(higher, lower, 1); 59 59 if (myHist != NULL) { -
trunk/psLib/test/math/tap_psPolynomial.c
r10820 r13084 16 16 * XXX: Compare to FLT_EPSILON 17 17 * 18 * @version $Revision: 1. 1$ $Name: not supported by cvs2svn $19 * @date $Date: 200 6-12-21 20:05:12 $18 * @version $Revision: 1.2 $ $Name: not supported by cvs2svn $ 19 * @date $Date: 2007-05-01 00:08:52 $ 20 20 * 21 21 * Copyright 2004-2005 Maui High Performance Computing Center, Univ. of Hawaii … … 77 77 if (0) { 78 78 // Attempt to allocate with negative order 79 psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");79 // Following should generate error msg for negative terms 80 80 if (psPolynomial1DAlloc(PS_POLYNOMIAL_ORD, -1) != NULL) { 81 81 diag("psPolynomial1DAlloc() Returned structure but expected NULL"); … … 124 124 if (0) { 125 125 // Attempt to allocate with negative order 126 psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");126 // Following should generate error msg for negative terms 127 127 if (psPolynomial2DAlloc(PS_POLYNOMIAL_ORD, -1, 1) != NULL) { 128 128 diag("psPolynomial2DAlloc() returned structure but expected NULL"); 129 129 } 130 130 // Attempt to allocate with negative order 131 psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");131 // Following should generate error msg for negative terms 132 132 if (psPolynomial2DAlloc(PS_POLYNOMIAL_ORD, 1, -1) != NULL) { 133 133 diag("psPolynomial2DAlloc() returned structure but expected NULL"); … … 181 181 if (0) { 182 182 // Attempt to allocate with negative order 183 psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");183 // Following should generate error msg for negative terms 184 184 if (psPolynomial3DAlloc(PS_POLYNOMIAL_ORD, -1, 1, 1) != NULL) { 185 185 diag("psPolynomial3DAlloc(): returned structure but expected NULL"); 186 186 } 187 187 // Attempt to allocate with negative order 188 psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");188 // Following should generate error msg for negative terms 189 189 if (psPolynomial3DAlloc(PS_POLYNOMIAL_ORD, 1, -1, 1) != NULL) { 190 190 diag("psPolynomial3DAlloc() returned structure but expected NULL"); 191 191 } 192 192 // Attempt to allocate with negative order 193 psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");193 // Following should generate error msg for negative terms 194 194 if (psPolynomial3DAlloc(PS_POLYNOMIAL_ORD, 1, 1, -1) != NULL) { 195 195 diag("psPolynomial3DAlloc(): returned structure but expected NULL"); … … 247 247 if (0) { 248 248 // Attempt to allocate with negative order 249 psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");249 // Following should generate error msg for negative terms 250 250 if (psPolynomial4DAlloc(PS_POLYNOMIAL_ORD, -1, 1, 1, 1) != NULL) { 251 251 diag("psPolynomial4DAlloc(): returned structure but expected NULL"); 252 252 } 253 253 // Attempt to allocate with negative order 254 psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");254 // Following should generate error msg for negative terms 255 255 if (psPolynomial4DAlloc(PS_POLYNOMIAL_ORD, 1, -1, 1, 1) != NULL) { 256 256 diag("psPolynomial4DAlloc(): returned structure but expected NULL"); … … 258 258 } 259 259 // Attempt to allocate with negative order 260 psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");260 // Following should generate error msg for negative terms 261 261 if (psPolynomial4DAlloc(PS_POLYNOMIAL_ORD, 1, 1, -1, 1) != NULL) { 262 262 diag("psPolynomial4DAlloc(): returned structure but expected NULL"); … … 264 264 } 265 265 // Attempt to allocate with negative order 266 psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");266 // Following should generate error msg for negative terms 267 267 if (psPolynomial4DAlloc(PS_POLYNOMIAL_ORD, 1, 1, 1, -1) != NULL) { 268 268 diag("psPolynomial4DAlloc(): returned structure but expected NULL"); -
trunk/psLib/test/math/tap_psRandom.c
r12607 r13084 267 267 psFree(myRNG1); 268 268 269 psLogMsg(__func__,PS_LOG_INFO,"Reset a NULL psRandom variable, should generate an error message");269 // Reset a NULL psRandom variable, should generate an error message 270 270 psRandomReset(NULL,SEED); 271 271 }
Note:
See TracChangeset
for help on using the changeset viewer.
