diff --git a/src/parser.rs b/src/parser.rs index 9ee8eb2..951562d 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -933,6 +933,14 @@ mod tests { ); } + #[test] + fn empty_comment() { + assert_eq!( + comment_tag(b"#\nxxx"), + Result::Ok(("xxx".as_bytes(), None)) + ); + } + #[test] fn quotes() { assert_eq!(