String#rindex should no longer take integer argument

This commit is contained in:
Yukihiro "Matz" Matsumoto
2015-09-23 01:06:11 +09:00
parent 418eec2c7d
commit 6a06a3e48d
2 changed files with 0 additions and 13 deletions
-3
View File
@@ -424,9 +424,6 @@ assert('String#rindex', '15.2.10.5.31') do
assert_nil 'abc'.rindex('d')
assert_equal 0, 'abcabc'.rindex('a', 1)
assert_equal 3, 'abcabc'.rindex('a', 4)
assert_equal 3, 'abcabc'.rindex(97)
assert_equal nil, 'abcabc'.rindex(0)
end
# 'String#scan', '15.2.10.5.32' will be tested in mrbgems.