MCPcopy
hub / github.com/numpy/numpy / test_isin_char_array

Method test_isin_char_array

numpy/lib/tests/test_arraysetops.py:337–344  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

335 assert_array_equal(isin([], [], kind=kind), [])
336
337 def test_isin_char_array(self):
338 a = np.array(['a', 'b', 'c', 'd', 'e', 'c', 'e', 'b'])
339 b = np.array(['a', 'c'])
340
341 ec = np.array([True, False, True, False, False, True, False, False])
342 c = isin(a, b)
343
344 assert_array_equal(c, ec)
345
346 @pytest.mark.parametrize("kind", [None, "sort", "table"])
347 def test_isin_invert(self, kind):

Callers

nothing calls this directly

Calls 2

isinFunction · 0.90
assert_array_equalFunction · 0.90

Tested by

no test coverage detected