Changeset 1670


Ignore:
Timestamp:
Dec 22, 2008, 4:21:25 AM (12 years ago)
Author:
Peter
Message:

refs #470: regression_test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/regression_test.cc

    r1487 r1670  
    212212    polynomialfit.fit(x,ln_y);
    213213    utility::Vector fit=polynomialfit.fit_parameters();
    214     if (std::abs(fit(0)-1.012229646706 + fit(1)-0.012561322528 +
    215                  fit(2)+1.159674470130)>1e-11) {
    216       suite.err() << "regression_Polynomial: cannot reproduce fit." << std::endl;
    217       suite.add(false);
    218     }
     214    suite.add(suite.equal_fix(fit(0), 1.012229646706, 1e-11));
     215    suite.add(suite.equal_fix(fit(1), 0.012561322528, 1e-11));
     216    suite.add(suite.equal_fix(fit(2), -1.159674470130, 1e-11));
    219217  }
    220218
Note: See TracChangeset for help on using the changeset viewer.