fast_stat_interval_map.cpp 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*-----------------------------------------------------------------------------+
  2. Copyright (c) 2008-2011: Joachim Faulhaber
  3. +------------------------------------------------------------------------------+
  4. Distributed under the Boost Software License, Version 1.0.
  5. (See accompanying file LICENCE.txt or copy at
  6. http://www.boost.org/LICENSE_1_0.txt)
  7. +-----------------------------------------------------------------------------*/
  8. #define BOOST_TEST_MODULE icl::interval_map unit test
  9. #include <libs/icl/test/disable_test_warnings.hpp>
  10. #include <string>
  11. #include <boost/mpl/list.hpp>
  12. #include "../unit_test_unwarned.hpp"
  13. #define BOOST_ICL_USE_STATIC_BOUNDED_INTERVALS
  14. //#define BOOST_ICL_CONTINUOUS_STATIC_INTERVAL_DEFAULT left_open_interval
  15. // interval instance types
  16. #include "../test_type_lists.hpp"
  17. #include "../test_value_maker.hpp"
  18. #include "../test_functions.hpp"
  19. #include <boost/icl/interval_map.hpp>
  20. #include <boost/icl/separate_interval_set.hpp>
  21. #include <boost/icl/split_interval_set.hpp>
  22. using namespace std;
  23. using namespace boost;
  24. using namespace unit_test;
  25. using namespace boost::icl;
  26. // -----------------------------------------------------------------------------
  27. // test_interval_set_shared are tests that should give identical results for all
  28. // interval_sets: interval_set, separate_interval_set and split_interval_set.
  29. #include "../test_interval_map_shared.hpp"
  30. #define INTERVAL_MAP interval_map
  31. #include "../fast_stat_interval_map_cases.hpp"