Permalink
Browse files

test X::Syntax::NonAssociative

  • Loading branch information...
1 parent 80239a7 commit ee147523b1df2e036c49addf6e2fd3bb485d5b2e @moritz moritz committed Dec 30, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 S32-exceptions/misc.t
@@ -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>;

0 comments on commit ee14752

Please sign in to comment.