IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 11422


Ignore:
Timestamp:
Jan 29, 2007, 6:49:52 PM (19 years ago)
Author:
gusciora
Message:

Corrected small problem with unallowed type allocation.

Location:
trunk/psLib/test/math
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/math/tap_psPolynomialEval1D.c

    r11397 r11422  
    44*  ORD and CHEB type polynomials.
    55*
    6 *  @version  $Revision: 1.4 $  $Name: not supported by cvs2svn $
    7 *  @date  $Date: 2007-01-30 00:11:31 $
     6*  @version  $Revision: 1.5 $  $Name: not supported by cvs2svn $
     7*  @date  $Date: 2007-01-30 04:49:52 $
    88*
    99*  XXX: Probably should test single- and multi-dimensional polynomials in
     
    106106    }
    107107
     108
    108109    // Allocate polynomial with unallowable type
     110    // XXX: This is wierd: why the skip()?
    109111    {
    110112        psMemId id = psMemGetId();
  • trunk/psLib/test/math/tap_psPolynomialEval2D.c

    r11397 r11422  
    44*  ORD and CHEB type polynomials.
    55*
    6 *  @version  $Revision: 1.3 $  $Name: not supported by cvs2svn $
    7 *  @date  $Date: 2007-01-30 00:11:31 $
     6*  @version  $Revision: 1.4 $  $Name: not supported by cvs2svn $
     7*  @date  $Date: 2007-01-30 04:49:52 $
    88*
    99* Copyright 2004-2005 Maui High Performance Computing Center, Univ. of Hawaii
     
    146146        psMemId id = psMemGetId();
    147147        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 type
    151         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();
    154154        psFree(polyOrd);
    155155        ok(!psMemCheckLeaks (id, NULL, NULL, false), "no memory leaks");
  • trunk/psLib/test/math/tap_psPolynomialEval3D.c

    r11397 r11422  
    44*  ORD and CHEB type polynomials.
    55*
    6 *  @version  $Revision: 1.3 $  $Name: not supported by cvs2svn $
    7 *  @date  $Date: 2007-01-30 00:11:31 $
     6*  @version  $Revision: 1.4 $  $Name: not supported by cvs2svn $
     7*  @date  $Date: 2007-01-30 04:49:52 $
    88*
    99* Copyright 2004-2005 Maui High Performance Computing Center, Univ. of Hawaii
     
    204204
    205205    // Allocate polynomial with unallowed type
     206    // XXX: This is odd.
    206207    {
    207208        psMemId id = psMemGetId();
    208209        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 type
    212         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();
    215216        psFree(polyOrd);
    216217        ok(!psMemCheckLeaks (id, NULL, NULL, false), "no memory leaks");
  • trunk/psLib/test/math/tap_psPolynomialEval4D.c

    r11397 r11422  
    44*  ORD and CHEB type polynomials.
    55*
    6 *  @version  $Revision: 1.3 $  $Name: not supported by cvs2svn $
    7 *  @date  $Date: 2007-01-30 00:11:31 $
     6*  @version  $Revision: 1.4 $  $Name: not supported by cvs2svn $
     7*  @date  $Date: 2007-01-30 04:49:52 $
    88*
    99* Copyright 2004-2005 Maui High Performance Computing Center, Univ. of Hawaii
     
    444444
    445445
     446    // XXX: This is wierd: why the skip()?
    446447    // Allocate polynomial with unallowed type
    447448    {
Note: See TracChangeset for help on using the changeset viewer.