Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Test for RT #125402.
  • Loading branch information
jnthn committed Jun 23, 2015
1 parent 1eb6df0 commit 424a9a1
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion S32-str/substr-rw.t
Expand Up @@ -2,7 +2,7 @@ use v6;

use Test;

plan 33;
plan 34;

{
my $str = "gorch ding";
Expand Down Expand Up @@ -125,4 +125,11 @@ plan 33;
'substr-rw handles end positions that are out of range';
}

# RT #125402
{
my $s = 'foobar';
$s.substr-rw(3, 3) = 1;
is $s, 'foo1', 'assigning a non-string coerces';
}

# vim: ft=perl6

0 comments on commit 424a9a1

Please sign in to comment.