Permalink
Browse files

test for method not found exception

  • Loading branch information...
1 parent dbba400 commit b585e672ff3d29ac03990b1d5fe26924a6db17d1 @moritz moritz committed May 17, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 S32-exceptions/misc.t
View
@@ -216,4 +216,6 @@ throws_like 'use fatal; ~(1, 2, 6 ... 10)', X::Sequence::Deduction;
throws_like 'my Str $x := 3', X::TypeCheck::Binding, got => Int, expected => Str;
throws_like 'sub f() returns Str { 5 }; f', X::TypeCheck::Return, got => Int, expected => Str;
+throws_like '1.foo', X::Method::NotFound, method => 'foo', typename => 'Int';
+
done;

0 comments on commit b585e67

Please sign in to comment.