(self)
| 36 | assert_array_equal([], intersect1d([], [])) |
| 37 | |
| 38 | def test_intersect1d_array_like(self): |
| 39 | # See gh-11772 |
| 40 | class Test: |
| 41 | def __array__(self, dtype=None, copy=None): |
| 42 | return np.arange(3) |
| 43 | |
| 44 | a = Test() |
| 45 | res = intersect1d(a, a) |
| 46 | assert_array_equal(res, a) |
| 47 | res = intersect1d([1, 2, 3], [1, 2, 3]) |
| 48 | assert_array_equal(res, [1, 2, 3]) |
| 49 | |
| 50 | def test_intersect1d_indices(self): |
| 51 | # unique inputs |
nothing calls this directly
no test coverage detected