IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 2089


Ignore:
Timestamp:
Oct 13, 2004, 12:15:27 PM (22 years ago)
Author:
evanalst
Message:

Update test case and verified files.

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

Legend:

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

    r1953 r2089  
    5555    psVectorFitPolynomial1D(myPoly, x, y, yErr);
    5656
    57     for (i=0;i<POLY_ORDER+1;i++) {
    58         printf("Polynomial coefficient %d is %0.1f\n", i, myPoly->coeff[i]);
    59     }
     57    //  Remove for testing since print out differs from platforms
     58    //    for (i=0;i<POLY_ORDER+1;i++) {
     59    //        printf("Polynomial coefficient %d is %0.1f\n", i, myPoly->coeff[i]);
     60    //    }
    6061
    6162    // We don't test the first or last few data items.
     
    6768                   i, x->data.F64[i], actualData, expectData);
    6869            testStatus = false;
    69         } else {
    70             printf("Fitted data %d: (%.1f %.1f), expected was (%.1f)\n",
    71                    i, x->data.F64[i], actualData, expectData);
    7270        }
     71        //      Remove for testing since print out differs from platforms
     72        //        } else {
     73        //            printf("Fitted data %d: (%.1f %.1f), expected was (%.1f)\n",
     74        //                   i, x->data.F64[i], actualData, expectData);
     75        //        }
    7376    }
    7477
     
    126129                   i, x->data.F64[i], actualData, expectData);
    127130            testStatus = false;
    128         } else {
    129             printf("Fitted data %d: (%.1f %.1f), expected was (%.1f)\n",
    130                    i, x->data.F64[i], actualData, expectData);
    131131        }
     132        //      Remove for testing since print out differs from platforms
     133        //        } else {
     134        //            printf("Fitted data %d: (%.1f %.1f), expected was (%.1f)\n",
     135        //                   i, x->data.F64[i], actualData, expectData);
     136        //        }
    132137    }
    133138
     
    184189                   i, x->data.F64[i], actualData, expectData);
    185190            testStatus = false;
    186         } else {
    187             printf("Fitted data %d: (%.1f %.1f), expected was (%.1f)\n",
    188                    i, x->data.F64[i], actualData, expectData);
    189191        }
     192        //      Remove for testing since print out differs from platforms
     193        //        } else {
     194        //            printf("Fitted data %d: (%.1f %.1f), expected was (%.1f)\n",
     195        //                   i, x->data.F64[i], actualData, expectData);
     196        //        }
    190197    }
    191198
     
    218225                            "psVectorFitPolynomial1D(): CHEB, yErr is NULL");
    219226
     227    psLogMsg(__func__,PS_LOG_INFO,"Following should generate an error for null arguments.");
    220228    myPoly = psVectorFitPolynomial1D(NULL, NULL, NULL, NULL);
    221229    if (myPoly != NULL) {
Note: See TracChangeset for help on using the changeset viewer.