Test that isin works for boolean input
(self, kind)
| 382 | |
| 383 | @pytest.mark.parametrize("kind", [None, "sort", "table"]) |
| 384 | def test_isin_boolean(self, kind): |
| 385 | """Test that isin works for boolean input""" |
| 386 | a = np.array([True, False]) |
| 387 | b = np.array([False, False, False]) |
| 388 | expected = np.array([False, True]) |
| 389 | assert_array_equal(expected, |
| 390 | isin(a, b, kind=kind)) |
| 391 | assert_array_equal(np.invert(expected), |
| 392 | isin(a, b, invert=True, kind=kind)) |
| 393 | |
| 394 | @pytest.mark.parametrize("kind", [None, "sort"]) |
| 395 | def test_isin_timedelta(self, kind): |
nothing calls this directly
no test coverage detected