(self)
| 1752 | assert_identical(actual, expected) |
| 1753 | |
| 1754 | def test_stack_errors(self): |
| 1755 | v = Variable(["x", "y"], [[0, 1], [2, 3]], {"foo": "bar"}) |
| 1756 | |
| 1757 | with pytest.raises(ValueError, match=r"invalid existing dim"): |
| 1758 | v.stack(z=("x1",)) |
| 1759 | with pytest.raises(ValueError, match=r"cannot create a new dim"): |
| 1760 | v.stack(x=("x",)) |
| 1761 | |
| 1762 | def test_unstack(self): |
| 1763 | v = Variable("z", [0, 1, 2, 3], {"foo": "bar"}) |