summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2000-05-09 19:42:20 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2000-05-09 19:42:20 +0000
commit8d48951454f4bbf2357221fa1f5327ad0adb8f2f (patch)
tree45e85fc1d53adc62eea53202b908a230ec415d49
parent057216a3ea0c23fa1b347bfc56335011a970d498 (diff)
downloadperl-8d48951454f4bbf2357221fa1f5327ad0adb8f2f.tar.gz
Test tweaking for Unicos continues.
p4raw-id: //depot/cfgperl@6103
-rw-r--r--t/op/64bitint.t30
1 files changed, 11 insertions, 19 deletions
diff --git a/t/op/64bitint.t b/t/op/64bitint.t
index ac3771663b..691d44e240 100644
--- a/t/op/64bitint.t
+++ b/t/op/64bitint.t
@@ -127,25 +127,17 @@ if ($^O ne 'unicos') {
$x = $q * 1234567;
print "not " unless $x == 15241567763770867 && $x > $f;
print "ok 23\n";
-} else {
- # Unicos has imprecise doubles (14 decimal digits or so),
- # the multiplication mangles the low-order bits.
- $x = $q * 1234;
- print "not " unless $x == 15234567763834 && $x > $f;
- print "ok 23\n";
-}
-$x /= 1234567;
-print "not " unless $x == $q && $x > $f;
-print "ok 24\n";
-
-$x = 98765432109 % 12345678901;
-print "not " unless $x == 901;
-print "ok 25\n";
+ $x /= 1234567;
+ print "not " unless $x == $q && $x > $f;
+ print "ok 24\n";
-# The following 12 tests adapted from op/inc.
+ $x = 98765432109 % 12345678901;
+ print "not " unless $x == 901;
+ print "ok 25\n";
+
+ # The following 12 tests adapted from op/inc.
-if ($^O ne 'unicos') {
$a = 9223372036854775807;
$c = $a++;
print "not " unless $a == 9223372036854775808;
@@ -225,9 +217,9 @@ if ($^O ne 'unicos') {
} else {
# Unicos has imprecise doubles (14 decimal digits or so),
- # near the UV/IV limites the low-order bits become mangled
- # even by simple additions and subtractions.
- for (26..37) {
+ # especially if operating near the UV/IV limits the low-order bits
+ # become mangled even by simple arithmetic operations.
+ for (23..37) {
print "ok #_ # skipped: too imprecise numbers\n";
}
}