Changeset 12781 for trunk/psLib/test/math
- Timestamp:
- Apr 10, 2007, 11:09:31 AM (19 years ago)
- Location:
- trunk/psLib/test/math
- Files:
-
- 3 edited
-
tap_psPolynomialEval1D.c (modified) (2 diffs)
-
tap_psStats00.c (modified) (2 diffs)
-
tap_psStats09.c (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/math/tap_psPolynomialEval1D.c
r11422 r12781 4 4 * ORD and CHEB type polynomials. 5 5 * 6 * @version $Revision: 1. 5$ $Name: not supported by cvs2svn $7 * @date $Date: 2007-0 1-30 04:49:52$6 * @version $Revision: 1.6 $ $Name: not supported by cvs2svn $ 7 * @date $Date: 2007-04-10 21:09:30 $ 8 8 * 9 9 * XXX: Probably should test single- and multi-dimensional polynomials in … … 75 75 skip_end(); 76 76 psFree(polyOrd); 77 ok(!psMemCheckLeaks (id, NULL, NULL, false), "no memory leaks");77 ok(!psMemCheckLeaks(id, NULL, NULL, false), "no memory leaks"); 78 78 } 79 79 -
trunk/psLib/test/math/tap_psStats00.c
r12607 r12781 9 9 * @author GLG, MHPCC 10 10 * 11 * @version $Revision: 1. 5$ $Name: not supported by cvs2svn $12 * @date $Date: 2007-0 3-27 22:52:03$11 * @version $Revision: 1.6 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2007-04-10 21:09:30 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, Univ. of Hawaii … … 242 242 } 243 243 bool result = psVectorStats(myStats, myVector, NULL, maskVector, 1); 244 ok(result == false, "psVectorStats suceeded(All values masked)");244 ok(result == true, "psVectorStats() returned TRUE (All values masked)"); 245 245 ok(isnan(myStats->sampleMean), "psVectorStats() returned NAN"); 246 246 ok(!psMemCheckLeaks (id, NULL, NULL, false), "no memory leaks"); -
trunk/psLib/test/math/tap_psStats09.c
r11686 r12781 115 115 for (psS32 i=0;i<numData;i++) { 116 116 errors->data.F32[i] = ERRORS; 117 errors->n++;118 117 } 119 118 } … … 125 124 for (psS32 i=0;i<numData;i++) { 126 125 errors->data.F64[i] = ERRORS; 127 errors->n++;128 126 } 129 127 } … … 135 133 for (psS32 i=0;i<numData;i++) { 136 134 errors->data.S8[i] = (psS8) ERRORS; 137 errors->n++;138 135 } 139 136 } … … 145 142 for (psS32 i=0;i<numData;i++) { 146 143 errors->data.U16[i] = (psU16) ERRORS; 147 errors->n++;148 144 } 149 145 } … … 155 151 for (psS32 i=0;i<numData;i++) { 156 152 errors->data.S32[i] = (psS32) ERRORS; 157 errors->n++;158 153 } 159 154 } … … 171 166 for (psS32 i=0;i<numData;i++) { 172 167 mask->data.U8[i] = (psU8) 0; 173 mask->n++;174 168 } 175 169 } … … 181 175 for (psS32 i=0;i<numData;i++) { 182 176 mask->data.S32[i] = (psS32) 0; 183 mask->n++;184 177 } 185 178 } … … 282 275 bool rc = psVectorStats(myStats, in, errors, outliers, 1); 283 276 if (rc == false) { 284 diag("TEST ERROR: the psVectorStats() function returned NULL .\n");277 diag("TEST ERROR: the psVectorStats() function returned NULL (a).\n"); 285 278 testStatus = false; 286 279 } else { … … 301 294 if (rc == false) { 302 295 if (expectedRC == true) { 303 diag("TEST ERROR: the psVectorStats() function returned NULL .\n");296 diag("TEST ERROR: the psVectorStats() function returned NULL (b).\n"); 304 297 testStatus = false; 305 298 }
Note:
See TracChangeset
for help on using the changeset viewer.
