-----BEGIN PGP SIGNED MESSAGE-----

Moin,

On 14-Sep-01 Gerrit Haase tried to scribble about:
> some tests fail:

Arg. Will look into it.

> ================
> $ make test
> PERL_DL_NONLAZY=1 /bin/perl -Iblib/arch -Iblib/lib
> -I/usr/lib/perl5/5.6.1/cygwin-multi -I/
> usr/lib/perl5/5.6.1 -e 'use Test::Harness qw(&runtests $verbose);
> $verbose=0; runtests @AR
> GV;' t/*.t
> t/bigfltpm..........ok
> t/bigintpari........ok
> t/bigintpm..........FAILED test 1427
>         Failed 1/1439 tests, 99.93% okay
> Failed Test  Status Wstat Total Fail  Failed  List of Failed

It is the second of these two tests:

$z = 1050000000000000;          # may be int on systems with 64bit?
$x = Math::BigInt->new($z); ok ($x->bsstr(),'105e+13'); # not 1.03e+15

$z = 1e+129;                    # definitely a float (may fail on UTS)
$x = Math::BigInt->new($z); ok ($x->bsstr(),$z); 

It seems that Cygwin can not handle 1e+129 :-(

What is the biggest number Cygwin can handle (aka what is the float size
there)?

I think I need to adjust Calc.pm for this, too. The code to determine the
maximum safe integer number base migh guess wrong. 

The Math::Pari failure is something I can do little about, because if Perl
(via underlying OS/lib) can not handle so large numbers, I might have no
recurse except skipping that test there :-/

Or, could I just use 2^64 and hope that it is not an integer (no 128 bit
systems out there ;), but always fits into a float on any system?

The test is not critical, anyway.

Cheers,

Tels

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

 http://bloodgate.com/thief/     Thief - The Dark Project
 http://bloodgate.com/perl       My current Perl projects
 http://freedomforlinks.de       Fight for your right to link.
 PGP key available on http://bloodgate.com/tels.asc or via email 

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i
Charset: latin1

iQEVAwUBO6JWz3cLPEOTuEwVAQETtQf/Q39QQLJ54VzQf8zM0Mnklovs3qfZy8ML
G+yz7GwYB24vtFDVfbEyLfMSTTFTmVKxCML6+ZHfW744laao+fLA3IqgtDvhmx3s
JTbK+iyu7pmNNSuiNLo+Gaa16XkyyI+LJwt0chW/hncHaPm+kdnpWL82rmYLuz7k
GaStoMfNt8gIl7MQz89nP5kGGPFbuSC/ccSmrzIcGnc2D1KiZsjbchjnh4O7Ggn6
tUIT2DXLo4e/93XNopWXbu1rN16VDz6rhhsrY5uYvF4XP4HLuG39vQ6OjhZGmigO
qoKxgiZ7PPXCO6k+Q9mS9FyPcGEjdwPqs8Ocg+zE2yH2hS7F2hGgnA==
=QFkD
-----END PGP SIGNATURE-----

Reply via email to