This commit is contained in:
gabriel 2024-05-15 08:57:42 +08:00
parent 6ad7a434a7
commit 5832e12580

View File

@ -187,6 +187,13 @@ fn lex_incomplete_quote() {
assert!(matches!(err, ParseError::UnexpectedEof(v, _) if v == "'"));
}
#[test]
fn lex_odd_string_interpolations() {
let file = b"$\"('\"')\"";
let output = lex(file, 0, &[], &[], true);
assert!(output.1.is_none());
}
#[test]
fn lex_comments_no_space() {
// test for parses that contain tokens that normally introduce comments