(self)
| 1676 | assert_array_equal([], union1d([], [])) |
| 1677 | |
| 1678 | def test_setdiff1d(self): |
| 1679 | # Test setdiff1d |
| 1680 | a = array([6, 5, 4, 7, 7, 1, 2, 1], mask=[0, 0, 0, 0, 0, 0, 0, 1]) |
| 1681 | b = array([2, 4, 3, 3, 2, 1, 5]) |
| 1682 | test = setdiff1d(a, b) |
| 1683 | assert_equal(test, array([6, 7, -1], mask=[0, 0, 1])) |
| 1684 | # |
| 1685 | a = arange(10) |
| 1686 | b = arange(8) |
| 1687 | assert_equal(setdiff1d(a, b), array([8, 9])) |
| 1688 | a = array([], np.uint32, mask=[]) |
| 1689 | assert_equal(setdiff1d(a, []).dtype, np.uint32) |
| 1690 | |
| 1691 | def test_setdiff1d_char_array(self): |
| 1692 | # Test setdiff1d_charray |
nothing calls this directly
no test coverage detected