From 539f264d44e2149a21afb578933063d4570598f5 Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Tue, 4 Jul 2023 15:01:11 +0200 Subject: [PATCH] test message rfc822 --- src/fragments/mime.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/fragments/mime.rs b/src/fragments/mime.rs index 720fb8a..6c37dbb 100644 --- a/src/fragments/mime.rs +++ b/src/fragments/mime.rs @@ -474,6 +474,17 @@ mod tests { ); } + #[test] + fn test_content_type_message() { + assert_eq!( + Type::try_from(&lazy::Type("message/rfc822")), + Ok(Type::Message(MessageDesc { + subtype: MessageSubtype::RFC822, + unknown_parameters: vec![], + })) + ); + } + /* #[test] fn test_parameter() { assert_eq!(