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

Method test_rindex_raises

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

Source from the content-addressed store, hash-verified

807 ("rrarrrrrrrrra", "a", 4, 6),
808 ])
809 def test_rindex_raises(self, buf, sub, start, end, dt):
810 buf = np.array(buf, dtype=dt)
811 sub = np.array(sub, dtype=dt)
812 with pytest.raises(ValueError, match="substring not found"):
813 np.strings.rindex(buf, sub, start, end)
814
815 @pytest.mark.parametrize("buf,tabsize,res", [
816 ("abc\rab\tdef\ng\thi", 8, "abc\rab def\ng hi"),

Callers

nothing calls this directly

Calls 1

rindexMethod · 0.80

Tested by

no test coverage detected