2011-02-16 08:21:17 +00:00
|
|
|
#import "Testing.h"
|
|
|
|
#import "ObjectTesting.h"
|
|
|
|
#import <Foundation/NSLocale.h>
|
|
|
|
|
|
|
|
#if defined(GS_USE_ICU)
|
|
|
|
#define NSLOCALE_SUPPORTED GS_USE_ICU
|
|
|
|
#else
|
|
|
|
#define NSLOCALE_SUPPORTED 1 /* Assume Apple support */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
int main()
|
|
|
|
{
|
2011-02-24 16:26:01 +00:00
|
|
|
START_SET("NSLocale")
|
|
|
|
id testObj;
|
2011-02-16 08:21:17 +00:00
|
|
|
|
2011-02-24 16:26:01 +00:00
|
|
|
if (!NSLOCALE_SUPPORTED)
|
|
|
|
SKIP("NSLocale not supported\nThe ICU library was not available when GNUstep-base was built")
|
|
|
|
|
|
|
|
testObj = [NSLocale currentLocale];
|
2011-02-16 08:21:17 +00:00
|
|
|
test_NSObject(@"NSLocale", [NSArray arrayWithObject: testObj]);
|
|
|
|
test_keyed_NSCoding([NSArray arrayWithObject: testObj]);
|
|
|
|
test_NSCopying(@"NSLocale", @"NSLocale",
|
|
|
|
[NSArray arrayWithObject: testObj], NO, NO);
|
|
|
|
|
2011-02-24 16:26:01 +00:00
|
|
|
END_SET("NSLocale")
|
2011-02-16 08:21:17 +00:00
|
|
|
return 0;
|
|
|
|
}
|