[Boost-bugs] [Boost C++ Libraries] #13011: BOOST_TEST broken with floating point relational operators

Subject: [Boost-bugs] [Boost C++ Libraries] #13011: BOOST_TEST broken with floating point relational operators
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-05-05 09:12:36


#13011: BOOST_TEST broken with floating point relational operators
------------------------------+------------------------
 Reporter: chris42f@… | Owner: rogeeff
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: test
  Version: Boost 1.63.0 | Severity: Regression
 Keywords: |
------------------------------+------------------------
 This is one of those crazy "Surely I must be doing something wrong here"
 things. But as far as I can tell, floating point comparisons don't work
 at all with the bare BOOST_TEST macro. A minimal reproduction

 -------------
 {{{
 #define BOOST_AUTO_TEST_MAIN
 #include <boost/test/auto_unit_test.hpp>

 BOOST_AUTO_TEST_CASE(Foo)
 {
     BOOST_TEST(0.0 < 1.0);
 }
 }}}
 --------------

 Compiler:
 {{{
 $ g++ --version
 g++ (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609
 Copyright (C) 2015 Free Software Foundation, Inc.
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/13011>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-05-05 09:15:32 UTC