(self, buf, sub, start, end, dt)
| 782 | ("rrarrrrrrrrra", "a", 4, 6), |
| 783 | ]) |
| 784 | def test_index_raises(self, buf, sub, start, end, dt): |
| 785 | buf = np.array(buf, dtype=dt) |
| 786 | sub = np.array(sub, dtype=dt) |
| 787 | with pytest.raises(ValueError, match="substring not found"): |
| 788 | np.strings.index(buf, sub, start, end) |
| 789 | |
| 790 | @pytest.mark.parametrize("buf,sub,start,end,res", [ |
| 791 | ("abcdefghiabc", "", 0, None, 12), |