This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Fix up some tests in sub_lval.t
authorFather Chrysostomos <sprout@cpan.org>
Thu, 23 Jun 2011 06:04:02 +0000 (23:04 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Thu, 23 Jun 2011 13:04:04 +0000 (06:04 -0700)
commit730fb7e791962b4f698b07b82ae1213ced61a5e1
tree05b297ef527e76e1e603f9a0de46e1fb08d2813c
parentd25b0d7b851633ad047adf5acb71da838d99de68
Fix up some tests in sub_lval.t

One test was disabled long ago

Returning undef in list context was allowed by change 10777 (f206cdd)
in 2001.  There was already a test for disallowing it.  That test was
disabled by change 10779 (4c8a4e58), rather than correct to test the
new behaviour.

This commit changes it to test that undef return is allowed in list
context, also adding a test for explicit return.
t/op/sub_lval.t