test_ellint_3.cpp 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. #include "setup.hpp"
  6. #include "table_type.hpp"
  7. #include <boost/math/special_functions/ellint_3.hpp>
  8. #include "libs/math/test/test_ellint_3.hpp"
  9. void expected_results()
  10. {
  11. //
  12. // Define the max and mean errors expected for
  13. // various compilers and platforms.
  14. //
  15. add_expected_result(
  16. ".*", // compiler
  17. ".*", // stdlib
  18. ".*", // platform
  19. ".*", // test type(s)
  20. ".*Large.*", // test data group
  21. ".*", 75, 40); // test function
  22. add_expected_result(
  23. ".*", // compiler
  24. ".*", // stdlib
  25. ".*", // platform
  26. ".*", // test type(s)
  27. ".*Mathworld.*", // test data group
  28. ".*", 600, 200); // test function
  29. add_expected_result(
  30. ".*", // compiler
  31. ".*", // stdlib
  32. ".*", // platform
  33. ".*", // test type(s)
  34. ".*", // test data group
  35. ".*", 60, 30); // 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. template <class T>
  44. void test(T t, const char* p)
  45. {
  46. test_spots(t, p);
  47. }
  48. BOOST_AUTO_TEST_CASE( test_main )
  49. {
  50. expected_results();
  51. ALL_TESTS
  52. }