diff options
author | Vincent Richard <[email protected]> | 2013-06-24 13:32:40 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2013-06-24 13:32:40 +0000 |
commit | 895b07cae9741f44a1272b2f3875f8dd94763222 (patch) | |
tree | 6532de59e01676c78b423b5de5ebc1411c7da111 /tests/utility/encoder/b64EncoderTest.cpp | |
parent | Return after sending message when sending is supported. (diff) | |
download | vmime-895b07cae9741f44a1272b2f3875f8dd94763222.tar.gz vmime-895b07cae9741f44a1272b2f3875f8dd94763222.zip |
Added support for SIZE SMTP extension (RFC-1870).
Diffstat (limited to 'tests/utility/encoder/b64EncoderTest.cpp')
-rw-r--r-- | tests/utility/encoder/b64EncoderTest.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/utility/encoder/b64EncoderTest.cpp b/tests/utility/encoder/b64EncoderTest.cpp index 589afaba..fa6fd766 100644 --- a/tests/utility/encoder/b64EncoderTest.cpp +++ b/tests/utility/encoder/b64EncoderTest.cpp @@ -138,6 +138,14 @@ VMIME_TEST_SUITE_BEGIN(b64EncoderTest) encode("base64", encode("base64", encode("base64", decoded))))))))); + + VASSERT(oss.str() + "encoded size", + getEncoder("base64")->getEncodedSize(decoded.length()) + >= encode("base64", decoded).length()); + + VASSERT(oss.str() + "decoded size", + getEncoder("base64")->getDecodedSize(encoded.length()) + >= decode("base64", encoded).length()); } } |