mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
another testcase
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37741 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
60d00a2402
commit
9fd9116735
1 changed files with 9 additions and 1 deletions
|
@ -196,12 +196,20 @@ int main()
|
|||
*/
|
||||
data = [NSData dataWithContentsOfFile: @"mime12.dat"];
|
||||
idoc = exact(0, data);
|
||||
doc = [GSMimeDocument documentWithContent: @"hello"
|
||||
type: @"text/plain"
|
||||
name: nil];
|
||||
[doc setHeader: @"MIME-Version" value: @"1.0" parameters: nil];
|
||||
[doc setHeader: @"Subject"
|
||||
value: @"Avant de partir, n'oubliez pas de préparer votre séjour à Paris"
|
||||
parameters: nil];
|
||||
PASS_EQUAL(idoc, doc, "mime12.dat same as internally generated content");
|
||||
doc = [GSMimeParser documentFromData: data];
|
||||
PASS_EQUAL(idoc, doc, "mime12.dat documents are the same");
|
||||
data = [idoc rawMimeData];
|
||||
doc = [GSMimeParser documentFromData: data];
|
||||
PASS_EQUAL(idoc, doc, "rawMimeData reproduces document");
|
||||
|
||||
NSLog(@"Got %@", [doc rawMimeData]);
|
||||
|
||||
[arp release]; arp = nil;
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue