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

Method test_intersect1d

numpy/ma/tests/test_extras.py:1579–1585  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1577 assert_equal(test.mask, control.mask)
1578
1579 def test_intersect1d(self):
1580 # Test intersect1d
1581 x = array([1, 3, 3, 3], mask=[0, 0, 0, 1])
1582 y = array([3, 1, 1, 1], mask=[0, 0, 0, 1])
1583 test = intersect1d(x, y)
1584 control = array([1, 3, -1], mask=[0, 0, 1])
1585 assert_equal(test, control)
1586
1587 def test_setxor1d(self):
1588 # Test setxor1d

Callers

nothing calls this directly

Calls 3

arrayFunction · 0.90
intersect1dFunction · 0.90
assert_equalFunction · 0.90

Tested by

no test coverage detected