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

Method test_rfind

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

Source from the content-addressed store, hash-verified

428 ("Ae¢☃€ 😊" * 2, "😊", 0, 7, 6),
429 ])
430 def test_rfind(self, a, sub, start, end, out, dt):
431 if "😊" in a and dt == "S":
432 pytest.skip("Bytes dtype does not support non-ascii input")
433 a = np.array(a, dtype=dt)
434 sub = np.array(sub, dtype=dt)
435 assert_array_equal(np.strings.rfind(a, sub, start, end), out)
436
437 @pytest.mark.parametrize("a,sub,start,end,out", [
438 ("aaa", "a", 0, None, 3),

Callers

nothing calls this directly

Calls 2

assert_array_equalFunction · 0.90
rfindMethod · 0.80

Tested by

no test coverage detected