Skip to content

Commit

Permalink
Change t/types.t to use the Parameter object, not the hash.
Browse files Browse the repository at this point in the history
  • Loading branch information
schwern committed Mar 25, 2013
1 parent ba49ec8 commit 6f2f863
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions t/types.t
Expand Up @@ -25,7 +25,7 @@ note "types"; {

my $which = shift @$want;
for my $idx (0..$#{$want}) {
is $ms->{signature}{$which}[$idx]{type}, $want->[$idx];
is $ms->{signature}{$which}[$idx]->type, $want->[$idx] || '';
}
}
}
Expand All @@ -38,8 +38,9 @@ note "inject_for_type_check"; {

sub inject_for_type_check {
my $self = shift;
my $sig = shift;
return "type_check('$sig->{var}');";
my $sig = shift;
my $var = $sig->variable;
return "type_check('$var');";
}
}

Expand Down

0 comments on commit 6f2f863

Please sign in to comment.