Skip to content

Commit

Permalink
[t/spec] (perhaps incomplete) test for RT #63686
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.pugscode.org/pugs@27709 c213334d-75ef-0310-aa23-eaa082d1ae64
  • Loading branch information
kyle committed Jul 24, 2009
1 parent 16cd852 commit 30c8e17
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions S03-junctions/misc.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use v6;

use Test;

plan 95;
plan 97;

=begin pod
Expand Down Expand Up @@ -408,6 +408,14 @@ sub junction_diff(Object $this, Object $that) {
is_deeply(junction_diff(1|2, 1|2|3), ["3 is missing from this"], 'Value is missing from left side');
}

# RT #63686
{
lives_ok { try { for any(1,2) -> $x {}; } },
'for loop over junction in try block';



sub rt63686 {
for any(1,2) -> $x {};
return 'happiness';
}
is rt63686(), 'happiness', 'for loop over junction in sub';
}

0 comments on commit 30c8e17

Please sign in to comment.