Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Test for RT #123967.
  • Loading branch information
jnthn committed Apr 8, 2015
1 parent 99b6ed7 commit 5069ad0
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion S32-exceptions/misc.t
Expand Up @@ -3,7 +3,7 @@ use Test;
use lib "t/spec/packages";
use Test::Util;

plan 294;
plan 295;

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

Expand Down Expand Up @@ -627,4 +627,12 @@ throws_like '5.', X::Comp::Group, sorrows => sub (@s) { @s[0] ~~ X::Syntax::Numb
throws_like 'BEGIN { ohnoes() }; sub ohnoes() { }', X::Undeclared::Symbols;
throws_like 'BEGIN { die "oh noes!" }', X::Comp::BeginTime, exception => sub ($e) { $e.message eq 'oh noes!' };

throws_like q:to/CODE/, X::Comp::BeginTime, exception => X::Multi::NoMatch;
class Polar {
proto method new(|) { * }
multi method new(Real \mag, Real \theta) { }
}
constant j = Polar.new( 0e0 );
CODE

# vim: ft=perl6

0 comments on commit 5069ad0

Please sign in to comment.