Skip to content
Snippets Groups Projects
Commit 17f472f2 authored by Stephan Bosch's avatar Stephan Bosch
Browse files

Test suite: added tests for not yet working body extension features.

parent cf2d54d5
No related branches found
No related tags found
No related merge requests found
......@@ -269,14 +269,8 @@ test "Nested Search" {
* separate strings; the contents of nested parts are only searched if
* their respective types match the :content specification.
*
* If the :content specification matches a message/rfc822 MIME part,
* only the header of the nested message will be searched for the key
* strings, treating the header as a single string; the contents of the
* nested message body parts are only searched if their content type
* matches the :content specification.
*/
/* FIXME: fails
test "Multipart Content" {
if not body :content "multipart" :contains
"This is a multi-part message in MIME format" {
......@@ -288,6 +282,8 @@ test "Multipart Content" {
test_fail "missed second multipart body part";
}
/* FIXME: FAILS
if not body :content "multipart" :contains
"This is the end of the inner MIME multipart" {
test_fail "missed third multipart body part";
......@@ -297,7 +293,26 @@ test "Multipart Content" {
"This is the end of the outer MIME multipart." {
test_fail "missed fourth multipart body part";
}
}*/
if body :content "multipart" :contains "--inner" {
test_fail "inner boundary is part of match";
}
if body :content "multipart" :contains "--outer" {
test_fail "outer boundary is part of match";
}
*/
}
/* RFC5173, Section 5.2:
*
* If the :content specification matches a message/rfc822 MIME part,
* only the header of the nested message will be searched for the key
* strings, treating the header as a single string; the contents of the
* nested message body parts are only searched if their content type
* matches the :content specification.
*/
/* FIXME */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment

Consent

On this website, we use the web analytics service Matomo to analyze and review the use of our website. Through the collected statistics, we can improve our offerings and make them more appealing for you. Here, you can decide whether to allow us to process your data and set corresponding cookies for these purposes, in addition to technically necessary cookies. Further information on data protection—especially regarding "cookies" and "Matomo"—can be found in our privacy policy. You can withdraw your consent at any time.