develooper Front page | perl.perl5.porters | Postings from May 2002

RE: [PATCH] Math/BigInt/t/mbi_rand.t pr

From:
Tels
Date:
May 31, 2002 12:18
Subject:
RE: [PATCH] Math/BigInt/t/mbi_rand.t pr
Message ID:
perl.perl5.porters-60251@nntp.perl.org
-----BEGIN PGP SIGNED MESSAGE-----

Moin,

On 31-May-02 Jarkko Hietaniemi carved into stone:
> ----- Forwarded message from Andy Dougherty <doughera@lafayette.edu>
> With the following patch, I can actually do the tests suggested by the
> test script, though I haven't figured out what to do with the results
> yet :-).

;) Will apply for 1.58.

I am unsure as to why this now fails. I can't see any differences between
1.56 and 1.57, unless the test file itself is the culprit. Can you test
v1.56 and see if it works, and then v1.56 with the Calc.pm from 1.57?

Or the test from v1.57 with v1.56 together.

> With that in place, I am running a more exhaustive test, but it's quite
> slow :-(.  So far, for seeds of 0 through 245, I get that sort of failure
> for seeds of
> 
> 3 7 38 40 54 55 79 85 94 99 100 102 120 128 175 179 189 203 226 234 241
> 244

Thanx! That makes it sort of trackable. The tests are random, and I guess
they all expose the same bug. You could patch the place (around line 109 in
Calc.pm) that sets the maximum BASELEN and change the cap from 7 to 6 (and
5) and see if it still fails. If not, I need to make one more exception
(there are some set to 5 for unicos etc).

Thanx!


- -- 
perl -MMath::String -e 'print \
Math::String->from_number("215960156869840440586892398248"),"\n"'

 http://bloodgate.com/perl       My current Perl projects
 PGP key available on http://bloodgate.com/tels.asc or via email.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: When cryptography is outlawed, bayl bhgynjf jvyy unir cevinpl.

iQEVAwUBPPfNEXcLPEOTuEwVAQEutAf+OOAUdi2AzWsqZRDG5nWIrYyXNU6HrrwT
HySvz8+tkJvQz+2kep+bpLYc7bLPpQX/CzUN/7atACT6O35s5onorZJl520oMDq8
fZybO3QiaAnTsztfmXeT9QBcmVtY0g5qr5Zb/2KYSmGssEsRcX69WzAgL9QsT1MF
7LgzVijjUuPe4j73F0G1FRGykDmt2EGbKaJaNQ9aytwLtY4nW0fmTn2Ij3fY2XJP
2jRz25rfQdITBhugAmEvjk9Ao4pxN8dQBsf/ideZzaQ8Y0qBtFFLGTgVykRlscPs
+DsbrbEPQ3ldX17vOM88gwxbB9mEOntHiUtty6OZR5A0UnJDahKd4g==
=qDxR
-----END PGP SIGNATURE-----



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