Author: thebeing
Date: Mon Sep 19 17:51:48 2016
New Revision: 40089

URL: http://svn.gna.org/viewcvs/gnustep?rev=40089&view=rev
Log:
Test case for extracting charset from xml string data

Added:
    libs/base/trunk/Tests/base/GSMime/xml-charset.m

Added: libs/base/trunk/Tests/base/GSMime/xml-charset.m
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/base/trunk/Tests/base/GSMime/xml-charset.m?rev=40089&view=auto
==============================================================================
--- libs/base/trunk/Tests/base/GSMime/xml-charset.m     (added)
+++ libs/base/trunk/Tests/base/GSMime/xml-charset.m     Mon Sep 19 17:51:48 2016
@@ -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


_______________________________________________
Gnustep-cvs mailing list
Gnustep-cvs@gna.org
https://mail.gna.org/listinfo/gnustep-cvs

Reply via email to