(arr, dim)
| 113 | |
| 114 | @pytest.mark.parametrize("dim", [0, 1, 3]) |
| 115 | def test_at_fail(arr, dim): |
| 116 | for func in m.at_t, m.mutate_at_t: |
| 117 | with pytest.raises(IndexError) as excinfo: |
| 118 | func(arr, *([0] * dim)) |
| 119 | assert str(excinfo.value) == f"index dimension mismatch: {dim} (ndim = 2)" |
| 120 | |
| 121 | |
| 122 | def test_at(arr): |