Skip to content

Commit

Permalink
Fix tests to concat the gist of the type object instead of the type o…
Browse files Browse the repository at this point in the history
…bject directly.
  • Loading branch information
kboga authored and kboga committed Jul 26, 2011
1 parent 97a2584 commit afa3b69
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions S04-statements/for.t
Expand Up @@ -283,15 +283,15 @@ class TestClass{ has $.key is rw };

{
my $a = '';
for 1..3, 4..6 { $a ~= $_.WHAT };
for 1..3, 4..6 { $a ~= $_.WHAT.gist };
is($a, 'Int()Int()Int()Int()Int()Int()', 'List context');

$a = '';
for [1..3, 4..6] { $a ~= $_.WHAT };
for [1..3, 4..6] { $a ~= $_.WHAT.gist };
is($a, 'Array()', 'List context');

$a = '';
for [1..3], [4..6] { $a ~= $_.WHAT };
for [1..3], [4..6] { $a ~= $_.WHAT.gist };
is($a, 'Array()Array()', 'List context');
}

Expand Down

0 comments on commit afa3b69

Please sign in to comment.