|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r86178 - trunk/libs/math/test
From: john_at_[hidden]
Date: 2013-10-06 13:12:46
Author: johnmaddock
Date: 2013-10-06 13:12:46 EDT (Sun, 06 Oct 2013)
New Revision: 86178
URL: http://svn.boost.org/trac/boost/changeset/86178
Log:
Fix test case.
Text files modified:
trunk/libs/math/test/test_ldouble_simple.cpp | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
Modified: trunk/libs/math/test/test_ldouble_simple.cpp
==============================================================================
--- trunk/libs/math/test/test_ldouble_simple.cpp Sun Oct 6 13:01:08 2013 (r86177)
+++ trunk/libs/math/test/test_ldouble_simple.cpp 2013-10-06 13:12:46 EDT (Sun, 06 Oct 2013) (r86178)
@@ -4,6 +4,11 @@
// (See accompanying file LICENSE_1_0.txt
// or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+// This file verifies that certain core functions are always
+// available, even when long double support is patchy at best
+// and BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS is defined.
+//
#define BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp> // Boost.Test
@@ -13,7 +18,7 @@
BOOST_AUTO_TEST_CASE( test_main )
{
BOOST_CHECK_EQUAL((boost::math::signbit)(1.0L), 0.0L);
- BOOST_CHECK_EQUAL((boost::math::signbit)(-1.0L), 1.0L);
+ BOOST_CHECK((boost::math::signbit)(-1.0L) != 0);
BOOST_CHECK_EQUAL((boost::math::sign)(1.0L), 1.0L);
BOOST_CHECK_EQUAL((boost::math::sign)(-1.0L), -1.0L);
BOOST_CHECK_EQUAL((boost::math::changesign)(1.0L), -1.0L);
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk