Skip to content

Commit 2002a2f

Browse files
committed
more typed exceptions
1 parent 31654a6 commit 2002a2f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

S32-exceptions/misc.t

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
use v6;
22
use Test;
33

4+
#?DOES 1
45
sub throws_like($code, $ex_type, *%matcher) {
56
my $msg;
67
if $code ~~ Callable {
@@ -114,4 +115,12 @@ throws_like 'sub f(*@a, $b?) { }', X::Parameter::WrongOrder,
114115
misplaced => 'optional positional',
115116
after => 'variadic';
116117

118+
#?rakudo skip 'parsing regression'
119+
throws_like '#`', X::Syntax::Comment::Embedded;
120+
#?rakudo skip 'parsing regression'
121+
throws_like '=begin', X::Syntax::Pod::BeginWithoutIdentifier;
122+
123+
throws_like '@', X::Syntax::SigilWithoutName;
124+
throws_like '1∞', X::Syntax::Confused;
125+
117126
done;

0 commit comments

Comments
 (0)