IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 10740


Ignore:
Timestamp:
Dec 14, 2006, 2:41:49 PM (19 years ago)
Author:
gusciora
Message:

Fixed a couple of tests.

File:
1 edited

Legend:

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

    r10735 r10740  
    44*  ORD and CHEB type polynomials.
    55*
    6 *  @version  $Revision: 1.1 $  $Name: not supported by cvs2svn $
    7 *  @date  $Date: 2006-12-14 22:36:10 $
     6*  @version  $Revision: 1.2 $  $Name: not supported by cvs2svn $
     7*  @date  $Date: 2006-12-15 00:41:49 $
    88*
    99*  XXX: Probably should test single- and multi-dimensional polynomials in
     
    4646    psLogSetLevel(PS_LOG_INFO);
    4747
    48     plan_tests(25);
    49     diag("psPolynomialXDEval() tests");
    50 
    51     // Allocate ordinary polynomial structure
    52     {
    53         psMemId id = psMemGetId();
     48    plan_tests(24);
     49    diag("psPolynomial1DEval() tests");
     50
     51    // Allocate and evaluate an ordinary polynomial structure
     52    {
     53        psMemId id = psMemGetId();
     54
     55        // Allocate polynomial structure
    5456        diag("Allocate a 1D polynomial with psPolynomial1DAlloc()");
    5557        psPolynomial1D* polyOrd = psPolynomial1DAlloc(PS_POLYNOMIAL_ORD, TERMS-1);
     
    123125        psPolynomial1D* polyOrd = psPolynomial1DAlloc(99, TERMS-1);
    124126        ok(polyOrd==NULL, "psPolynomial1DAlloc() returned NULL, as expected");
    125         skip_start(polyOrd!=NULL, 2, "Skipping tests because psPolynomial1DAlloc() failed");
     127        skip_start(polyOrd!=NULL, 1, "Skipping tests because psPolynomial1DAlloc() failed");
    126128
    127129        diag("Attempt to evaluate an 1D polynomial with an unallowed type");
    128130        // Attempt to evaluation invalid polynomial type
    129131        psF64 result = psPolynomial1DEval(polyOrd, 0.0);
    130         ok(!isnan(result), "psPolynomial1DEval() did not return NAN, as expected");
     132        ok(isnan(result), "psPolynomial1DEval() did not return NAN, as expected");
     133        skip_end();
    131134        psFree(polyOrd);
    132 
    133         skip_end();
    134135        ok(!psMemCheckLeaks (id, NULL, NULL, false), "no memory leaks");
    135136    }
Note: See TracChangeset for help on using the changeset viewer.