diff options
| author | Christoph Berg <myon@debian.org> | 2020-05-11 22:17:58 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2020-05-11 22:17:58 +0200 |
| commit | 32a41b1abe1a4aab0892c9c2051be6ba5b379f1e (patch) | |
| tree | c6e107c1ee4d70610e43a7912e57c720334a08c7 /boost/libs/math/test/test_policy_7.cpp | |
| parent | 08299e8b2bf50ba90daf570f57def529dd29d6e7 (diff) | |
New upstream version 2.2.0~rc1+repackupstream/2.2.0_rc1+repack
Diffstat (limited to 'boost/libs/math/test/test_policy_7.cpp')
| -rw-r--r-- | boost/libs/math/test/test_policy_7.cpp | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/boost/libs/math/test/test_policy_7.cpp b/boost/libs/math/test/test_policy_7.cpp deleted file mode 100644 index 99792cea..00000000 --- a/boost/libs/math/test/test_policy_7.cpp +++ /dev/null @@ -1,44 +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 <boost/math/policies/policy.hpp> -#include <boost/type_traits/is_same.hpp> -#define BOOST_TEST_MAIN -#include <boost/test/unit_test.hpp> // for test_main -#include <iostream> - -template <class P1, class P2> -bool check_same(const P1&, const P2&) -{ - if(!boost::is_same<P1, P2>::value) - { - std::cout << "P1 = " << typeid(P1).name() << std::endl; - std::cout << "P2 = " << typeid(P2).name() << std::endl; - } - return boost::is_same<P1, P2>::value; -} - - -BOOST_AUTO_TEST_CASE( test_main ) -{ - using namespace boost::math::policies; - using namespace boost; - - BOOST_CHECK(check_same(make_policy(), policy<>())); - BOOST_CHECK(check_same(make_policy(denorm_error<ignore_error>()), normalise<policy<denorm_error<ignore_error> > >::type())); - BOOST_CHECK(check_same(make_policy(digits2<20>()), normalise<policy<digits2<20> > >::type())); - BOOST_CHECK(check_same(make_policy(promote_float<false>()), normalise<policy<promote_float<false> > >::type())); - BOOST_CHECK(check_same(make_policy(domain_error<ignore_error>()), normalise<policy<domain_error<ignore_error> > >::type())); - BOOST_CHECK(check_same(make_policy(pole_error<ignore_error>()), normalise<policy<pole_error<ignore_error> > >::type())); - BOOST_CHECK(check_same(make_policy(indeterminate_result_error<ignore_error>()), normalise<policy<indeterminate_result_error<ignore_error> > >::type())); - - -} // BOOST_AUTO_TEST_CASE( test_main ) - - - |
