diff options
author | Vincent Richard <[email protected]> | 2005-08-22 17:28:28 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2005-08-22 17:28:28 +0000 |
commit | 8cdddcdf036f497b942c6c9443d4c40128878456 (patch) | |
tree | c357c8920f4d76e5f605af65b42ca5b02735da4a | |
parent | vmime::exception now inherits from std::exception. (diff) | |
download | vmime-8cdddcdf036f497b942c6c9443d4c40128878456.tar.gz vmime-8cdddcdf036f497b942c6c9443d4c40128878456.zip |
Added test case for '?' in the middle of the encoded buffer.
-rw-r--r-- | tests/parser/textTest.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/parser/textTest.cpp b/tests/parser/textTest.cpp index 54e6c5ea..d07208fb 100644 --- a/tests/parser/textTest.cpp +++ b/tests/parser/textTest.cpp @@ -150,6 +150,10 @@ namespace assert_eq("5", "[text: [[word: charset=abc, buffer=\xe9\xe9]]]", parseText("=?abc?q?=E9=E9?=")); + // Question marks (?) in the middle of the string + assert_eq("6", "[text: [[word: charset=iso-8859-1, buffer=Know wh\xe4t? It works!]]]", + parseText("=?iso-8859-1?Q?Know_wh=E4t?_It_works!?=")); + // TODO: add more } |