Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Test covering RT #125620.
  • Loading branch information
jnthn committed Jul 18, 2015
1 parent 03d13c1 commit 0853325
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion S32-exceptions/misc.t
Expand Up @@ -3,7 +3,7 @@ use Test;
use lib "t/spec/packages";
use Test::Util;

plan 326;
plan 328;

throws-like '42 +', X::AdHoc, "missing rhs of infix", message => rx/term/;

Expand Down Expand Up @@ -702,4 +702,13 @@ throws-like 'my package P { }; sub foo(P of Int) { }', X::NotParametric;
throws-like 'my module M { }; sub foo(M of Int) { }', X::NotParametric;
throws-like 'my class C { }; sub foo(C of Int)', X::NotParametric;

# RT #125620
{
my class CustomException is Exception {}
try die CustomException.new;
lives-ok { $!.gist }, 'Can gist an exception with no message method';
ok $!.gist ~~ /CustomException/,
'The gist of exception with no message method mentions the type';
}

# vim: ft=perl6

0 comments on commit 0853325

Please sign in to comment.