summaryrefslogtreecommitdiff
path: root/t/op
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgs@consttype.org>2010-03-31 12:43:32 +0200
committerRafael Garcia-Suarez <rgs@consttype.org>2010-03-31 12:43:32 +0200
commit6391ac7e6236740e4d4a09fdeecdbaac8e5f4606 (patch)
treeefa90e1bc7becc7c238b148742e24e39ae834e9c /t/op
parent54113d22852e6f8b1560cbca15e39b1f22a9ad67 (diff)
downloadperl-6391ac7e6236740e4d4a09fdeecdbaac8e5f4606.tar.gz
More tests for in-place reverse (empty tied array)
Diffstat (limited to 't/op')
-rw-r--r--t/op/reverse.t6
1 files changed, 5 insertions, 1 deletions
diff --git a/t/op/reverse.t b/t/op/reverse.t
index 9cd3ee125b..2fa0877202 100644
--- a/t/op/reverse.t
+++ b/t/op/reverse.t
@@ -6,7 +6,7 @@ BEGIN {
require './test.pl';
}
-plan tests => 22;
+plan tests => 23;
is(reverse("abc"), "cba");
@@ -77,6 +77,10 @@ use Tie::Array;
@a = reverse @a;
ok(!exists $a[2] && !exists $a[3]);
is($a[0] . $a[1] . $a[4], '985');
+
+ tie my @empty, "Tie::StdArray";
+ @empty = reverse @empty;
+ is(scalar(@empty), 0);
}
{