From 569b4594be8e401ce8d689162dccb2cf128d8575 Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Sat, 9 May 2020 15:05:29 -0400 Subject: [PATCH] works fine without the partial. --- src/parser/parser.rs | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/parser/parser.rs b/src/parser/parser.rs index 20134ee..e7e6fe0 100644 --- a/src/parser/parser.rs +++ b/src/parser/parser.rs @@ -1056,13 +1056,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}"# - ), + super::template(r#"{#level3.level4}{/level3.level4}"#), Ok::<_, nom::Err<(&str, ErrorKind)>>(( "", Template { - contents: Body { elements: vec![] } + contents: Body { + elements: vec![TemplateElement::TETag(DustTag::DTSection(Container { + path: Path { + keys: vec!["level3", "level4"] + }, + contents: None, + else_contents: None + }))] + } } )) );