mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Test case for extracting charset from xml string data
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40089 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
ef5fd8a497
commit
f5641389f0
1 changed files with 20 additions and 0 deletions
20
Tests/base/GSMime/xml-charset.m
Normal file
20
Tests/base/GSMime/xml-charset.m
Normal file
|
@ -0,0 +1,20 @@
|
|||
#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
|
Loading…
Reference in a new issue