Skip to content

Commit

Permalink
a test for X::Parameter::InvalidType.
Browse files Browse the repository at this point in the history
  • Loading branch information
timo committed Jan 20, 2013
1 parent 95a13d7 commit 0acfc00
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions S32-exceptions/misc.t
Expand Up @@ -354,6 +354,8 @@ if $emits_suggestions {
try eval('$i-just-made-this-up = "yup"');
is +($!.suggestions), 0, "no suggestions for a strange variable";
ok $!.message !~~ /Did you mean/, "doesn't suggest if there's no suggestions.";

throws_like 'sub yoink(Junctoin $barf) { }', X::Parameter::InvalidType, suggestions => 'Junction';
}

throws_like 'class Foobar is Foobar', X::Inheritance::SelfInherit, name => "Foobar";
Expand Down

0 comments on commit 0acfc00

Please sign in to comment.