(self)
| 1695 | assert_array_equal(c, d) |
| 1696 | |
| 1697 | def test_in1d(self): |
| 1698 | # Test in1d |
| 1699 | a = array([1, 2, 5, 7, -1], mask=[0, 0, 0, 0, 1]) |
| 1700 | b = array([1, 2, 3, 4, 5, -1], mask=[0, 0, 0, 0, 0, 1]) |
| 1701 | test = in1d(a, b) |
| 1702 | assert_equal(test, [True, True, True, False, True]) |
| 1703 | # |
| 1704 | a = array([5, 5, 2, 1, -1], mask=[0, 0, 0, 0, 1]) |
| 1705 | b = array([1, 5, -1], mask=[0, 0, 1]) |
| 1706 | test = in1d(a, b) |
| 1707 | assert_equal(test, [True, True, False, True, True]) |
| 1708 | # |
| 1709 | assert_array_equal([], in1d([], [])) |
| 1710 | |
| 1711 | def test_in1d_invert(self): |
| 1712 | # Test in1d's invert parameter |
nothing calls this directly
no test coverage detected