Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Test to cover Cool.substr(WhateverCode) case.
  • Loading branch information
jnthn committed Feb 28, 2013
1 parent 4609872 commit 87364c3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion S32-str/substr.t
Expand Up @@ -2,7 +2,7 @@ use v6;

use Test;

plan 91;
plan 92;

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

Expand Down Expand Up @@ -262,4 +262,9 @@ eval_dies_ok 'substr(Any, 0)', 'substr needs Cool as argument';
is "abcd".substr(2, Inf), 'cd', 'substr to Inf'
}

{
is 123456789.substr(*-3), '789', 'substr with Int and WhateverCode arg';

}

# vim: ft=perl6

0 comments on commit 87364c3

Please sign in to comment.