From bb3449467a39d4c60eec916f555555e87c4c739a Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Sat, 9 May 2020 15:02:54 -0400 Subject: [PATCH] Running into an error parsing one of the partial test templates. --- src/parser/parser.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/parser/parser.rs b/src/parser/parser.rs index 4a6db06..20134ee 100644 --- a/src/parser/parser.rs +++ b/src/parser/parser.rs @@ -1052,4 +1052,19 @@ mod tests { )) ); } + + #[test] + fn test_full_document_temp() { + assert_eq!( + super::template( + r#"{#level3.level4}{>partialtwo v1="b" v2="b" v3="b" v4="b" v5="b" /}{/level3.level4}"# + ), + Ok::<_, nom::Err<(&str, ErrorKind)>>(( + "", + Template { + contents: Body { elements: vec![] } + } + )) + ); + } }