Added test case for '?' in the middle of the encoded buffer.
This commit is contained in:
parent
4f88d29dc0
commit
8cdddcdf03
@ -150,6 +150,10 @@ namespace
|
|||||||
assert_eq("5", "[text: [[word: charset=abc, buffer=\xe9\xe9]]]",
|
assert_eq("5", "[text: [[word: charset=abc, buffer=\xe9\xe9]]]",
|
||||||
parseText("=?abc?q?=E9=E9?="));
|
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
|
// TODO: add more
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user