Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add test for RT #123884
  • Loading branch information
Mouq committed Feb 23, 2015
1 parent 5dd29d5 commit 1777fbd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion S32-exceptions/misc.t
Expand Up @@ -3,7 +3,7 @@ use Test;
use lib "t/spec/packages";
use Test::Util;

plan 281;
plan 282;

#?DOES 1
throws_like { Buf.new().Str }, X::Buf::AsStr, method => 'Str';;
Expand Down Expand Up @@ -184,6 +184,9 @@ throws_like '$#', X::Syntax::Perl5Var;
# RT #122645
lives_ok { EVAL '$@' }, '$@ is no longer a problem';

# RT #123884
throws_like '$\\ = 1;', X::Syntax::Perl5Var, message => /\.nl/, "Error message for \$\\ mentions .nl";

throws_like { EVAL '"$"' }, X::Backslash::NonVariableDollar, 'non-variable $ in double quotes requires backslash';
lives_ok { EVAL 'class frob { has @!bar; method test { return $@!bar } }' },
'uses of $@!bar not wrongfully accused of using old $@ variable';
Expand Down

0 comments on commit 1777fbd

Please sign in to comment.