power_fail1.cpp 564 B

123456789101112131415161718192021222324
  1. /*
  2. Copyright (c) Marshall Clow 2014.
  3. Distributed under the Boost Software License, Version 1.0. (See accompanying
  4. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. For more information, see http://www.boost.org
  6. */
  7. #include <iostream>
  8. #include <boost/config.hpp>
  9. #include <boost/algorithm/algorithm.hpp>
  10. #define BOOST_TEST_MAIN
  11. #include <boost/test/unit_test.hpp>
  12. namespace ba = boost::algorithm;
  13. BOOST_AUTO_TEST_CASE( test_main )
  14. {
  15. // Second argument must be an integral value
  16. BOOST_CHECK ( ba::power(1, 1.0) == 1);
  17. }