]>
Commit | Line | Data |
---|---|---|
342a1af9 JB |
1 | --- Regexp-Common-2.113/t/test_squares.t.orig 2003-03-23 22:41:55.000000000 +0100 |
2 | +++ Regexp-Common-2.113/t/test_squares.t 2004-05-22 18:47:40.120278090 +0200 | |
3 | @@ -11,7 +11,9 @@ | |
4 | local $^W = 0; | |
5 | ||
6 | my $MAX_INT32 = 0x7FFFFFFF; | |
7 | -my $MAX_INT = $Config {use64bitint} ? eval "0x7FFFFFFFFFFFFFFF" : 0x7FFFFFFF; | |
8 | +# cannot use 0x7FFFFFFFFFFFFFFF as double precision is only 53 bits | |
9 | +# (and doubles are used by ** and float == operators) | |
10 | +my $MAX_INT = $Config {use64bitint} ? eval "0x001FFFFFFFFFFFFF" : 0x7FFFFFFF; | |
11 | ||
12 | local $^W = 1; | |
13 | ||
14 | @@ -49,7 +51,7 @@ | |
15 | my %d; | |
16 | sub _3 {{ | |
17 | my $x = int rand $MAX_INT; | |
18 | - redo if $d {$x} ++ || $x != (int sqrt ($x) ** 2); | |
19 | + redo if $d {$x} ++ || $x == ((int sqrt ($x)) ** 2); | |
20 | sprintf "%d" => $x; | |
21 | }} | |
22 | ||
45f064a7 JB |
23 | --- Regexp-Common-2.115/t/zip/spain.t.orig 2004-06-09 23:32:28.000000000 +0200 |
24 | +++ Regexp-Common-2.115/t/zip/spain.t 2004-06-19 20:28:59.386752760 +0200 | |
25 | @@ -175,7 +175,7 @@ | |
26 | ||
27 | # Wrong provinces. | |
28 | for (1 .. FAIL) { | |
29 | - my $x = _ 2; redo if $x < 52; | |
30 | + my $x = _ 2; redo if $x <= 52; | |
31 | my $y = _ 3; | |
32 | redo if $cache {"$x$y"}; | |
33 | push @failures => "$x$y"; |