Skip to content

Commit

Permalink
test X::Syntax::NonAssociative
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed Dec 30, 2012
1 parent 80239a7 commit ee14752
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions S32-exceptions/misc.t
Expand Up @@ -191,6 +191,7 @@ throws_like 'sub foo;', X::Syntax::Missing, what => 'block';
throws_like 'my $d; my class A {method x { $d }}; for () { sub }', X::Syntax::Missing, what => 'block';
throws_like 'constant foo;', X::Syntax::Missing, what => /initializer/;
throws_like 'constant * = 3;', X::Syntax::Missing, what => /constant/;
throws_like '1 <=> 2 <=> 3', X::Syntax::NonAssociative, left => '<=>', right => '<=>';

throws_like 'class A {...}; grammar B { ... }', X::Package::Stubbed, packages => <A B>;

Expand Down

0 comments on commit ee14752

Please sign in to comment.