develooper Front page | perl.perl5.porters | Postings from July 2000

Re: [ID 20000721.002] bleedperl sfio fails op/sprintf.t

Thread Previous
From:
Dominic Dunlop
Date:
July 31, 2000 11:11
Subject:
Re: [ID 20000721.002] bleedperl sfio fails op/sprintf.t
Message ID:
p04320402b5a4ea6746ef@[194.235.193.148]
At 19:48 +0100 2000-07-21, Nicholas Clark wrote:
>However, sfio also causes op/sprintf.t to fail tests 129 and 130:
>
>not ok 129 >%.0f< >0.6< >1< >0<
>not ok 130 >%.0f< >-0.6< >-1< >-0<

I'm guilty of that test.  The C standard says, for the f format 
"[t]he value is rounded to the appropriate number of digits." 
Representing 0.6 as zero when no decimal places are requested does 
not look like rounding to me.

>I'm not sure whether this is a bug in sfio or the perl test assuming too
>much.

My (biassed) vote is for a bug in sfio.  Any chance you could see how 
sfio2000 (referenced in another follow-up) fares?
-- 
Dominic Dunlop

Get Your Private, Free Internet Access from FREE INTERNET at http://www.free-internet.lu

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About