Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fix for attempting to use a type object in string context in spectest #4

Merged
merged 1 commit into from

1 participant

kboga
kboga
Collaborator

Fix tests to concat the gist of the type object instead of the type object directly.

kboga kboga merged commit a96302b into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jul 26, 2011
  1. Fix tests to concat the gist of the type object instead of the type o…

    kboga authored
    …bject directly.
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 3 deletions.
  1. +3 −3 S04-statements/for.t
6 S04-statements/for.t
View
@@ -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');
}
Something went wrong with that request. Please try again.