Changeset 1656 for trunk/test


Ignore:
Timestamp:
Dec 17, 2008, 2:52:51 PM (13 years ago)
Author:
Jari Häkkinen
Message:

Rearragned code to avoid compiler warning.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/interpolation_test.cc

    r1650 r1656  
    7676
    7777  for (size_t i=0; i<w.size(); ++i) {
    78     if (!suite.equal(cspline.evaluate(w(i)),z(i),1e9)) {
     78    if ( fabs(cspline.evaluate(w(i))-z(i)) > 1e-5) {
    7979      suite.err() << "cspline test failed for i=" << i << std::endl;
     80      suite.err() << " difference between target and interpolation too large: "
     81                  << fabs(cspline.evaluate(w(i))-z(i)) << std::endl;
    8082      suite.add(false);
    8183    }
Note: See TracChangeset for help on using the changeset viewer.