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

Method test_index_unicode

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

Source from the content-addressed store, hash-verified

1184 ("Ae¢☃€ 😊" * 2, "😊", 7, None, 13),
1185 ])
1186 def test_index_unicode(self, buf, sub, start, end, res, dt):
1187 buf = np.array(buf, dtype=dt)
1188 sub = np.array(sub, dtype=dt)
1189 assert_array_equal(np.strings.index(buf, sub, start, end), res)
1190
1191 def test_index_raises_unicode(self, dt):
1192 with pytest.raises(ValueError, match="substring not found"):

Callers

nothing calls this directly

Calls 2

assert_array_equalFunction · 0.90
indexMethod · 0.45

Tested by

no test coverage detected