diff options
author | Vincent Richard <[email protected]> | 2006-08-09 07:18:45 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2006-08-09 07:18:45 +0000 |
commit | 3abf3bdcb8200104830c69de6615e09e49bccde7 (patch) | |
tree | 61aca4ae65e845763ac0dabcff8b4e36a1b9dace /tests/parser/messageIdTest.cpp | |
parent | Added exception handling code for 'invalid_response'. (diff) | |
download | vmime-3abf3bdcb8200104830c69de6615e09e49bccde7.tar.gz vmime-3abf3bdcb8200104830c69de6615e09e49bccde7.zip |
Fix for message ids without angle brackets.
Diffstat (limited to 'tests/parser/messageIdTest.cpp')
-rw-r--r-- | tests/parser/messageIdTest.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/parser/messageIdTest.cpp b/tests/parser/messageIdTest.cpp index a7a2a97c..6330f157 100644 --- a/tests/parser/messageIdTest.cpp +++ b/tests/parser/messageIdTest.cpp @@ -32,6 +32,7 @@ VMIME_TEST_SUITE_BEGIN VMIME_TEST_LIST_BEGIN VMIME_TEST(testParse) + VMIME_TEST(testParseInvalid) VMIME_TEST(testGenerate) VMIME_TEST_LIST_END @@ -45,6 +46,15 @@ VMIME_TEST_SUITE_BEGIN VASSERT_EQ("1.2", "b", m1.getRight()); } + void testParseInvalid() + { + vmime::messageId m1; + m1.parse("foo@bar"); + + VASSERT_EQ("1.1", "foo", m1.getLeft()); + VASSERT_EQ("1.2", "bar", m1.getRight()); + } + void testGenerate() { vmime::messageId m1; |