From: Rafael Garcia-Suarez Date: Wed, 31 Mar 2010 10:43:32 +0000 (+0200) Subject: More tests for in-place reverse (empty tied array) X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=6391ac7e6236740e4d4a09fdeecdbaac8e5f4606;p=p5sagit%2Fp5-mst-13.2.git More tests for in-place reverse (empty tied array) --- diff --git a/t/op/reverse.t b/t/op/reverse.t index 9cd3ee1..2fa0877 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); } {