From ddbc23042fd519b0d5220bc855a700b2c676bbc5 Mon Sep 17 00:00:00 2001 From: jzmaddock Date: Sat, 24 Feb 2018 17:03:42 +0000 Subject: [PATCH] Remove obsolete temporary tests. [CI SKIP] --- test/Jamfile.v2 | 9 +--- test/ztest_max_digits10.cpp | 67 ------------------------------ test/zztest_max_digits10.cpp | 80 ------------------------------------ 3 files changed, 1 insertion(+), 155 deletions(-) delete mode 100644 test/ztest_max_digits10.cpp delete mode 100644 test/zztest_max_digits10.cpp diff --git a/test/Jamfile.v2 b/test/Jamfile.v2 index 39fe85ddf..96540a50a 100644 --- a/test/Jamfile.v2 +++ b/test/Jamfile.v2 @@ -1145,16 +1145,9 @@ test-suite misc : [ run test_numerical_differentiation.cpp ../../test/build//boost_unit_test_framework : : : [ requires cxx11_auto_declarations cxx11_constexpr ] ] [ run compile_test/numerical_differentiation_incl_test.cpp compile_test_main : : : [ requires cxx11_auto_declarations cxx11_constexpr ] ] [ compile compile_test/numerical_differentiation_concept_test.cpp : [ requires cxx11_auto_declarations cxx11_constexpr ] ] - + [ run __temporary_test.cpp : : : always_show_run_output ] ; - - -# Temporary tests for support of max_digits10 -# run ztest_max_digits10.cpp ; -# run zztest_max_digits10.cpp ; -# Removed as inexplicably failing for VS12 on teeks99 but OK locally. - build-project ../example ; rule get_float128_tests diff --git a/test/ztest_max_digits10.cpp b/test/ztest_max_digits10.cpp deleted file mode 100644 index ab3b0195d..000000000 --- a/test/ztest_max_digits10.cpp +++ /dev/null @@ -1,67 +0,0 @@ - - // Copyright 2010 Paul A. Bristow -// -// Distributed under 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) - -/* Temporary test program to discover which platforms support - -numeric_limits - -digits10 and - -new max_digits10. - -This is needed to produce or select a macro to avoid compilation failure in Boost.Test -for platforms that do not include either or both of these. - -BOOST_NO_CXX11_NUMERIC_LIMITS is suitable. - - -[Boost C++ Libraries] - -#5758: Boost.Test Floating-point comparison diagnostic output does not support radix 10. - -*/ - -#include -#include - -#include -#include - -int main() -{ - std::cout << "Platform: " << BOOST_PLATFORM << '\n' - << "Compiler: " << BOOST_COMPILER << '\n' - << "STL : " << BOOST_STDLIB << '\n' - << "Boost : " << BOOST_VERSION/100000 << "." - << BOOST_VERSION/100 % 1000 << "." - << BOOST_VERSION % 100 << std::endl; - - int digits10 = std::numeric_limits::digits10; - int max_digits10 = std::numeric_limits::max_digits10; - - std::cout << "std::numeric_limits::digits10 = " << digits10 << std::endl; - - std::cout << "std::numeric_limits::max_digits10 = " << max_digits10 << std::endl; - - -} // int main() - -/* - -Output: - - Description: Autorun "J:\Cpp\MathToolkit\test\Math_test\Debug\ztest_max_digits10.exe" - Platform: Win32 - Compiler: Microsoft Visual C++ version 10.0 - STL : Dinkumware standard library version 520 - Boost : 1.50.0 - std::numeric_limits::digits10 = 15 - std::numeric_limits::max_digits10 = 17 - - - -*/ diff --git a/test/zztest_max_digits10.cpp b/test/zztest_max_digits10.cpp deleted file mode 100644 index 8fefe47a2..000000000 --- a/test/zztest_max_digits10.cpp +++ /dev/null @@ -1,80 +0,0 @@ - -// Copyright 2010 Paul A. Bristow -// -// Distributed under 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) - -/* Temporary test program to discover which platforms support - -numeric_limits - -digits10 and - -new max_digits10. - -This is needed to produce or select a macro to avoid compilation failure in Boost.Test -for platforms that do not include either or both of these. - -BOOST_NO_CXX11_NUMERIC_LIMITS is tested here. - -[Boost C++ Libraries] - -#5758: Boost.Test Floating-point comparison diagnostic output does not support radix 10. - -*/ - -#include -#include - -#include -#include - -int main() -{ - std::cout << "Platform: " << BOOST_PLATFORM << '\n' - << "Compiler: " << BOOST_COMPILER << '\n' - << "STL : " << BOOST_STDLIB << '\n' - << "Boost : " << BOOST_VERSION/100000 << "." - << BOOST_VERSION/100 % 1000 << "." - << BOOST_VERSION % 100 << std::endl; - - int digits10 = std::numeric_limits::digits10; - std::cout << "std::numeric_limits::digits10 = " << digits10 << std::endl; - -#ifndef BOOST_NO_CXX11_NUMERIC_LIMITS - // OK to use C++11 max_digits10; - int max_digits10 = std::numeric_limits::max_digits10; - std::cout << "std::numeric_limits::max_digits10 = " << max_digits10 << std::endl; -#else - // No support for max_digits10; so use Kahan formula instead. - int max_digits10 = 2 + std::numeric_limits::digits * 3010/10000; - std::cout << "2 + std::numeric_limits::digits * 3010/10000; = " << - 2 + std::numeric_limits::digits * 3010/10000; -#endif - - -} // int main() - -/* - -Output: - - Description: Autorun "J:\Cpp\MathToolkit\test\Math_test\Debug\ztest_max_digits10.exe" - Platform: Win32 - Compiler: Microsoft Visual C++ version 10.0 - STL : Dinkumware standard library version 520 - Boost : 1.50.0 - std::numeric_limits::digits10 = 15 - std::numeric_limits::max_digits10 = 17 - - 1> Description: Autorun "J:\Cpp\Misc\Debug\zztest_max_digits10.exe" - 1> Platform: Win32 - 1> Compiler: Microsoft Visual C++ version 12.0 - 1> STL : Dinkumware standard library version 610 - 1> Boost : 1.55.0 - 1> std::numeric_limits::digits10 = 15 - 1> std::numeric_limits::max_digits10 = 17 - - -*/