Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Update augment exception test and add another one.

New test covers RT#112956.
  • Loading branch information...
commit 6e76108a7ce0ec07610f7aba1be192608a9799ba 1 parent 44024a8
Jonathan Worthington authored March 08, 2013

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. 3  S32-exceptions/misc.t
3  S32-exceptions/misc.t
@@ -113,7 +113,8 @@ throws_like '@a', X::Undeclared, symbol => '@a';
113 113
 # RT #115396
114 114
 throws_like '"@a[]"', X::Undeclared, symbol => '@a';
115 115
 throws_like 'augment class Any { }', X::Syntax::Augment::WithoutMonkeyTyping;
116  
-throws_like 'use MONKEY_TYPING; augment role Positional { }', X::Syntax::Augment::Role;
  116
+throws_like 'use MONKEY_TYPING; augment role Positional { }', X::Syntax::Augment::Illegal;
  117
+throws_like 'use MONKEY_TYPING; enum Weekday <Mon Tue>; augment class Weekday { }', X::Syntax::Augment::Illegal;
117 118
 throws_like 'sub postbla:sym<foo>() { }', X::Syntax::Extension::Category, category => 'postbla';
118 119
 # RT #83992
119 120
 throws_like 'my @a = 1, => 2', X::Syntax::InfixInTermPosition, infix => '=>';

0 notes on commit 6e76108

Please sign in to comment.
Something went wrong with that request. Please try again.