Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
more tests for "constant" parse errors
  • Loading branch information
moritz committed Mar 3, 2012
1 parent 9f76350 commit 157d7b7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions S32-exceptions/misc.t
Expand Up @@ -164,5 +164,7 @@ throws_like 'my %h = 1', X::Hash::Store::OddNumber;

# TOOD: might be X::Syntax::Malformed too...
throws_like 'sub foo;', X::Syntax::Missing, what => 'block';
throws_like 'constant foo;', X::Syntax::Missing, what => /initializer/;
throws_like 'constant * = 3;', X::Syntax::Missing, what => /constant/;

done;

0 comments on commit 157d7b7

Please sign in to comment.