Skip to content

Commit

Permalink
test for qr obsoletion message
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed Mar 27, 2012
1 parent 2f179c1 commit 9fb1b22
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion S32-exceptions/misc.t
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ throws_like 'sub f() { $^x }', X::Signature::Placeholder,
line => 1;

#?rakudo skip 'parsing of $& and other p5 variables'
throws_like '$&', X::Obsolete, old => '$@ variable', new => '$/ or $()';
throws_like '$&', X::Obsolete, old => '$@ variable', replacement => '$, rx/<<rx>>// or $()';
throws_like 'qr/a/', X::Obsolete, old => rx/<<qr>>/, replacement => rx/<<rx>>/;

throws_like 'do { $^x }', X::Placeholder::Block, placeholder => '$^x';
throws_like 'do { @_ }', X::Placeholder::Block, placeholder => '@_';
Expand Down

0 comments on commit 9fb1b22

Please sign in to comment.