(self)
| 2614 | assert_equal(np.bitwise_xor(arg1, arg2), out) |
| 2615 | |
| 2616 | def test_reduce(self): |
| 2617 | none = np.array([0, 0, 0, 0], bool) |
| 2618 | some = np.array([1, 0, 1, 1], bool) |
| 2619 | every = np.array([1, 1, 1, 1], bool) |
| 2620 | empty = np.array([], bool) |
| 2621 | |
| 2622 | arrs = [none, some, every, empty] |
| 2623 | |
| 2624 | for arr in arrs: |
| 2625 | assert_equal(np.logical_and.reduce(arr), all(arr)) |
| 2626 | |
| 2627 | for arr in arrs: |
| 2628 | assert_equal(np.logical_or.reduce(arr), any(arr)) |
| 2629 | |
| 2630 | for arr in arrs: |
| 2631 | assert_equal(np.logical_xor.reduce(arr), arr.sum() % 2 == 1) |
| 2632 | |
| 2633 | |
| 2634 | class TestBitwiseUFuncs: |
nothing calls this directly
no test coverage detected