diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2023-07-25 19:08:48 +0200 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2023-07-25 19:08:48 +0200 |
commit | ec061022e0b4bce8d5993d35a9c4ed494c44ecdd (patch) | |
tree | b8f2460eada7dbd9a2a8912ed43f7557b21e7a83 /tests/parsing-crates/mail_parser.rs | |
parent | 17fba10d8ffe14bb47ae6389dbb28b012eac1b35 (diff) | |
download | aerogramme-ec061022e0b4bce8d5993d35a9c4ed494c44ecdd.tar.gz aerogramme-ec061022e0b4bce8d5993d35a9c4ed494c44ecdd.zip |
finalize eml-codec integration
Diffstat (limited to 'tests/parsing-crates/mail_parser.rs')
-rw-r--r-- | tests/parsing-crates/mail_parser.rs | 73 |
1 files changed, 0 insertions, 73 deletions
diff --git a/tests/parsing-crates/mail_parser.rs b/tests/parsing-crates/mail_parser.rs deleted file mode 100644 index df9b20b..0000000 --- a/tests/parsing-crates/mail_parser.rs +++ /dev/null @@ -1,73 +0,0 @@ -//use mail_parser_superboum::Message; // FAIL - -use mail_parser::Message; // PASS - -//use mail_parser_05::Message; // PASS -//use mail_parser_main::Message; // PASS -//use mail_parser_db61a03::Message; // PASS - -#[test] -fn test1() { - let input = br#"Content-Type: multipart/mixed; boundary="1234567890123456789012345678901234567890123456789012345678901234567890123456789012" - ---1234567890123456789012345678901234567890123456789012345678901234567890123456789012 -Content-Type: multipart/mixed; boundary="123456789012345678901234567890123456789012345678901234567890123456789012345678901" - ---123456789012345678901234567890123456789012345678901234567890123456789012345678901 -Content-Type: multipart/mixed; boundary="12345678901234567890123456789012345678901234567890123456789012345678901234567890" - ---12345678901234567890123456789012345678901234567890123456789012345678901234567890 -Content-Type: text/plain - -1 ---1234567890123456789012345678901234567890123456789012345678901234567890123456789012 -Content-Type: text/plain - -22 ---123456789012345678901234567890123456789012345678901234567890123456789012345678901 -Content-Type: text/plain - -333 ---12345678901234567890123456789012345678901234567890123456789012345678901234567890 -Content-Type: text/plain - -4444 -"#; - - let message = Message::parse(input); - dbg!(message); -} - -#[test] -fn test2() { - let input = br#"Content-Type: message/rfc822 - -Content-Type: message/rfc822 - -Content-Type: text/plain - -1"#; - - let message = Message::parse(input); - dbg!(message); -} - -#[test] -fn test3() { - let input = br#"Content-Type: multipart/mixed; boundary=":foo" - ---:foo ---:foo -Content-Type: text/plain ---:foo -Content-Type: text/plain ---:foo -Content-Type: text/html ---:foo-- - - -"#; - - let message = Message::parse(input); - dbg!(message); -} |