Skip to content

Commit

Permalink
Test to cover value in single junction iteration
Browse files Browse the repository at this point in the history
Covers the fix for rakudo/rakudo#3198.
  • Loading branch information
jnthn committed Feb 5, 2020
1 parent ecdf550 commit 376d49f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion S03-junctions/misc.t
Expand Up @@ -3,7 +3,7 @@ use Test;
use lib $?FILE.IO.parent(2).add: 'packages/Test-Helpers';
use Test::Util;

plan 149;
plan 150;

=begin pod
Expand Down Expand Up @@ -370,6 +370,13 @@ ok Mu & Mu ~~ Mu, 'Mu & Mu ~~ Mu works';
is rt63686(), 'happiness', 'for loop over junction in sub';
}

# https://github.com/rakudo/rakudo/issues/3198
{
my @seen;
@seen.push(.^name) for any 1;
is-deeply @seen, ['Junction'], 'for loop over Junction gets the Junction';
}

# https://github.com/Raku/old-issue-tracker/issues/1167
# Error with stringifying .WHAT on any junctions
{
Expand Down

0 comments on commit 376d49f

Please sign in to comment.