2011-02-16 08:21:17 +00:00
|
|
|
#import "ObjectTesting.h"
|
|
|
|
#import <Foundation/NSData.h>
|
|
|
|
#import <Foundation/NSAutoreleasePool.h>
|
|
|
|
|
|
|
|
int main()
|
|
|
|
{
|
|
|
|
NSAutoreleasePool *arp = [NSAutoreleasePool new];
|
|
|
|
id testObject = [NSData new];
|
|
|
|
test_alloc(@"NSData");
|
|
|
|
test_NSObject(@"NSData",[NSArray arrayWithObject:testObject]);
|
|
|
|
test_NSCoding([NSArray arrayWithObject:testObject]);
|
2013-03-25 11:05:32 +00:00
|
|
|
test_keyed_NSCoding([NSArray arrayWithObject:testObject]);
|
2011-02-16 08:21:17 +00:00
|
|
|
test_NSCopying(@"NSData",
|
|
|
|
@"NSMutableData",
|
|
|
|
[NSArray arrayWithObject:testObject], NO, NO);
|
|
|
|
test_NSMutableCopying(@"NSData",
|
|
|
|
@"NSMutableData",
|
|
|
|
[NSArray arrayWithObject:testObject]);
|
|
|
|
|
|
|
|
[arp release]; arp = nil;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|