| 5073 | assert mask_or(a, a) is nomask # gh-27360 |
| 5074 | |
| 5075 | def test_allequal(self): |
| 5076 | x = array([1, 2, 3], mask=[0, 0, 0]) |
| 5077 | y = array([1, 2, 3], mask=[1, 0, 0]) |
| 5078 | z = array([[1, 2, 3], [4, 5, 6]], mask=[[0, 0, 0], [1, 1, 1]]) |
| 5079 | |
| 5080 | assert allequal(x, y) |
| 5081 | assert not allequal(x, y, fill_value=False) |
| 5082 | assert allequal(x, z) |
| 5083 | |
| 5084 | # test allequal for the same input, with mask=nomask, this test is for |
| 5085 | # the scenario raised in https://github.com/numpy/numpy/issues/27201 |
| 5086 | assert allequal(x, x) |
| 5087 | assert allequal(x, x, fill_value=False) |
| 5088 | |
| 5089 | assert allequal(y, y) |
| 5090 | assert not allequal(y, y, fill_value=False) |
| 5091 | |
| 5092 | def test_flatten_mask(self): |
| 5093 | # Tests flatten mask |