libs-base/Tests/base/NSDate/basic.m

19 lines
526 B
Mathematica
Raw Permalink Normal View History

#import "ObjectTesting.h"
#import <Foundation/NSAutoreleasePool.h>
#import <Foundation/NSDate.h>
int main()
{
NSAutoreleasePool *arp = [NSAutoreleasePool new];
2024-12-23 13:16:14 +00:00
id testObj = AUTORELEASE([NSDate new]);
2024-12-23 13:16:14 +00:00
test_NSObject(@"NSDate", [NSArray arrayWithObject: [NSDate date]]);
test_NSCoding([NSArray arrayWithObject: testObj]);
test_keyed_NSCoding([NSArray arrayWithObject: testObj]);
test_NSCopying(@"NSDate", @"NSDate",
[NSArray arrayWithObject: testObj], NO, NO);
[arp release]; arp = nil;
return 0;
}