add test
This commit is contained in:
parent
6ad7a434a7
commit
5832e12580
|
@ -187,6 +187,13 @@ fn lex_incomplete_quote() {
|
||||||
assert!(matches!(err, ParseError::UnexpectedEof(v, _) if v == "'"));
|
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]
|
#[test]
|
||||||
fn lex_comments_no_space() {
|
fn lex_comments_no_space() {
|
||||||
// test for parses that contain tokens that normally introduce comments
|
// test for parses that contain tokens that normally introduce comments
|
||||||
|
|
Loading…
Reference in New Issue
Block a user