mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/stable@32970 72102866-910b-0410-8b05-ffd578937521
25 lines
703 B
Objective-C
25 lines
703 B
Objective-C
#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()
|
|
{
|
|
START_SET("NSCalendar basic")
|
|
if (!NSCALENDAR_SUPPORTED)
|
|
SKIP("NSCalendar not supported\nThe ICU library was not available when GNUstep-base was built")
|
|
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;
|
|
}
|