[lang-ref] ( index_of_string_from_end ) ( python )
def test_index_of_string_from_end():
text = 'abcdefghi abcdefghi'
s = 'def'
assert text.rfind(s) == 13
assert text.rindex(s) == 13
def test_index_of_string_from_end():
text = 'abcdefghi abcdefghi'
s = 'def'
assert text.rfind(s) == 13
assert text.rindex(s) == 13