Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost 1.60.0 beta 1 Release Candidates available for testing
From: Michel Morin (mimomorin_at_[hidden])
Date: 2015-11-11 10:46:29


John Maddock wrote:
> I'm waiting for the MacOS tests to cycle, or perhaps someone can test Math
> lib develop and let me know?

I tested `test_difference.cpp` and it failed (I'm just about to go to bed,
so I can't make a prompt response):

    Testing type double
    Denormals are active
    test_difference_.cpp:59: error: in "test_main": check
relative_difference(val, prev) == T(0) has failed
[1.7976931348623157e+308 != 0]
    test_difference_.cpp:60: error: in "test_main": check
epsilon_difference(val, prev) == T(0) has failed
[1.7976931348623157e+308 != 0]
    test_difference_.cpp:59: error: in "test_main": check
relative_difference(val, prev) == T(0) has failed
[1.7976931348623157e+308 != 0]
    test_difference_.cpp:60: error: in "test_main": check
epsilon_difference(val, prev) == T(0) has failed
[1.7976931348623157e+308 != 0]

    (Note: prev=-4.94066e-324, val=0)

The culprit is this (Line 107-108 in `relative_difference.hpp`):

         if((a < 0) != (b < 0))
            return max_val;

The conditions hold even when one of `a` and `b` is zero and the other is
negative.

P.S. The name of the include guard has not been changed in that file :)

HTH,
Michel


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net