X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fop%2Flist.t;h=89ccf02c10a5bccebb49d6d82f898fb273663901;hb=3480a8d2d46562b783befbcecf951d5a2b4067d7;hp=4d7a2d5444b4dded026e0310f39ae2be1112d9bb;hpb=c73bf8e3ece265b261438c8090fb5ecbf0977587;p=p5sagit%2Fp5-mst-13.2.git diff --git a/t/op/list.t b/t/op/list.t index 4d7a2d5..89ccf02 100755 --- a/t/op/list.t +++ b/t/op/list.t @@ -1,6 +1,6 @@ #!./perl -print "1..28\n"; +print "1..30\n"; @foo = (1, 2, 3, 4); if ($foo[0] == 1 && $foo[3] == 4) {print "ok 1\n";} else {print "not ok 1\n";} @@ -86,4 +86,13 @@ for ($x = 0; $x < 3; $x++) { my @c = (0, undef, undef, 3)[1, 2]; print "not " unless @b == @c and @c == 2; print "ok 28\n"; + + @b = (29, scalar @c[()]); + print "not " if join(':',@b) ne '29:'; + print "ok 29\n"; + + my %h = (a => 1); + @b = (30, scalar @h{()}); + print "not " if join(':',@b) ne '30:'; + print "ok 30\n"; }