mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-14 07:02:24 +00:00
Fix some xml tests
This commit is contained in:
@@ -16,7 +16,10 @@ pub struct Propname(#[xml(ty = "tag_name")] pub String);
|
||||
|
||||
#[derive(Debug, Clone, XmlDeserialize, PartialEq)]
|
||||
pub enum PropfindType {
|
||||
#[xml(ns = "crate::namespace::NS_DAV")]
|
||||
Propname,
|
||||
#[xml(ns = "crate::namespace::NS_DAV")]
|
||||
Allprop,
|
||||
#[xml(ns = "crate::namespace::NS_DAV")]
|
||||
Prop(PropElement),
|
||||
}
|
||||
|
||||
@@ -53,16 +53,10 @@ fn propfind_prop() {
|
||||
assert_eq!(
|
||||
propfind,
|
||||
PropfindElement {
|
||||
prop: PropfindType::Prop(PropElement {
|
||||
prop: vec![
|
||||
Propname {
|
||||
name: "displayname".to_owned()
|
||||
},
|
||||
Propname {
|
||||
name: "color".to_owned()
|
||||
},
|
||||
]
|
||||
})
|
||||
prop: PropfindType::Prop(PropElement(vec![
|
||||
Propname("displayname".to_owned()),
|
||||
Propname("color".to_owned()),
|
||||
]))
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user