This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Convert the last third of t/op/closure.t to test.pl
authorNicholas Clark <nick@ccl4.org>
Tue, 15 Mar 2011 17:23:53 +0000 (17:23 +0000)
committerNicholas Clark <nick@ccl4.org>
Wed, 16 Mar 2011 07:58:18 +0000 (07:58 +0000)
commitff31df890edeb85b59e2eac4986b629b5a56376d
treeb85d03f539e2c5566ed48dcc8e05149f0e7fc66b
parent8a3cb9c669c3017b0610c1d6dfaec59426203252
Convert the last third of t/op/closure.t to test.pl

closure.t's test function has a prototype of &, so all the blocks passed to it
may well be closures themselves, albeit simple ones over the outer lexicals of
the test script. However all of the tests are explicitly testing other
closures, systematically building up from these most simple behaviours, so
this is a side effect of the implementation, and removing it is not going to
leave particular behaviours untested. It may actually make the test more
robust, as particular closure bugs accidentally introduced will only cause
their tests to fail, instead of having the side effect of causing seemingly
unrelated tests to fail too.
t/op/closure.t