(self)
| 1632 | assert_array_equal(c, d) |
| 1633 | |
| 1634 | def test_in1d(self): |
| 1635 | # Test in1d |
| 1636 | a = array([1, 2, 5, 7, -1], mask=[0, 0, 0, 0, 1]) |
| 1637 | b = array([1, 2, 3, 4, 5, -1], mask=[0, 0, 0, 0, 0, 1]) |
| 1638 | test = in1d(a, b) |
| 1639 | assert_equal(test, [True, True, True, False, True]) |
| 1640 | # |
| 1641 | a = array([5, 5, 2, 1, -1], mask=[0, 0, 0, 0, 1]) |
| 1642 | b = array([1, 5, -1], mask=[0, 0, 1]) |
| 1643 | test = in1d(a, b) |
| 1644 | assert_equal(test, [True, True, False, True, True]) |
| 1645 | # |
| 1646 | assert_array_equal([], in1d([], [])) |
| 1647 | |
| 1648 | def test_in1d_invert(self): |
| 1649 | # Test in1d's invert parameter |
nothing calls this directly
no test coverage detected