(self)
| 1709 | assert_array_equal([], in1d([], [])) |
| 1710 | |
| 1711 | def test_in1d_invert(self): |
| 1712 | # Test in1d's invert parameter |
| 1713 | a = array([1, 2, 5, 7, -1], mask=[0, 0, 0, 0, 1]) |
| 1714 | b = array([1, 2, 3, 4, 5, -1], mask=[0, 0, 0, 0, 0, 1]) |
| 1715 | assert_equal(np.invert(in1d(a, b)), in1d(a, b, invert=True)) |
| 1716 | |
| 1717 | a = array([5, 5, 2, 1, -1], mask=[0, 0, 0, 0, 1]) |
| 1718 | b = array([1, 5, -1], mask=[0, 0, 1]) |
| 1719 | assert_equal(np.invert(in1d(a, b)), in1d(a, b, invert=True)) |
| 1720 | |
| 1721 | assert_array_equal([], in1d([], [], invert=True)) |
| 1722 | |
| 1723 | def test_union1d(self): |
| 1724 | # Test union1d |
nothing calls this directly
no test coverage detected