Permalink
Browse files

test for qr obsoletion message

  • Loading branch information...
moritz committed Mar 27, 2012
1 parent 2f179c1 commit 9fb1b22e04e52643d832a566b04cf6d27be82944
Showing with 2 additions and 1 deletion.
  1. +2 −1 S32-exceptions/misc.t
View
@@ -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 => '@_';

0 comments on commit 9fb1b22

Please sign in to comment.