Skip to content

Commit

Permalink
RT116166, test for interpolating "$a."
Browse files Browse the repository at this point in the history
  • Loading branch information
FROGGS committed Jan 19, 2013
1 parent f71c502 commit e2ce199
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion S02-literals/misc-interpolation.t
Expand Up @@ -10,7 +10,7 @@ These tests derived from comments in L<http://use.perl.org/~autrijus/journal/233
=end pod

plan 44;
plan 46;

my $world = "World";
my $number = 1;
Expand Down Expand Up @@ -44,6 +44,11 @@ is("$number {my $number=2} $number", '1 2 1', 'original number still available a

# L<S02/Names and Variables/form of each subscript>
is("&func. () is where I live", '&func. () is where I live', '"&func. ()" should not interpolate');

# RT #116166
is("$world.", 'World.', '"$world." should not interpolate');
is("$world!", 'World!', '"$world!" should not interpolate');

#?niecza skip 'Action method escape:sym<&> not yet implemented'
is("&func_w_args("foo","bar"))", '[foo][bar])', '"&func_w_args(...)" should interpolate');

Expand Down

0 comments on commit e2ce199

Please sign in to comment.