]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
pop3-migration: Add unit test for checking that trailing tabs are stripped
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Wed, 19 Jul 2017 07:58:43 +0000 (10:58 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Wed, 19 Jul 2017 07:58:43 +0000 (10:58 +0300)
src/plugins/pop3-migration/test-pop3-migration-plugin.c

index 0f6fe64e1680bf305c1ad8a4683edb970c570705..c4c00e0f823d8ec935eb9b1f270651e24a629f61 100644 (file)
@@ -27,6 +27,7 @@ static void test_pop3_migration_get_hdr_sha1(void)
                { "a: b\r\n \r\n", "44ef6a20971148dd54a161f79814e22e2d098ddb", FALSE },
                { "a: b\r\n  \r\n", "44ef6a20971148dd54a161f79814e22e2d098ddb", FALSE },
                { "a: b\r\n\t\r\n", "44ef6a20971148dd54a161f79814e22e2d098ddb", FALSE },
+               { "a: b\t\t\t\t\r\n", "44ef6a20971148dd54a161f79814e22e2d098ddb", FALSE },
        };
        struct istream *input;
        unsigned char digest[SHA1_RESULTLEN];