mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-07 15:01:10 +00:00
21 lines
497 B
Mathematica
21 lines
497 B
Mathematica
|
#if defined(GNUSTEP_BASE_LIBRARY)
|
||
|
#import <Foundation/Foundation.h>
|
||
|
#import <GNUstepBase/GSMime.h>
|
||
|
#import "Testing.h"
|
||
|
|
||
|
int main()
|
||
|
{
|
||
|
NSAutoreleasePool *arp = [NSAutoreleasePool new];
|
||
|
NSString *xml = @"<?xml version=\"1.0\" encoding=\"UTF-8\"?><html></html>";
|
||
|
NSString *charset = nil;
|
||
|
testHopeful = YES;
|
||
|
PASS_RUNS(charset = [GSMimeDocument charsetForXml: xml], "Can determine cahrset of xml document.");
|
||
|
DESTROY(arp);
|
||
|
}
|
||
|
#else
|
||
|
int main(int argc,char **argv)
|
||
|
{
|
||
|
return 0;
|
||
|
}
|
||
|
#endif
|