From: Stephan Bosch Date: Thu, 5 Sep 2019 09:50:04 +0000 (+0200) Subject: lib: test-istream-base64-decoder - Add explicit test cases for decoding the empty... X-Git-Tag: 2.3.9~180 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=97801f89a14068599249b9c7b8bc6ea5206336c9;p=thirdparty%2Fdovecot%2Fcore.git lib: test-istream-base64-decoder - Add explicit test cases for decoding the empty string. --- diff --git a/src/lib/test-istream-base64-decoder.c b/src/lib/test-istream-base64-decoder.c index bb4e6b3b31..5f35a3da2e 100644 --- a/src/lib/test-istream-base64-decoder.c +++ b/src/lib/test-istream-base64-decoder.c @@ -14,6 +14,7 @@ struct base64_istream_test { }; static const struct base64_istream_test base64_tests[] = { + { "", "", 0 }, { "aGVsbG8gd29ybGQ=", "hello world", 0 }, { "\naGVs\nbG8g\nd29y\nbGQ=\n", "hello world", 0 }, { " aGVs \r\n bG8g \r\n d29y \t \r\n bGQ= \r\n\r\n", @@ -38,6 +39,7 @@ static const struct base64_istream_test base64_tests[] = { }; static const struct base64_istream_test base64url_tests[] = { + { "", "", 0 }, { "aGVsbG8gd29ybGQ=", "hello world", 0 }, { "\naGVs\nbG8g\nd29y\nbGQ=\n", "hello world", 0 }, { " aGVs \r\n bG8g \r\n d29y \t \r\n bGQ= \r\n\r\n",