From: Yitzchak Scott-Thoennes Date: Wed, 6 Mar 2002 20:22:54 +0000 (-0800) Subject: Re: [PATCH] tests for Gconvert X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d1eb8299735ff97f5e49efd0313271aeeb84e2c7;p=p5sagit%2Fp5-mst-13.2.git Re: [PATCH] tests for Gconvert Message-ID: p4raw-id: //depot/perl@15078 --- diff --git a/Configure b/Configure index a88842d..6e85478 100755 --- a/Configure +++ b/Configure @@ -20,7 +20,7 @@ # $Id: Head.U,v 3.0.1.9 1997/02/28 15:02:09 ram Exp $ # -# Generated on Wed Mar 6 17:32:31 EET 2002 [metaconfig 3.0 PL70] +# Generated on Thu Mar 7 07:37:32 EET 2002 [metaconfig 3.0 PL70] # (with additional metaconfig patches by perlbug@perl.org) cat >c1$$ < refers to the block. When there is no name conflict, you can omit the C from the block name (e.g. C<\p{BraillePatterns}>), but to be safe, it's probably best to always use the C). -=head2 Perl Parser Stress Tested - -The Perl parser has been stress tested using both random input and -Markov chain input and the few found crashes and lockups have been -fixed. - =head2 REF(...) Instead Of SCALAR(...) A reference to a reference now stringifies as "REF(0x81485ec)" instead @@ -1580,6 +1574,13 @@ Thread extension requires being Configured with C<-Duse5005threads>). But note that the Thread.pm interface is now shared by both thread models. +=item * + +The Gconvert macro ($Config{d_Gconvert}) used by perl for stringifying +floating-point numbers is now more picky about using sprintf %.*g +rules for the conversion. Some platforms that used to use gcvt may +now resort to the slower sprintf. + =back =head2 New Or Improved Platforms @@ -2281,6 +2282,12 @@ Windows 9x. winsock handle leak fixed. +=item * + +The Perl parser has been stress tested using both random input and +Markov chain input and the few found crashes and lockups have been +fixed. + =back =back @@ -2476,8 +2483,8 @@ such as sudo (see http://www.courtesan.com/sudo/). =head1 New Tests Several new tests have been added, especially for the F -subsection. There are now about 34 000 individual tests (spread over -about 530 test scripts), in the regression suite (5.6.1 has about +subsection. There are now about 56 000 individual tests (spread over +about 620 test scripts), in the regression suite (5.6.1 has about 11700 tests, in 258 test scripts) Many of the new tests are introduced by the new modules, but still in general Perl is now more thoroughly tested. @@ -2485,7 +2492,7 @@ tested. Because of the large number of tests, running the regression suite will take considerably longer time than it used to: expect the suite to take up to 4-5 times longer to run than in perl 5.6. In a really -fast machine you can hope to finish the suite in about 5 minutes +fast machine you can hope to finish the suite in about 6-8 minutes (wallclock time). The tests are now reported in a different order than in earlier Perls. diff --git a/t/base/num.t b/t/base/num.t index 8a0eb92..22f96be 100644 --- a/t/base/num.t +++ b/t/base/num.t @@ -107,7 +107,7 @@ $a = 1000; "$a"; print $a + 1 == 1001 ? "ok 30\n" : "not ok 30 #" . $a + 1 . "\n"; # back to some basic stringify tests -# we expect NV stringification to work according to C sprintf %.g rules +# we expect NV stringification to work according to C sprintf %.*g rules $a = 0.01; "$a"; print $a eq "0.01" ? "ok 31\n" : "not ok 31 # $a\n";