MCPcopy Index your code
hub / github.com/numpy/numpy / test_rindex

Method test_rindex

numpy/_core/tests/test_strings.py:796–799  ·  view source on GitHub ↗
(self, buf, sub, start, end, res, dt)

Source from the content-addressed store, hash-verified

794 ("abcdefghiabc", "abc", 0, -1, 0),
795 ])
796 def test_rindex(self, buf, sub, start, end, res, dt):
797 buf = np.array(buf, dtype=dt)
798 sub = np.array(sub, dtype=dt)
799 assert_array_equal(np.strings.rindex(buf, sub, start, end), res)
800
801 @pytest.mark.parametrize("buf,sub,start,end", [
802 ("abcdefghiabc", "hib", 0, None),

Callers

nothing calls this directly

Calls 2

assert_array_equalFunction · 0.90
rindexMethod · 0.80

Tested by

no test coverage detected