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

Method test_setdiff1d_unique

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

Source from the content-addressed store, hash-verified

607 assert_equal(setdiff1d(a, []).dtype, np.uint32)
608
609 def test_setdiff1d_unique(self):
610 a = np.array([3, 2, 1])
611 b = np.array([7, 5, 2])
612 expected = np.array([3, 1])
613 actual = setdiff1d(a, b, assume_unique=True)
614 assert_equal(actual, expected)
615
616 def test_setdiff1d_char_array(self):
617 a = np.array(['a', 'b', 'c'])

Callers

nothing calls this directly

Calls 2

setdiff1dFunction · 0.90
assert_equalFunction · 0.90

Tested by

no test coverage detected