diff options
author | Vincent Richard <[email protected]> | 2005-06-17 11:27:26 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2005-06-17 11:27:26 +0000 |
commit | 0e5e375cefdee94450acb4078c448a69006c7016 (patch) | |
tree | ef7d96f5b0111a267d4ec19eb103720e68cebe32 /tests/parser/mailboxTest.cpp | |
parent | Fixed multi-line terminator spanning on multiple incoming packets. (diff) | |
download | vmime-0e5e375cefdee94450acb4078c448a69006c7016.tar.gz vmime-0e5e375cefdee94450acb4078c448a69006c7016.zip |
Added unit tests.
Diffstat (limited to 'tests/parser/mailboxTest.cpp')
-rw-r--r-- | tests/parser/mailboxTest.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/parser/mailboxTest.cpp b/tests/parser/mailboxTest.cpp index cbfaf8d2..3c991b61 100644 --- a/tests/parser/mailboxTest.cpp +++ b/tests/parser/mailboxTest.cpp @@ -77,6 +77,21 @@ namespace "\"John Doe\" <[email protected]>", "[address-list: [[mailbox: name=[text: [[word: charset=us-ascii, buffer=John Doe]]], [email protected]]]]", + + // Test 9 + "=?us-ascii?q?John?=<[email protected]>", + + "[address-list: [[mailbox: name=[text: [[word: charset=us-ascii, buffer=John]]], [email protected]]]]", + + // Test 10 + "\"John\"<[email protected]>", + + "[address-list: [[mailbox: name=[text: [[word: charset=us-ascii, buffer=John]]], [email protected]]]]", + + // Test 11 + "John<[email protected]>", + + "[address-list: [[mailbox: name=[text: [[word: charset=us-ascii, buffer=John]]], [email protected]]]]" }; for (unsigned int i = 0 ; i < sizeof(testSuitesParse) / sizeof(testSuitesParse[0]) / 2 ; ++i) |