test_pFq.cpp 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. // (C) Copyright John Maddock 2006.
  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)
  5. #include "test_pFq.hpp"
  6. #include <boost/multiprecision/cpp_bin_float.hpp>
  7. #if defined(_MSC_FULL_VER) && (_MSC_FULL_VER < 190023026)
  8. //
  9. // Early msvc versions have <initializer_list> but can't handle
  10. // argument deduction of actual initializer_lists :(
  11. //
  12. #define DISABLE_TESTS
  13. #endif
  14. BOOST_AUTO_TEST_CASE( test_main )
  15. {
  16. #ifndef DISABLE_TESTS
  17. #if !defined(TEST) || (TEST == 2)
  18. test_spots(0.0F, "float");
  19. #endif
  20. #if !defined(TEST) || (TEST == 3)
  21. test_spots(0.0, "double");
  22. #endif
  23. #ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
  24. #if (!defined(TEST) || (TEST == 4)) && (DBL_MAX_EXP != LDBL_MAX_EXP)
  25. test_spots(0.0L, "long double");
  26. #endif
  27. #ifndef BOOST_MATH_NO_REAL_CONCEPT_TESTS
  28. #if !defined(TEST) || (TEST == 5)
  29. test_spots(boost::math::concepts::real_concept(0.1), "real_concept");
  30. #endif
  31. #endif
  32. #endif
  33. #if !defined(TEST) || (TEST == 6)
  34. test_spots(boost::multiprecision::cpp_bin_float_quad(), "cpp_bin_float_quad");
  35. #endif
  36. #if !defined(TEST) || (TEST == 7)
  37. typedef boost::multiprecision::number<boost::multiprecision::cpp_bin_float<40> > dec_40;
  38. test_spots(dec_40(), "dec_40");
  39. #endif
  40. #endif
  41. }