Test error message for malformed expressions.
()
| 328 | |
| 329 | |
| 330 | def test_eval_error_syntax() -> None: |
| 331 | """Test error message for malformed expressions.""" |
| 332 | ds = Dataset({"a": ("x", [1, 2, 3])}) |
| 333 | with pytest.raises(ValueError, match="Invalid"): |
| 334 | ds.eval("a +") |
| 335 | |
| 336 | |
| 337 | def test_eval_error_invalid_assignment() -> None: |