IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 1976


Ignore:
Timestamp:
Oct 5, 2004, 3:46:23 PM (22 years ago)
Author:
evanalst
Message:

Update tst_psMinimize for stdout and stderr checking.

Location:
trunk/psLib/test/dataManip
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/dataManip/tst_psMinimize04.c

    r1953 r1976  
    6060    printPositiveTestHeader(stdout,
    6161                            "psMinimize functions",
    62                             "psVectorFitPolynomial1D(): equal errors in yErr");
     62                            "psVectorFitPolynomial1D(): equal difference in variable yErr");
    6363
    6464    psVectorFitPolynomial1D(myPoly, x, y, yErr);
     
    9494    printFooter(stdout,
    9595                "psMinimize functions",
    96                 "psVectorFitPolynomial1D(): equal errors in yErr",
     96                "psVectorFitPolynomial1D(): equal differences in variable yErr",
    9797                testStatus);
    9898
     
    227227    int testStatus = true;
    228228    int memLeaks = 0;
     229    psPolynomial1D *myPoly = NULL;
    229230
    230231    printPositiveTestHeader(stdout,
     
    232233                            "psVectorFitPolynomial1D(): all inputs are NULL");
    233234
    234     psVectorFitPolynomial1D(NULL, NULL, NULL, NULL);
     235    psLogMsg(__func__,PS_LOG_INFO,"Following should generate an error for null input polynomial.");
     236    myPoly = psVectorFitPolynomial1D(NULL, NULL, NULL, NULL);
     237    if ( myPoly != NULL ) {
     238        psError(__func__,"A null polynomial should have returned a null pointer.");
     239        testStatus = false;
     240    }
    235241
    236242
Note: See TracChangeset for help on using the changeset viewer.