Running into an error parsing one of the partial test templates.

This commit is contained in:
Tom Alexander 2020-05-09 15:02:54 -04:00
parent bbb9b8d9d3
commit bb3449467a
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
1 changed files with 15 additions and 0 deletions

View File

@ -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![] }
}
))
);
}
}