aboutsummaryrefslogtreecommitdiffstats
path: root/tests/parser/textTest.cpp
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2005-06-13 16:45:21 +0000
committerVincent Richard <[email protected]>2005-06-13 16:45:21 +0000
commitecae17af35fa5bcb90743c0cea6e9486a44cf3af (patch)
treee2df5be73e6a8992c6a074bb268956496db9900a /tests/parser/textTest.cpp
parentFixed a bug in word parsing. (diff)
downloadvmime-ecae17af35fa5bcb90743c0cea6e9486a44cf3af.tar.gz
vmime-ecae17af35fa5bcb90743c0cea6e9486a44cf3af.zip
Fixed a bug in word parsing.
Diffstat (limited to 'tests/parser/textTest.cpp')
-rw-r--r--tests/parser/textTest.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/parser/textTest.cpp b/tests/parser/textTest.cpp
index 504c4a92..e43080df 100644
--- a/tests/parser/textTest.cpp
+++ b/tests/parser/textTest.cpp
@@ -144,6 +144,12 @@ namespace
parseText("=?ISO-8859-1?B?SWYgeW91IGNhbiByZWFkIHRoaXMgeW8=?=\r\n " \
"=?ISO-8859-2?B?dSB1bmRlcnN0YW5kIHRoZSBleGFtcGxlLg==?="));
+ // Bugfix: in "=?charset?q?=XX=YY?=", the "?=" finish
+ // sequence was not correctly found (should be the one
+ // after '=YY' and not the one after '?q').
+ assert_eq("5", "[text: [[word: charset=abc, buffer=\xe9\xe9]]]",
+ parseText("=?abc?q?=E9=E9?="));
+
// TODO: add more
}