Wrapper around `do_error_test` to parse an expression. Given that expressions alone are not valid statements, we have to put them in a statement to parse them. In doing so, we can also put an extra statement after them to ensure we detect their end properly.
(input: &str, msg: &str)
| 2981 | /// valid statements, we have to put them in a statement to parse them. In doing so, we can |
| 2982 | /// also put an extra statement after them to ensure we detect their end properly. |
| 2983 | fn do_expr_error_test(input: &str, msg: &str) { |
| 2984 | do_error_test(&format!("PRINT {}, 1", input), msg) |
| 2985 | } |
| 2986 | |
| 2987 | #[test] |
| 2988 | fn test_expr_literals() { |