dovecot: Added more tests to imap_match().

dovecot at dovecot.org dovecot at dovecot.org
Mon Mar 3 06:25:18 EET 2008


details:   http://hg.dovecot.org/dovecot/rev/2fca2f050f33
changeset: 7320:2fca2f050f33
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Mar 03 06:25:14 2008 +0200
description:
Added more tests to imap_match().

diffstat:

1 file changed, 3 insertions(+)
src/tests/test-imap.c |    3 +++

diffs (13 lines):

diff -r 35480e6e45b3 -r 2fca2f050f33 src/tests/test-imap.c
--- a/src/tests/test-imap.c	Mon Mar 03 06:20:33 2008 +0200
+++ b/src/tests/test-imap.c	Mon Mar 03 06:25:14 2008 +0200
@@ -33,6 +33,9 @@ static void test_imap_match(void)
 		{ "*foo*", "fobo", IMAP_MATCH_CHILDREN },
 		{ "foo*bar", "foobar/baz", IMAP_MATCH_CHILDREN | IMAP_MATCH_PARENT },
 		{ "*foo*", "fobo", IMAP_MATCH_CHILDREN },
+		{ "%/%/%", "foo/", IMAP_MATCH_CHILDREN },
+		{ "%/%o/%", "foo/", IMAP_MATCH_NO },
+		{ "%/%o/%", "foo", IMAP_MATCH_CHILDREN },
 		{ "inbox", "inbox", IMAP_MATCH_YES },
 		{ "inbox", "INBOX", IMAP_MATCH_NO }
 	};


More information about the dovecot-cvs mailing list