From 77e2f8abbb2d70413ba571baf405f10572299fd9 Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Fri, 1 Mar 2024 16:37:27 +0100 Subject: [PATCH] test include --- src/dav/encoder.rs | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/dav/encoder.rs b/src/dav/encoder.rs index a16f498..9e907dc 100644 --- a/src/dav/encoder.rs +++ b/src/dav/encoder.rs @@ -959,4 +959,26 @@ mod tests { assert_eq!(&got, expected, "\n---GOT---\n{got}\n---EXP---\n{expected}\n"); } + + + #[tokio::test] + async fn rfc_allprop_include() { + let got = serialize( + NoExtension { root: true }, + &PropFind::AllProp(Some(Include(vec![ + PropertyRequest::DisplayName, + PropertyRequest::ResourceType, + ]))), + ).await; + + let expected = r#" + + + + + +"#; + + assert_eq!(&got, expected, "\n---GOT---\n{got}\n---EXP---\n{expected}\n"); + } }