diff options
author | Steve Peters <steve@fisharerojo.org> | 2005-10-31 11:58:08 +0000 |
---|---|---|
committer | Steve Peters <steve@fisharerojo.org> | 2005-10-31 11:58:08 +0000 |
commit | 59abd33597c479b9e5620fa06c6c6a9f2917f858 (patch) | |
tree | 9242a20242096264c6575330eb2ecc26011d9147 /t/op/list.t | |
parent | ff083d1d8cab4c4a7f90a2f0a6f26b2966627d89 (diff) | |
download | perl-59abd33597c479b9e5620fa06c6c6a9f2917f858.tar.gz |
Coverage stats showed that there were no tests for taking a slice
from ().
p4raw-id: //depot/perl@25920
Diffstat (limited to 't/op/list.t')
-rwxr-xr-x | t/op/list.t | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/t/op/list.t b/t/op/list.t index 89ccf02c10..d655f6bbf8 100755 --- a/t/op/list.t +++ b/t/op/list.t @@ -1,6 +1,6 @@ #!./perl -print "1..30\n"; +print "1..31\n"; @foo = (1, 2, 3, 4); if ($foo[0] == 1 && $foo[3] == 4) {print "ok 1\n";} else {print "not ok 1\n";} @@ -95,4 +95,8 @@ for ($x = 0; $x < 3; $x++) { @b = (30, scalar @h{()}); print "not " if join(':',@b) ne '30:'; print "ok 30\n"; + + my @d = ()[1..1]; + print "not " if @d != undef; + print "ok 31\n"; } |