Permalink
Browse files

track exception name change, and add another test

  • Loading branch information...
1 parent 062d17a commit 46f9b17dad05d1669232e8a9dafcab87b08dac28 @moritz moritz committed Mar 8, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 S32-exceptions/misc.t
@@ -146,7 +146,8 @@ throws_like '$.a', X::Syntax::NoSelf, variable => '$.a';
throws_like 'has $.x', X::Attribute::NoPackage;
throws_like 'my module A { has $.x }', X::Attribute::Package, package-type => 'module';
-throws_like 'has sub a() { }', X::Sub::Scope, scope => 'has';
+throws_like 'has sub a() { }', X::Declaration::Scope, scope => 'has', declaration => 'sub';
+throws_like 'has package a { }', X::Declaration::Scope, scope => 'has', declaration => 'package';
throws_like 'multi sub () { }', X::Anon::Multi, multiness => 'multi';
throws_like 'proto sub () { }', X::Anon::Multi, multiness => 'proto';
throws_like 'class { multi method () { }}', X::Anon::Multi, routine-type => 'method';

0 comments on commit 46f9b17

Please sign in to comment.