summaryrefslogtreecommitdiff
path: root/t/base
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-03-07 20:26:36 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2002-03-07 20:26:36 +0000
commitf7391caeba91da2f21fc9bf9ae8279f9173b8be6 (patch)
treee553a5a9bd5b2606c20e01a35e49e7a8f9307d31 /t/base
parent214c63e34e4ca8e0d17ae74a89189358ccecd755 (diff)
downloadperl-f7391caeba91da2f21fc9bf9ae8279f9173b8be6.tar.gz
Long doubles give you long doubles.
p4raw-id: //depot/perl@15083
Diffstat (limited to 't/base')
-rw-r--r--t/base/num.t6
1 files changed, 5 insertions, 1 deletions
diff --git a/t/base/num.t b/t/base/num.t
index 22f96bef42..77a086487c 100644
--- a/t/base/num.t
+++ b/t/base/num.t
@@ -152,4 +152,8 @@ $a = 123.456; "$a";
print $a eq "123.456" ? "ok 44\n" : "not ok 44 # $a\n";
$a = 1e30; "$a";
-print $a eq "1e+30" || $a eq "1e+030" ? "ok 45\n" : "not ok 45 $a\n";
+# If using long doubles the "$a" might be "1"."0"x30.
+# We might fool around with $Config{uselongdouble}
+# and $Config{longdblsize} but let's keep this simple,
+# we are in the base/ after all.
+print $a eq "1e+30" || $a eq "1e+030" || $a eq "1000000000000000000000000000000" ? "ok 45\n" : "not ok 45 $a\n";