Skip to content

Commit

Permalink
unfudge the rest of the rindex tests that rakudo master passed
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed Jul 15, 2011
1 parent 2b7dab1 commit dea1e41
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions S32-str/rindex.t
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,11 @@ is(rindex("Hello World", "Hello World"), 0, "Substr eq Str");

# Empty strings

#?rakudo todo 'nom regression'
is(rindex("Hello World", ""), 11, "Substr is empty");
#?rakudo todo 'nom regression'
is(rindex("", ""), 0, "Both strings are empty");
ok(!defined(rindex("", "Hello")), "Only main-string is empty");
#?rakudo todo 'nom regression'
is(rindex("Hello", "", 3), 3, "Substr is empty, pos within str");
#?rakudo todo 'nom regression'
is(rindex("Hello", "", 5), 5, "Substr is empty, pos at end of str");
#?rakudo todo 'nom regression'
is(rindex("Hello", "", 999), 5, "Substr is empty, pos > length of str");

# More difficult strings
Expand All @@ -52,7 +47,6 @@ is(rindex("what are these « » unicode characters for ?", "uni"), 19, "over uni

# .rindex use
is("Hello World".rindex("l"), 9, ".rindex on string");
#?rakudo todo 'nom regression'
is("Hello World".rindex(''), 11, ".rindex('') on string gives string length in bytes");

# on scalar variable
Expand Down

0 comments on commit dea1e41

Please sign in to comment.