This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: 18/numeric_limits fail on solaris 2.8


Paolo Carlini wrote:

> Anyway, in this kind of test it seems to me in order an abs(), like:
>
> VERIFY( abs(extrema_min - limits_min) < epsilon );
> VERIFY( abs(limits_min - extrema_min) < epsilon );
> VERIFY( abs(extrema_max / limits_max) < (1 + epsilon) );
> VERIFY( abs(limits_max / extrema_max) < (1 + epsilon) ); 

Oops!
I did'nt notice that the tests are /doubled/ exactly for the 
"abs-reason". Therefore no abs are needed at all... Sorry again, please 
disregard my point about absolute values. The tests looks good.

P.




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]