This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: 18/numeric_limits fail on solaris 2.8
- From: Paolo Carlini <pcarlini at unitus dot it>
- To: Paolo Carlini <pcarlini at unitus dot it>
- Cc: bkoz at redhat dot com, gdr at codesourcery dot com, libstdc++ at gcc dot gnu dot org
- Date: Mon, 01 Apr 2002 20:45:18 +0200
- Subject: Re: 18/numeric_limits fail on solaris 2.8
- References: <3CA8A4E8.7040205@unitus.it>
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.