diff --git a/src/parser/parser.rs b/src/parser/parser.rs index 828991f..e9e2683 100644 --- a/src/parser/parser.rs +++ b/src/parser/parser.rs @@ -710,4 +710,27 @@ mod tests { )) ); } + + #[test] + fn test_quoted_partial() { + assert_eq!( + dust_tag(r#"{>"template name * with * special \" characters" bar=baz animal="cat"/}"#), + Ok(( + "", + DustTag::DTPartial(ParameterizedBlock { + name: r#"template name * with * special " characters"#.to_owned(), + params: vec![ + KVPair { + key: "bar", + value: RValue::RVPath(Path { keys: vec!["baz"] }) + }, + KVPair { + key: "animal", + value: RValue::RVString("cat".to_owned()) + } + ] + }) + )) + ); + } }