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

Method test_index

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

Source from the content-addressed store, hash-verified

770 ("abcdefghiabc", "abc", 1, None, 9),
771 ])
772 def test_index(self, buf, sub, start, end, res, dt):
773 buf = np.array(buf, dtype=dt)
774 sub = np.array(sub, dtype=dt)
775 assert_array_equal(np.strings.index(buf, sub, start, end), res)
776
777 @pytest.mark.parametrize("buf,sub,start,end", [
778 ("abcdefghiabc", "hib", 0, None),

Callers

nothing calls this directly

Calls 2

assert_array_equalFunction · 0.90
indexMethod · 0.45

Tested by

no test coverage detected