IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

Corrected small problem with unallowed type allocation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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");
Note: See TracChangeset for help on using the changeset viewer.