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

Method test_find

numpy/_core/tests/test_strings.py:407–412  ·  view source on GitHub ↗
(self, a, sub, start, end, out, dt)

Source from the content-addressed store, hash-verified

405 id=r"A*2**17-[\w]+\Z-0-None--1"),
406 ])
407 def test_find(self, a, sub, start, end, out, dt):
408 if "😊" in a and dt == "S":
409 pytest.skip("Bytes dtype does not support non-ascii input")
410 a = np.array(a, dtype=dt)
411 sub = np.array(sub, dtype=dt)
412 assert_array_equal(np.strings.find(a, sub, start, end), out)
413
414 @pytest.mark.parametrize("a,sub,start,end,out", [
415 ("abcdefghiabc", "abc", 0, None, 9),

Callers

nothing calls this directly

Calls 2

assert_array_equalFunction · 0.90
findMethod · 0.80

Tested by

no test coverage detected