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

Method test_manyways

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

Source from the content-addressed store, hash-verified

619 assert_array_equal(setdiff1d(a, b), np.array(['c']))
620
621 def test_manyways(self):
622 a = np.array([5, 7, 1, 2, 8])
623 b = np.array([9, 8, 2, 4, 3, 1, 5])
624
625 c1 = setxor1d(a, b)
626 aux1 = intersect1d(a, b)
627 aux2 = union1d(a, b)
628 c2 = setdiff1d(aux2, aux1)
629 assert_array_equal(c1, c2)
630
631
632class TestUnique:

Callers

nothing calls this directly

Calls 5

setxor1dFunction · 0.90
intersect1dFunction · 0.90
union1dFunction · 0.90
setdiff1dFunction · 0.90
assert_array_equalFunction · 0.90

Tested by

no test coverage detected