From 32a41b1abe1a4aab0892c9c2051be6ba5b379f1e Mon Sep 17 00:00:00 2001 From: Christoph Berg Date: Mon, 11 May 2020 22:17:58 +0200 Subject: New upstream version 2.2.0~rc1+repack --- boost/libs/math/test/test_policy_3.cpp | 48 ---------------------------------- 1 file changed, 48 deletions(-) delete mode 100644 boost/libs/math/test/test_policy_3.cpp (limited to 'boost/libs/math/test/test_policy_3.cpp') diff --git a/boost/libs/math/test/test_policy_3.cpp b/boost/libs/math/test/test_policy_3.cpp deleted file mode 100644 index 4d9061a3..00000000 --- a/boost/libs/math/test/test_policy_3.cpp +++ /dev/null @@ -1,48 +0,0 @@ - -// Copyright John Maddock 2007. - -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. -// (See accompanying file LICENSE_1_0.txt -// or copy at http://www.boost.org/LICENSE_1_0.txt) - -#include -#include -#define BOOST_TEST_MAIN -#include // for test_main -#include - -template -bool check_same(const P1&, const P2&) -{ - if(!boost::is_same::value) - { - std::cout << "P1 = " << typeid(P1).name() << std::endl; - std::cout << "P2 = " << typeid(P2).name() << std::endl; - } - return boost::is_same::value; -} - - -BOOST_AUTO_TEST_CASE( test_main ) -{ - using namespace boost::math::policies; - using namespace boost; - - BOOST_CHECK((is_same, domain_error >::domain_error_type, domain_error >::value)); - BOOST_CHECK((is_same, domain_error >::pole_error_type, pole_error >::value)); - BOOST_CHECK((is_same, domain_error >::overflow_error_type, overflow_error >::value)); - BOOST_CHECK((is_same, domain_error >::underflow_error_type, underflow_error >::value)); - BOOST_CHECK((is_same, domain_error >::denorm_error_type, denorm_error >::value)); - BOOST_CHECK((is_same, domain_error >::evaluation_error_type, evaluation_error >::value)); - BOOST_CHECK((is_same, domain_error >::indeterminate_result_error_type, indeterminate_result_error >::value)); - BOOST_CHECK((is_same, domain_error >::precision_type, policy<>::precision_type>::value)); - BOOST_CHECK((is_same, domain_error >::promote_float_type, policy<>::promote_float_type>::value)); - BOOST_CHECK((is_same, domain_error >::promote_double_type, policy<>::promote_double_type>::value)); - BOOST_CHECK((is_same, domain_error >::discrete_quantile_type, policy<>::discrete_quantile_type>::value)); - - -} // BOOST_AUTO_TEST_CASE( test_main ) - - - -- cgit v1.2.3