Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
text X::Method::NotFound on normal and .+ dispatches
  • Loading branch information
moritz committed May 27, 2012
1 parent 6f6d6c2 commit d701cfa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions S32-exceptions/misc.t
Expand Up @@ -198,6 +198,9 @@ throws_like 'my sub a { POST 0 }; a()', X::Phaser::PrePost, phaser => 'POST', co
throws_like 'use fatal; my $x = "5 foo" + 8;', X::Str::Numeric, source => '5 foo', pos => 1,
reason => /trailing/;

throws_like '1.foo', X::Method::NotFound, method => 'foo', typename => 'Int';
throws_like '1.+foo', X::Method::NotFound, method => 'foo', typename => 'Int';

# RT #58558
throws_like '!!! 42', X::AdHoc, payload => 42;
throws_like 'use fatal; ... 42', X::AdHoc, payload => 42;
Expand All @@ -218,4 +221,5 @@ throws_like 'sub f() returns Str { 5 }; f', X::TypeCheck::Return, got => Int, ex

throws_like '1.foo', X::Method::NotFound, method => 'foo', typename => 'Int';


done;

0 comments on commit d701cfa

Please sign in to comment.