]> 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 09:19:40 +0000 (12:19 +0300)
src/plugins/pop3-migration/test-pop3-migration-plugin.c

index 15ff6f58fc864c54a29184c06455521f1a39628c..0a8ddc71468559a46808df6616e593a30f04e6a8 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];