This is an automatically generated mail to inform you that tests are now available in t/spec/S04-statements/for.t
commit b7a29a6c4f1bdb5e78321323d432a92ea7093c96 Author: kyle <k...@c213334d-75ef-0310-aa23-eaa082d1ae64> Date: Mon Dec 28 22:33:38 2009 +0000 [t/spec] Test for RT 71268: NPMCA from accessing result of "for ^1 {}" git-svn-id: http://svn.pugscode.org/p...@29410 c213334d-75ef-0310-aa23-eaa082d1ae64 diff --git a/t/spec/S04-statements/for.t b/t/spec/S04-statements/for.t index 69db878..ffe8015 100644 --- a/t/spec/S04-statements/for.t +++ b/t/spec/S04-statements/for.t @@ -11,7 +11,7 @@ for statement as possible =end description -plan 57; +plan *; ## No foreach # L<S04/The C<for> statement/"no foreach statement any more"> @@ -448,4 +448,16 @@ eval_dies_ok('for(0..5) { }','keyword needs at least one whitespace after it'); ok ! $parsed, 'for (1..3)->$n fails to parse'; } +# RT #71268 +{ + sub rt71268 { for ^1 {} } + #?rakudo todo 'RT 71268' + lives_ok { ~(rt71268) }, 'can stringify "for ^1 {}" without death'; + #?rakudo skip 'RT 71268' + ok rt71268() ~~ Nil, 'result of "for ^1 {}" is Nil (what else?)'; +} + + +done_testing; + # vim: ft=perl6