Subject: | Math::GMP 2.04 tests fail x86_64 arch on Linux |
Hi,
the tests for Math::GMP 2.04 fail on the x86_64 architecture (i.e. AMD64, EMT64) on Linux (tested on SLES9) since the 64bit architecture can handle a larger range of integers correctly.
The attached file patches the test script so that the tests pass again
It would be nice to have some kind of autodetection that the tests pass 32bit & 64bit architectures
--- t/gmppm.t
+++ t/gmppm.t 2005-05-11 08:29:44.880345280 +0200
@@ -418,16 +418,16 @@
-5000:i2:13
&uintify
+15:15
-+9999999999:1410065407
-+99999999999:1215752191
-+999999999999:3567587327
++9999999999:9999999999
++99999999999:99999999999
++999999999999:999999999999
&add_ui
+999999:i1:1000000
+9999999:i1:10000000
+99999999:i1:100000000
&intify
+999999999:999999999
-+9999999999:1410065407
++9999999999:9999999999
&mul_2exp
+9999:i9:5119488
+99999:i9:51199488