[m-rev.] for review: move string__format tests
Peter Ross
pro at missioncriticalit.com
Tue Nov 19 21:56:01 AEDT 2002
On Tue, Nov 19, 2002 at 11:28:03AM +0100, Peter Ross wrote:
> fjh wrote:
>
> > On 18-Nov-2002, Peter Ross <pro at missioncriticalit.com> wrote:
> > >
> > > I have also investigate the -(max+max) and why it comes out as NaN
> > > and on my machine it happens in the C code
> > >
> > > result = 0.000000000000 - (max+max)
> > >
> > > so if it's a bug, then it is a bug in the C compiler.
> >
> > That does look like a bug. On a system which properly supports IEEE
> > floating point, max + max should be Inf, and 0.0 - Inf should be -Inf.
> >
> It's a cygwin bug, see:
> http://sources.redhat.com/ml/cygwin/2002-11/msg00560.html
>
>
Hi,
Note that I haven't included the full diff because it is very boring and
very repetitive.
===================================================================
Estimated hours taken: 0.25
Branches: main
tests/general/string_format_e.exp:
tests/general/string_format_f.exp:
tests/general/string_format_g.exp:
Use the expected output from the linux machines, instead of from
cygwin as the cygwin output is incorrect for -infinity.
Index: string_format_e.exp
===================================================================
RCS file: /home/staff/zs/imp/tests/general/string_format/string_format_e.exp,v
retrieving revision 1.1
diff -u -r1.1 string_format_e.exp
--- string_format_e.exp 19 Nov 2002 09:42:28 -0000 1.1
+++ string_format_e.exp 19 Nov 2002 10:43:11 -0000
@@ -6,6 +6,7 @@
%E:'-1.797693E+308'
%E:'-2.225074E-308'
%E:'-5.555556E+01'
+ %E:'-INF'
%E:'0.000000E+00'
%E:'1.000000E+00'
%E:'1.000000E+01'
@@ -15,8 +16,7 @@
%E:'1.797693E+308'
%E:'2.225074E-308'
%E:'5.555556E+01'
- %E:'Inf'
- %E:'NaN'
+ %E:'INF'
%e:'-1.000000e+00'
%e:'-1.000000e+01'
%e:'-1.000000e+02'
@@ -25,6 +25,7 @@
%e:'-1.797693e+308'
%e:'-2.225074e-308'
%e:'-5.555556e+01'
+ %e:'-inf'
%e:'0.000000e+00'
%e:'1.000000e+00'
%e:'1.000000e+01'
@@ -34,8 +35,7 @@
%e:'1.797693e+308'
%e:'2.225074e-308'
%e:'5.555556e+01'
- %e:'Inf'
- %e:'NaN'
+ %e:'inf'
% E:' 0.000000E+00'
% E:' 1.000000E+00'
% E:' 1.000000E+01'
--------------------------------------------------------------------------
mercury-reviews mailing list
post: mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------
More information about the reviews
mailing list