Skip to content

Commit

Permalink
RT #112818, rindex with non-Latin-1 strings
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed May 10, 2012
1 parent c99e10b commit f7639b1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion S32-str/rindex.t
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use Test;

# L<S32::Str/Str/"=item rindex">

plan 32;
plan 33;

# Simple - with just a single char

Expand Down Expand Up @@ -67,4 +67,7 @@ is($s.lc.ucfirst.rindex("w"), 6, ".lc.ucfirst.rindex");
# rindex on non-strings
ok 3459.rindex(5) == 2, 'rindex on integers';

# RT #112818
is "\x261b perl \x261a".rindex('e'), 3, 'rindex with non-latin-1 strings';

# vim: ft=perl6

0 comments on commit f7639b1

Please sign in to comment.