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

Method test_setdiff1d_unique

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

Source from the content-addressed store, hash-verified

597 assert_equal(setdiff1d(a, []).dtype, np.uint32)
598
599 def test_setdiff1d_unique(self):
600 a = np.array([3, 2, 1])
601 b = np.array([7, 5, 2])
602 expected = np.array([3, 1])
603 actual = setdiff1d(a, b, assume_unique=True)
604 assert_equal(actual, expected)
605
606 def test_setdiff1d_char_array(self):
607 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