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

25 lines
710 B
Mathematica
Raw Normal View History

#import "ObjectTesting.h"
#import <Foundation/NSData.h>
#import <Foundation/NSAutoreleasePool.h>
int main()
{
2024-11-15 20:48:09 +00:00
NSAutoreleasePool *arp = [NSAutoreleasePool new];
id testObject = AUTORELEASE([NSData new]);
test_alloc(@"NSData");
2024-11-15 20:48:09 +00:00
test_NSObject(@"NSData", [NSArray arrayWithObject: testObject]);
test_NSCoding([NSArray arrayWithObject: testObject]);
test_keyed_NSCoding([NSArray arrayWithObject: testObject]);
test_NSCopying(@"NSData",
@"NSMutableData",
2024-11-15 20:48:09 +00:00
[NSArray arrayWithObject: testObject], NO, NO);
test_NSMutableCopying(@"NSData",
@"NSMutableData",
2024-11-15 20:48:09 +00:00
[NSArray arrayWithObject: testObject]);
[arp release]; arp = nil;
return 0;
}