summaryrefslogtreecommitdiff
path: root/boost/libs/math/test/test_rationals.cpp
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2020-05-11 22:18:20 +0200
committerChristoph Berg <myon@debian.org>2020-05-11 22:18:20 +0200
commita8edac06b534058e52126c4d55e23b217df2df91 (patch)
treef2c3567fae58aad676d544ee8f07ac78dd2eb1ec /boost/libs/math/test/test_rationals.cpp
parent4f6c0156a70e8f2ff70fe5a1a39f5e9b22ffd026 (diff)
parent32a41b1abe1a4aab0892c9c2051be6ba5b379f1e (diff)
Update upstream source from tag 'upstream/2.2.0_rc1+repack'
Update to upstream version '2.2.0~rc1+repack' with Debian dir fe177bc6cd2d4c1256a3775504f6010be54e7463
Diffstat (limited to 'boost/libs/math/test/test_rationals.cpp')
-rw-r--r--boost/libs/math/test/test_rationals.cpp48
1 files changed, 0 insertions, 48 deletions
diff --git a/boost/libs/math/test/test_rationals.cpp b/boost/libs/math/test/test_rationals.cpp
deleted file mode 100644
index b6f3c3a5..00000000
--- a/boost/libs/math/test/test_rationals.cpp
+++ /dev/null
@@ -1,48 +0,0 @@
-// (C) Copyright John Maddock 2006.
-// 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/concepts/real_concept.hpp>
-#define BOOST_TEST_MAIN
-#include <boost/test/unit_test.hpp>
-#include <boost/test/floating_point_comparison.hpp>
-#include <boost/array.hpp>
-#include <boost/math/tools/rational.hpp>
-#include <iostream>
-
-template <class T, class U>
-void do_test_spots(T, U);
-
-template <class T>
-void test_spots(T t, const char* n)
-{
- std::cout << "Testing basic sanity checks for type " << n << std::endl;
- do_test_spots(t, int(0));
- do_test_spots(t, unsigned(0));
-#ifdef BOOST_HAS_LONG_LONG
- do_test_spots(t, (boost::ulong_long_type)(0));
-#endif
- do_test_spots(t, float(0));
- do_test_spots(t, T(0));
-}
-
-BOOST_AUTO_TEST_CASE( test_main )
-{
- test_spots(0.0F, "float");
- test_spots(0.0, "double");
-#ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
- test_spots(0.0L, "long double");
-#ifndef BOOST_MATH_NO_REAL_CONCEPT_TESTS
- test_spots(boost::math::concepts::real_concept(0.1), "real_concept");
-#endif
-#else
- std::cout << "<note>The long double tests have been disabled on this platform "
- "either because the long double overloads of the usual math functions are "
- "not available at all, or because they are too inaccurate for these tests "
- "to pass.</note>" << std::endl;
-#endif
-
-}
-
-