summaryrefslogtreecommitdiffstats
path: root/contrib/perl5/t/op/range.t
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/perl5/t/op/range.t')
-rwxr-xr-xcontrib/perl5/t/op/range.t11
1 files changed, 10 insertions, 1 deletions
diff --git a/contrib/perl5/t/op/range.t b/contrib/perl5/t/op/range.t
index 7999b86..01f5f70 100755
--- a/contrib/perl5/t/op/range.t
+++ b/contrib/perl5/t/op/range.t
@@ -1,6 +1,6 @@
#!./perl
-print "1..10\n";
+print "1..12\n";
print join(':',1..5) eq '1:2:3:4:5' ? "ok 1\n" : "not ok 1\n";
@@ -46,3 +46,12 @@ foreach ('09'..'08') {
print "not " unless join(",", @y) eq join(",", @x);
print "ok 10\n";
+# check bounds
+@a = 0x7ffffffe..0x7fffffff;
+print "not " unless "@a" eq "2147483646 2147483647";
+print "ok 11\n";
+
+@a = -0x7fffffff..-0x7ffffffe;
+print "not " unless "@a" eq "-2147483647 -2147483646";
+print "ok 12\n";
+
OpenPOWER on IntegriCloud