X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FUtils%2FStatisticAccumulator.test.cc;h=9bea12b3e42d7a5051391966b6ce90f6f06ac8ec;hb=93d9568d448749dc187e7622b733a4a3caa319df;hp=17059e82ae262b79216178cfc7f48c2a969a127a;hpb=2ed56fbec2aa25bf4a8b13e6a06ec90e9dcc1fec;p=senf.git diff --git a/senf/Utils/StatisticAccumulator.test.cc b/senf/Utils/StatisticAccumulator.test.cc index 17059e8..9bea12b 100644 --- a/senf/Utils/StatisticAccumulator.test.cc +++ b/senf/Utils/StatisticAccumulator.test.cc @@ -29,7 +29,8 @@ #include "Statistics.hh" #include "auto_unit_test.hh" #include -#include +#include +//#include #define prefix_ ///////////////////////////////ct.p//////////////////////////////////////// @@ -56,9 +57,10 @@ SENF_AUTO_UNIT_TEST(StatisticAccumulator) BOOST_CHECK_EQUAL( sa.max(), 0); BOOST_CHECK_EQUAL( sa.min(), 0); - BOOST_CHECK( (boost::math::isnan)( sa.avg())); +// BOOST_CHECK( (boost::math::isnan)( sa.avg())); + BOOST_CHECK( ::isnan( sa.avg()) != 0); BOOST_CHECK_EQUAL( sa.last_avg(), 5.0); - BOOST_CHECK( (boost::math::isnan)( sa.stddev())); + BOOST_CHECK( ::isnan( sa.stddev())); BOOST_CHECK_EQUAL( sa.count(), 0);