]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/accumulators/test/min.cpp
1 // (C) Copyright Eric Niebler 2005.
2 // Use, modification and distribution are subject to the
3 // Boost Software License, Version 1.0. (See accompanying file
4 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 #include <boost/test/unit_test.hpp>
7 #include <boost/accumulators/accumulators.hpp>
8 #include <boost/accumulators/statistics/stats.hpp>
9 #include <boost/accumulators/statistics/min.hpp>
11 using namespace boost
;
12 using namespace unit_test
;
13 using namespace accumulators
;
15 ///////////////////////////////////////////////////////////////////////////////
20 accumulator_set
<int, stats
<tag::min
> > acc
;
23 BOOST_CHECK_EQUAL(1, (min
)(acc
));
26 BOOST_CHECK_EQUAL(0, (min
)(acc
));
29 BOOST_CHECK_EQUAL(0, (min
)(acc
));
32 ///////////////////////////////////////////////////////////////////////////////
33 // init_unit_test_suite
35 test_suite
* init_unit_test_suite( int argc
, char* argv
[] )
37 test_suite
*test
= BOOST_TEST_SUITE("min test");
39 test
->add(BOOST_TEST_CASE(&test_stat
));