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