MCPcopy Create free account
hub / github.com/numpy/numpy / test_in1d_char_array

Method test_in1d_char_array

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

Source from the content-addressed store, hash-verified

319 assert_array_equal(in1d([], [], kind=kind), [])
320
321 def test_in1d_char_array(self):
322 a = np.array(['a', 'b', 'c', 'd', 'e', 'c', 'e', 'b'])
323 b = np.array(['a', 'c'])
324
325 ec = np.array([True, False, True, False, False, True, False, False])
326 c = in1d(a, b)
327
328 assert_array_equal(c, ec)
329
330 @pytest.mark.parametrize("kind", [None, "sort", "table"])
331 def test_in1d_invert(self, kind):

Callers

nothing calls this directly

Calls 2

in1dFunction · 0.90
assert_array_equalFunction · 0.90

Tested by

no test coverage detected