Skip to content

Commit

Permalink
Add test for RT #114526 (fudged 'skip' for Parrot)
Browse files Browse the repository at this point in the history
  • Loading branch information
usev6 committed Jan 25, 2015
1 parent 5ddd66b commit 7eb85d9
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions S32-str/substr-rw.t
Expand Up @@ -2,7 +2,7 @@ use v6;

use Test;

plan 32;
plan 33;

sub l (Int $a) { my $l = $a; return $l }

Expand Down Expand Up @@ -123,4 +123,13 @@ sub l (Int $a) { my $l = $a; return $l }
is($str, 'fox', 'method form of substr-rw works');
};

# vim: ft=perl6
# RT #114526
#?rakudo.parrot skip 'RT #114526'
{
my $str = 'ab';
substr-rw($str, 0, 3) = '/';
is "--$str--", '--/--',
'substr-rw handles end positions that are out of range';
}

# vim: ft=perl6

0 comments on commit 7eb85d9

Please sign in to comment.