IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 10, 2007, 11:09:31 AM (19 years ago)
Author:
gusciora
Message:

This is a fairly large checkin. Most of the files were modified so they have
the same basic structure and format for testing: reporting errors, checking
memory leaks etc. Several bug fixes are included as well.

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

Legend:

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

    r11422 r12781  
    44*  ORD and CHEB type polynomials.
    55*
    6 *  @version  $Revision: 1.5 $  $Name: not supported by cvs2svn $
    7 *  @date  $Date: 2007-01-30 04:49:52 $
     6*  @version  $Revision: 1.6 $  $Name: not supported by cvs2svn $
     7*  @date  $Date: 2007-04-10 21:09:30 $
    88*
    99*  XXX: Probably should test single- and multi-dimensional polynomials in
     
    7575        skip_end();
    7676        psFree(polyOrd);
    77         ok(!psMemCheckLeaks (id, NULL, NULL, false), "no memory leaks");
     77        ok(!psMemCheckLeaks(id, NULL, NULL, false), "no memory leaks");
    7878    }
    7979
  • trunk/psLib/test/math/tap_psStats00.c

    r12607 r12781  
    99 *  @author GLG, MHPCC
    1010 *
    11  *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2007-03-27 22:52:03 $
     11 *  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2007-04-10 21:09:30 $
    1313 *
    1414 *  Copyright 2004-2005 Maui High Performance Computing Center, Univ. of Hawaii
     
    242242        }
    243243        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)");
    245245        ok(isnan(myStats->sampleMean), "psVectorStats() returned NAN");
    246246        ok(!psMemCheckLeaks (id, NULL, NULL, false), "no memory leaks");
  • trunk/psLib/test/math/tap_psStats09.c

    r11686 r12781  
    115115        for (psS32 i=0;i<numData;i++) {
    116116            errors->data.F32[i] = ERRORS;
    117             errors->n++;
    118117        }
    119118    }
     
    125124        for (psS32 i=0;i<numData;i++) {
    126125            errors->data.F64[i] = ERRORS;
    127             errors->n++;
    128126        }
    129127    }
     
    135133        for (psS32 i=0;i<numData;i++) {
    136134            errors->data.S8[i] = (psS8) ERRORS;
    137             errors->n++;
    138135        }
    139136    }
     
    145142        for (psS32 i=0;i<numData;i++) {
    146143            errors->data.U16[i] = (psU16) ERRORS;
    147             errors->n++;
    148144        }
    149145    }
     
    155151        for (psS32 i=0;i<numData;i++) {
    156152            errors->data.S32[i] = (psS32) ERRORS;
    157             errors->n++;
    158153        }
    159154    }
     
    171166        for (psS32 i=0;i<numData;i++) {
    172167            mask->data.U8[i] = (psU8) 0;
    173             mask->n++;
    174168        }
    175169    }
     
    181175        for (psS32 i=0;i<numData;i++) {
    182176            mask->data.S32[i] = (psS32) 0;
    183             mask->n++;
    184177        }
    185178    }
     
    282275        bool rc = psVectorStats(myStats, in, errors, outliers, 1);
    283276        if (rc == false) {
    284             diag("TEST ERROR: the psVectorStats() function returned NULL.\n");
     277            diag("TEST ERROR: the psVectorStats() function returned NULL (a).\n");
    285278            testStatus = false;
    286279        } else {
     
    301294    if (rc == false) {
    302295        if (expectedRC == true) {
    303             diag("TEST ERROR: the psVectorStats() function returned NULL.\n");
     296            diag("TEST ERROR: the psVectorStats() function returned NULL (b).\n");
    304297            testStatus = false;
    305298        }
Note: See TracChangeset for help on using the changeset viewer.