Changeset 1664


Ignore:
Timestamp:
Dec 20, 2008, 10:01:41 PM (12 years ago)
Author:
Peter
Message:

using test:Suite for comparison

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/averager_test.cc

    r1487 r1664  
    105105  }
    106106     
    107   if ( std::abs(a.variance() - a.std()*a.std())>
    108        std::numeric_limits<double>().round_error() ){
     107  if ( !suite.equal(a.variance(), a.std()*a.std()) ) {
    109108    suite.add(false);
    110109    suite.err() << "error: std squared should be variance" << std::endl;
Note: See TracChangeset for help on using the changeset viewer.