Permalink
Browse files

a test for X::Parameter::InvalidType.

  • Loading branch information...
1 parent 95a13d7 commit 0acfc00c42ddfc898ab5aa19f14274409bd901e9 @timo timo committed Jan 20, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 S32-exceptions/misc.t
View
@@ -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";

0 comments on commit 0acfc00

Please sign in to comment.