Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
add test for s/// on non-string
  • Loading branch information
TimToady committed Apr 6, 2015
1 parent 4faae07 commit 6f63ff8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion S05-substitution/subst.t
Expand Up @@ -2,7 +2,7 @@ use v6;

use Test;

plan 148;
plan 149;

# L<S05/Substitution/>

Expand Down Expand Up @@ -445,6 +445,11 @@ is '12'.subst(/(.)(.)/,{$()*2}),'24', '.. and do nifty things in closures';
is $foo, 'baz', 's{}="" plus statement mod if is not parsed as /i';
}

{
my $_ = 42; s/\d+/xxx/;
is $_, 'xxx', 's/// can modify a container that contains a non-string';
}

done;

# vim: ft=perl6

0 comments on commit 6f63ff8

Please sign in to comment.