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

Finished testsuite item for the imap4flags extension.

parent 4abd9c16
No related branches found
No related tags found
No related merge requests found
require "vnd.dovecot.testsuite";
require "imap4flags";
require "relational";
/*
* Execution testing (currently just meant to trigger any segfaults)
* Execution testing
*/
test_mailbox_create "INBOX.Junk";
......@@ -19,4 +22,47 @@ test "Flags Side Effect" {
if not test_result_execute {
test_fail "result execute failed";
}
test_result_reset;
if not test_message :folder "INBOX.Junk" 0 {
test_fail "message not stored in INBOX.Junk";
}
if not hasflag :count "eq" "1" {
test_fail "invalid number of flags for message in INBOX.Junk";
}
if not hasflag :is "NONSENSE" {
test_fail "invalid flag set for message in INBOX.Junk";
}
test_result_reset;
if not test_message :folder "INBOX" 0 {
test_fail "message not stored in INBOX";
}
if not hasflag :count "eq" "1" {
test_fail "invalid number of flags for message in INBOX";
}
if not hasflag :is "\\seen" {
test_fail "invalid flag set for message in INBOX";
}
test_result_reset;
if not test_message :folder "INBOX.Nonsense" 0 {
test_fail "message not stored in INBOX.Nonsense";
}
if not hasflag :count "eq" "1" {
test_fail "invalid number of flags for message in Inbox.Nonsense";
}
if not hasflag :is "IMPLICIT" {
test_fail "invalid flag set for message in Inbox.Nonsene";
}
}
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.