In perl.git, the branch smoke-me/Deparse-feature-detangle has been created
<http://perl5.git.perl.org/perl.git/commitdiff/9557567df5b1f34f272335f5b9d3d588db20701a?hp=0000000000000000000000000000000000000000>
at 9557567df5b1f34f272335f5b9d3d588db20701a (commit)
- Log -----------------------------------------------------------------
commit 9557567df5b1f34f272335f5b9d3d588db20701a
Author: Nicholas Clark <[email protected]>
Date: Tue Feb 28 17:32:08 2012 +0100
Fix regression in deparsing say (etc) under use 5.10.0
Commit 6634bb9d0ed117be introduced a regression, causing this
use 5.10.0;
say "Perl rules";
to be deparsed as C<CORE::say>, not C<say>, etc. It wasn't actually possible
to write tests for this within the t/deparse.t framework until the recent
refactoring.
M dist/B-Deparse/Deparse.pm
M dist/B-Deparse/t/deparse.t
commit c93049497a0bd5ea3be12332fe2facf0e95dd0c7
Author: Nicholas Clark <[email protected]>
Date: Tue Feb 28 16:44:51 2012 +0100
Add tests for deparsing C<say> under various combinations of pragmas.
These mostly codify the current output of B::Deparse, which is not invalid,
but might not be considered to be the optimal output. (It's defensive, in
that it uses C<no feature;> which will ensure consistent behaviour whatever
pragma context the output is evaluated in.)
Some are TODO for the cases where B::Deparse is wrongly outputting
C<CORE::say> instead of plain C<say> and C<CORE::__SUB__> instead of plain
C<__SUB__>.
M dist/B-Deparse/t/deparse.t
commit 882b1a804413118d2a686442940b165c76dcaf9f
Author: Nicholas Clark <[email protected]>
Date: Tue Feb 28 14:00:56 2012 +0100
Avoid deparse.t testing everything under use feature ':5.10'
Only use feature ':5.10' in those tests that actually need it. This will let
us add tests for deparsing without any features enabled.
M dist/B-Deparse/t/deparse.t
commit 2d773806d2ab4baf4e377cf1f0fcb1dbc1f44183
Author: Nicholas Clark <[email protected]>
Date: Tue Feb 28 13:49:18 2012 +0100
Add a 'context' feature to deparse.t, to better test ambient pragmas.
Call ambient_pragmas() before each deparse test. This will allow use to
remove
the constraints of the current default, which is to always run under
use feature ":5.10";
M dist/B-Deparse/t/deparse.t
commit 4f6ca1766705ced969d35ddded7ab83e2853930f
Author: Nicholas Clark <[email protected]>
Date: Tue Feb 28 12:43:02 2012 +0100
In deparse.t, rename %reason to %meta.
Whilst skip and todo both have "reason"s, subsequent refactoring will use it
for other purposes.
M dist/B-Deparse/t/deparse.t
-----------------------------------------------------------------------
--
Perl5 Master Repository