()
| 420 | |
| 421 | #[test] |
| 422 | fn syntax_error_unexpected_char() { |
| 423 | let file_id = FileId::new("test.php"); |
| 424 | let err = ParseError::SyntaxError(SyntaxError::UnexpectedToken(file_id, b'#', pos(5))); |
| 425 | let msg = format_parse_error(&err); |
| 426 | assert_eq!(msg, "Syntax error: unexpected character `#`"); |
| 427 | } |
| 428 | |
| 429 | #[test] |
| 430 | fn syntax_error_unrecognized_char() { |
nothing calls this directly
no test coverage detected