Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix Parameter.perl test for defaults
Before eac1e26 , it would always be { ... } even if there
was no code as a default.  The test assumed this.
  • Loading branch information
lizmat committed Mar 4, 2016
1 parent 70ed68a commit 4552522
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion integration/advent2009-day20.t
Expand Up @@ -11,7 +11,7 @@ is &foo.name, 'foo', 'Introspecting subroutine name';
my $bar = &foo;
is $bar.name, 'foo', 'Introspecting subroutine for a sub assigned to a scalar';

is &foo.signature.perl, ':(Int $i, @stuff, $blah = { ... })', 'Introspecting and stringification of subroutine signature';
is &foo.signature.perl, ':(Int $i, @stuff, $blah = 5)', 'Introspecting and stringification of subroutine signature';

# Not sure if this is an appropriate test - as this code doesn't exist in the Advent Calendar
my @sig-info = \(name => '$i', type => 'Int'),
Expand Down

0 comments on commit 4552522

Please sign in to comment.