Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Tests that want to check the action of things at BEGIN/CHECK time sho…
…uld not go assigning the string at normal time. Otherwise, the data to test will be lost. :-)
  • Loading branch information
jnthn committed Mar 1, 2012
1 parent 616002e commit 0976c3a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions S04-phasers/check.t
Expand Up @@ -8,7 +8,7 @@ plan 5;
# CHECK {...} block in "void" context
#?pugs todo
{
my $str = '';
my $str;
BEGIN { $str ~= "begin1 "; }
CHECK { $str ~= "check "; }
BEGIN { $str ~= "begin2 "; }
Expand All @@ -18,7 +18,7 @@ plan 5;

#?pugs todo
{
my $str = '';
my $str;
CHECK { $str ~= "check1 "; }
BEGIN { $str ~= "begin "; }
CHECK { $str ~= "check2 "; }
Expand All @@ -28,7 +28,7 @@ plan 5;

# CHECK {...} blocks as rvalues
{
my $str = '';
my $str;
my $handle = { my $retval = CHECK { $str ~= 'C' } };

is $handle(), 'C', 'our CHECK {...} block returned the correct var (1)';
Expand Down

0 comments on commit 0976c3a

Please sign in to comment.