// (C) Copyright John Maddock 2005. // 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) #ifdef TEST_STD # include #else # include #endif #include "test.hpp" #include "check_integral_constant.hpp" TT_TEST_BEGIN(is_floating_point) BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_floating_point::value, true); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_floating_point::value, true); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_floating_point::value, true); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_floating_point::value, true); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_floating_point::value, true); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_floating_point::value, true); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_floating_point::value, true); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_floating_point::value, true); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_floating_point::value, true); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_floating_point::value, true); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_floating_point::value, true); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_floating_point::value, true); #ifdef BOOST_HAS_FLOAT128 BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_floating_point<__float128>::value, true); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_floating_point::value, true); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_floating_point::value, true); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_floating_point::value, true); #endif // // cases that should not be true: // BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_floating_point::value, false); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_floating_point::value, false); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_floating_point::value, false); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_floating_point::value, false); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_floating_point::value, false); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_floating_point::value, false); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_floating_point::value, false); #ifndef BOOST_NO_CXX11_RVALUE_REFERENCES BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_floating_point::value, false); #endif BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_floating_point::value, false); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_floating_point::value, false); // // tricky cases: // BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_floating_point::value, false); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_floating_point::value, false); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_floating_point::value, false); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_floating_point::value, false); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_floating_point::value, false); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_floating_point::value, false); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_floating_point::value, false); TT_TEST_END