(arr, dim)
| 152 | |
| 153 | @pytest.mark.parametrize("dim", [0, 1, 3]) |
| 154 | def test_at_fail(arr, dim): |
| 155 | for func in m.at_t, m.mutate_at_t: |
| 156 | with pytest.raises(IndexError) as excinfo: |
| 157 | func(arr, *([0] * dim)) |
| 158 | assert str(excinfo.value) == f"index dimension mismatch: {dim} (ndim = 2)" |
| 159 | |
| 160 | |
| 161 | def test_at(arr): |