Skip to content

Commit

Permalink
substr with start beyond end of string is Failure, RT #76682
Browse files Browse the repository at this point in the history
  • Loading branch information
bbkr committed Jul 15, 2012
1 parent d92fdf6 commit c1c897c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion S32-str/substr.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use v6;

use Test;

plan 86;
plan 87;

# L<S32::Str/Str/=item substr>

Expand Down Expand Up @@ -239,4 +239,8 @@ sub p (Int $a) { my $p = $a; return $p }
#?pugs todo
eval_dies_ok 'substr(Any, 0)', 'substr needs Cool as argument';

# RT 76682
{
is "foo".substr(4), Failure, 'substr with start beyond end of string is Failure'
}
# vim: ft=perl6

0 comments on commit c1c897c

Please sign in to comment.