Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update test to not pass due to a PCC fail.
Something that takes no parameters will not check that it got none.
Fixing the test, rather than porting the bug.
  • Loading branch information
jnthn committed Feb 17, 2013
1 parent 54985c7 commit 3c896f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t/nqp/62-subst.t
Expand Up @@ -10,7 +10,7 @@ ok($str eq 'hello', '.. withouth side effect');
ok(subst($str, /l/, 'r', :global) eq 'herro', 'We can use subst to replace all matches');

my $i := 0;
ok(subst($str, /l/, {$i++}) eq 'he0lo', 'We can have a closure as replacement');
ok(subst($str, /l/, -> $m {$i++}) eq 'he0lo', 'We can have a closure as replacement');
ok($i == 1, '.. and $i updated');

ok(subst($str, /FOO/, 'BAR') eq 'hello', "Non-existing string doesn't clobber string");
Expand Down

0 comments on commit 3c896f1

Please sign in to comment.