From 8cdddcdf036f497b942c6c9443d4c40128878456 Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Mon, 22 Aug 2005 17:28:28 +0000 Subject: [PATCH] Added test case for '?' in the middle of the encoded buffer. --- tests/parser/textTest.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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 }