Changeset 11422
- Timestamp:
- Jan 29, 2007, 6:49:52 PM (19 years ago)
- Location:
- trunk/psLib/test/math
- Files:
-
- 4 edited
-
tap_psPolynomialEval1D.c (modified) (2 diffs)
-
tap_psPolynomialEval2D.c (modified) (2 diffs)
-
tap_psPolynomialEval3D.c (modified) (2 diffs)
-
tap_psPolynomialEval4D.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/math/tap_psPolynomialEval1D.c
r11397 r11422 4 4 * ORD and CHEB type polynomials. 5 5 * 6 * @version $Revision: 1. 4$ $Name: not supported by cvs2svn $7 * @date $Date: 2007-01-30 0 0:11:31$6 * @version $Revision: 1.5 $ $Name: not supported by cvs2svn $ 7 * @date $Date: 2007-01-30 04:49:52 $ 8 8 * 9 9 * XXX: Probably should test single- and multi-dimensional polynomials in … … 106 106 } 107 107 108 108 109 // Allocate polynomial with unallowable type 110 // XXX: This is wierd: why the skip()? 109 111 { 110 112 psMemId id = psMemGetId(); -
trunk/psLib/test/math/tap_psPolynomialEval2D.c
r11397 r11422 4 4 * ORD and CHEB type polynomials. 5 5 * 6 * @version $Revision: 1. 3$ $Name: not supported by cvs2svn $7 * @date $Date: 2007-01-30 0 0:11:31$6 * @version $Revision: 1.4 $ $Name: not supported by cvs2svn $ 7 * @date $Date: 2007-01-30 04:49:52 $ 8 8 * 9 9 * Copyright 2004-2005 Maui High Performance Computing Center, Univ. of Hawaii … … 146 146 psMemId id = psMemGetId(); 147 147 psPolynomial2D* polyOrd = psPolynomial2DAlloc(99, TERMS-1, TERMS-1); 148 ok(polyOrd != NULL, "Ordinary polynomial allocation successful");149 skip_start(polyOrd == NULL, 1, "Skipping tests because psPolynomial2DAlloc() failed");150 // Attempt to evaluate invalid polynomial type151 psF64 result = psPolynomial2DEval(polyOrd,0.0, 0.0);152 ok(isnan(result), "psPolynomial2DEval() did not return NAN, as expected");153 skip_end();148 ok(polyOrd == NULL, "psPolynomial2DAlloc() returned NULL with unallowed tpye"); 149 // skip_start(polyOrd == NULL, 1, "Skipping tests because psPolynomial2DAlloc() failed"); 150 // // Attempt to evaluate invalid polynomial type 151 // psF64 result = psPolynomial2DEval(polyOrd,0.0, 0.0); 152 // ok(isnan(result), "psPolynomial2DEval() did not return NAN, as expected"); 153 // skip_end(); 154 154 psFree(polyOrd); 155 155 ok(!psMemCheckLeaks (id, NULL, NULL, false), "no memory leaks"); -
trunk/psLib/test/math/tap_psPolynomialEval3D.c
r11397 r11422 4 4 * ORD and CHEB type polynomials. 5 5 * 6 * @version $Revision: 1. 3$ $Name: not supported by cvs2svn $7 * @date $Date: 2007-01-30 0 0:11:31$6 * @version $Revision: 1.4 $ $Name: not supported by cvs2svn $ 7 * @date $Date: 2007-01-30 04:49:52 $ 8 8 * 9 9 * Copyright 2004-2005 Maui High Performance Computing Center, Univ. of Hawaii … … 204 204 205 205 // Allocate polynomial with unallowed type 206 // XXX: This is odd. 206 207 { 207 208 psMemId id = psMemGetId(); 208 209 psPolynomial3D* polyOrd = psPolynomial3DAlloc(99, TERMS-1, TERMS-1, TERMS-1); 209 ok(polyOrd != NULL, "Ordinary polynomial allocation successful");210 skip_start(polyOrd == NULL, 1, "Skipping tests because psPolynomial3DAlloc() failed");211 // Attempt to evaluation invalid polynomial type212 psF64 result = psPolynomial3DEval(polyOrd,0.0, 0.0, 0.0);213 ok(isnan(result), "psPolynomial3DEval() did not return NAN, as expected");214 skip_end();210 ok(polyOrd == NULL, "psPolynomial3DAlloc() returned NULL with unallowed type"); 211 // skip_start(polyOrd == NULL, 1, "Skipping tests because psPolynomial3DAlloc() failed"); 212 // // Attempt to evaluation invalid polynomial type 213 // psF64 result = psPolynomial3DEval(polyOrd,0.0, 0.0, 0.0); 214 // ok(isnan(result), "psPolynomial3DEval() did not return NAN, as expected"); 215 // skip_end(); 215 216 psFree(polyOrd); 216 217 ok(!psMemCheckLeaks (id, NULL, NULL, false), "no memory leaks"); -
trunk/psLib/test/math/tap_psPolynomialEval4D.c
r11397 r11422 4 4 * ORD and CHEB type polynomials. 5 5 * 6 * @version $Revision: 1. 3$ $Name: not supported by cvs2svn $7 * @date $Date: 2007-01-30 0 0:11:31$6 * @version $Revision: 1.4 $ $Name: not supported by cvs2svn $ 7 * @date $Date: 2007-01-30 04:49:52 $ 8 8 * 9 9 * Copyright 2004-2005 Maui High Performance Computing Center, Univ. of Hawaii … … 444 444 445 445 446 // XXX: This is wierd: why the skip()? 446 447 // Allocate polynomial with unallowed type 447 448 {
Note:
See TracChangeset
for help on using the changeset viewer.
