]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | // 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 | // Basic sanity check that header <boost/math/tools/test.hpp> | |
7 | // #includes all the files that it needs to. | |
8 | // | |
1e59de90 TL |
9 | #include <array> |
10 | ||
11 | #ifndef BOOST_MATH_STANDALONE | |
7c673cae | 12 | #include <boost/math/tools/test.hpp> |
7c673cae FG |
13 | // |
14 | // Note this header includes no other headers, this is | |
15 | // important if this test is to be meaningful: | |
16 | // | |
17 | inline void check_result_imp(boost::math::tools::test_result<double>, boost::math::tools::test_result<double>){} | |
18 | ||
19 | #include "test_compile_result.hpp" | |
20 | ||
21 | ||
22 | void compile_and_link_test() | |
23 | { | |
24 | check_result<float>(boost::math::tools::relative_error<float>(f, f)); | |
25 | ||
1e59de90 TL |
26 | #define A std::array<std::array<double, 2>, 2> |
27 | typedef double (*F1)(const std::array<double, 2>&); | |
7c673cae FG |
28 | typedef F1 F2; |
29 | A a; | |
30 | F1 f1 = 0; | |
31 | F2 f2 = 0; | |
32 | ||
33 | check_result<boost::math::tools::test_result< | |
34 | boost::math::tools::calculate_result_type<A>::value_type> > | |
35 | (boost::math::tools::test<A, F1, F2>(a, f1, f2)); | |
36 | ||
37 | } | |
1e59de90 | 38 | #endif |