mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Add test case for a problem with folded and quoted parameters
(e.g. multipart boundary) git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39302 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
9204155bf2
commit
28fdd79c67
2 changed files with 9 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2016-01-21 Niels Grewe <niels.grewe@halbordnung.de>
|
||||
|
||||
* Tests/base/GSMime/general.m: Test case for quoted boundary
|
||||
parameter failure.
|
||||
|
||||
2016-01-21 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
|
||||
|
|
|
@ -206,6 +206,10 @@ int main()
|
|||
doc = [GSMimeParser documentFromData: data];
|
||||
PASS_EQUAL(idoc, doc, "mime11.dat documents are the same");
|
||||
|
||||
NSData *oData = [doc rawMimeData: YES foldedAt: 78];
|
||||
GSMimeDocument *oDoc = [GSMimeParser documentFromData: oData];
|
||||
PASS_EQUAL(doc, oDoc, "mime11.dat (folded and quoted boundary header) equal after writing and re-parsing");
|
||||
|
||||
/* Test a document with adjacent encoded words in headers, as
|
||||
* produced by GSMime
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue