works fine with one parameter.
This commit is contained in:
parent
710785139a
commit
369fbaf579
@ -1054,9 +1054,9 @@ mod tests {
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_full_document_temp() {
|
||||
fn test_full_document_parameterized_partial() {
|
||||
assert_eq!(
|
||||
super::template(r#"{#level3.level4}{>partialtwo/}{/level3.level4}"#),
|
||||
super::template(r#"{#level3.level4}{>partialtwo v1="b"/}{/level3.level4}"#),
|
||||
Ok::<_, nom::Err<(&str, ErrorKind)>>((
|
||||
"",
|
||||
Template {
|
||||
@ -1069,7 +1069,10 @@ mod tests {
|
||||
elements: vec![TemplateElement::TETag(DustTag::DTPartial(
|
||||
Partial {
|
||||
name: "partialtwo".to_owned(),
|
||||
params: vec![]
|
||||
params: vec![KVPair {
|
||||
key: "v1",
|
||||
value: RValue::RVString("b".to_owned())
|
||||
}]
|
||||
}
|
||||
))]
|
||||
}),
|
||||
|
Loading…
x
Reference in New Issue
Block a user