Ignore:
Timestamp:
Mar 19, 2011, 12:30:51 AM (11 years ago)
Author:
Peter
Message:

fixes #660

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/0.7-stable/test/statistics.cc

    r2370 r2444  
    4646void test_mad(test::Suite&);
    4747
     48void test_median_empty(test::Suite&);
    4849void test_percentiler(test::Suite&);
    4950void test_percentiler_nan(test::Suite&);
     
    124125           
    125126  }
     127  test_median_empty(suite);
    126128  return suite.return_value();
    127129}
     
    150152            boost::random_access_iterator_archetype<utility::DataWeight>());
    151153  }
     154}
     155
     156
     157// test for ticket #660
     158void test_median_empty(test::Suite& suite)
     159{
     160  std::vector<double> x;
     161  double m = 0;
     162  m = statistics::median(x.begin(), x.end(), true);
    152163}
    153164
Note: See TracChangeset for help on using the changeset viewer.