In perl.git, the branch smoke-me/Deparse-feature-detangle has been created
<http://perl5.git.perl.org/perl.git/commitdiff/010b90a910922b6cf21bb0e5ae0c36ce9b0ff914?hp=0000000000000000000000000000000000000000>
at 010b90a910922b6cf21bb0e5ae0c36ce9b0ff914 (commit)
- Log -----------------------------------------------------------------
commit 010b90a910922b6cf21bb0e5ae0c36ce9b0ff914
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 ecea46f936df185b24fbab547ad8436dc98e7641
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 1ef1b534951078128b3ff9ad272aed49b0809053
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 f428f17372790d940a2db364ead107ae60a6c096
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 bedac4852689ce2185810bb28e2b691c34888a0b
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