mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
import testsuite
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32187 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
734c214892
commit
0e02133729
374 changed files with 20864 additions and 0 deletions
31
Tests/base/PropertyLists/non_ascii.m
Normal file
31
Tests/base/PropertyLists/non_ascii.m
Normal file
|
@ -0,0 +1,31 @@
|
|||
/*
|
||||
copyright 2004 Alexander Malmberg <alexander@malmberg.org>
|
||||
*/
|
||||
|
||||
#import <Foundation/NSAutoreleasePool.h>
|
||||
#import <Foundation/NSString.h>
|
||||
|
||||
#import "Testing.h"
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
id plist;
|
||||
NSAutoreleasePool *arp = [NSAutoreleasePool new];
|
||||
|
||||
plist=[[NSString stringWithContentsOfFile: @"non_ascii_utf8.plist"] propertyList];
|
||||
PASS(plist!=nil, "utf8 plist works");
|
||||
|
||||
plist=[[NSString stringWithContentsOfFile: @"non_ascii_utf16.plist"] propertyList];
|
||||
PASS(plist!=nil, "utf16 plist works");
|
||||
|
||||
plist=[[NSString stringWithContentsOfFile: @"non_ascii_utf8.strings"] propertyListFromStringsFileFormat];
|
||||
PASS(plist!=nil, "utf8 strings file works");
|
||||
|
||||
plist=[[NSString stringWithContentsOfFile: @"non_ascii_utf16.strings"] propertyListFromStringsFileFormat];
|
||||
PASS(plist!=nil, "utf16 strings file works");
|
||||
|
||||
[arp release]; arp = nil;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue