18/numeric_limits fail on solaris 2.8
Paolo Carlini
pcarlini@unitus.it
Mon Apr 1 10:46:00 GMT 2002
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.
More information about the Libstdc++
mailing list