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