detail_convert_integer_test.cpp 717 B

12345678910111213141516171819202122
  1. // Copyright 2015-2017 Hans Dembinski
  2. //
  3. // Distributed under the Boost Software License, Version 1.0.
  4. // (See accompanying file LICENSE_1_0.txt
  5. // or copy at http://www.boost.org/LICENSE_1_0.txt)
  6. #include <boost/core/lightweight_test.hpp>
  7. #include <boost/core/lightweight_test_trait.hpp>
  8. #include <boost/histogram/detail/convert_integer.hpp>
  9. #include "std_ostream.hpp"
  10. using namespace boost::histogram::detail;
  11. int main() {
  12. BOOST_TEST_TRAIT_SAME(convert_integer<char, float>, float);
  13. BOOST_TEST_TRAIT_SAME(convert_integer<int, float>, float);
  14. BOOST_TEST_TRAIT_SAME(convert_integer<double, float>, double);
  15. BOOST_TEST_TRAIT_SAME(convert_integer<float, double>, float);
  16. return boost::report_errors();
  17. }