1 ///////////////////////////////////////////////////////////////
2 // Copyright 2011 John Maddock. Distributed under the Boost
3 // Software License, Version 1.0. (See accompanying file
4 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_
5
6 #include "setup.hpp"
7 #include "table_type.hpp"
8
9 #include <boost/math/special_functions/ellint_rc.hpp>
10 #include <boost/math/special_functions/ellint_rd.hpp>
11 #include <boost/math/special_functions/ellint_rf.hpp>
12 #include <boost/math/special_functions/ellint_rj.hpp>
13 #include <boost/math/special_functions/ellint_rg.hpp>
14 #include "libs/math/test/test_carlson.hpp"
15
expected_results()16 void expected_results()
17 {
18 //
19 // Define the max and mean errors expected for
20 // various compilers and platforms.
21 //
22 add_expected_result(
23 ".*", // compiler
24 ".*", // stdlib
25 ".*", // platform
26 ".*", // test type(s)
27 ".*RJ.*", // test data group
28 ".*", 2700, 250); // test function
29 add_expected_result(
30 ".*", // compiler
31 ".*", // stdlib
32 ".*", // platform
33 ".*", // test type(s)
34 ".*", // test data group
35 ".*", 40, 20); // test function
36 //
37 // Finish off by printing out the compiler/stdlib/platform names,
38 // we do this to make it easier to mark up expected error rates.
39 //
40 std::cout << "Tests run with " << BOOST_COMPILER << ", "
41 << BOOST_STDLIB << ", " << BOOST_PLATFORM << std::endl;
42 }
43
44 template <class T>
test(T t,const char * p)45 void test(T t, const char* p)
46 {
47 test_spots(t, p);
48 }
49
BOOST_AUTO_TEST_CASE(test_main)50 BOOST_AUTO_TEST_CASE( test_main )
51 {
52 expected_results();
53 ALL_TESTS
54 }
55
56
57
58