From 46622345d10f1840eb0385977cbf225c042f31c1 Mon Sep 17 00:00:00 2001 From: Vadim Getmanshchuk Date: Thu, 30 Nov 2023 22:05:20 -0600 Subject: [PATCH] added test --- src/parser.rs | 8 ++++++++ 1 file changed, 8 insertions(+) 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!(