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

14 lines
454 B
Mathematica
Raw Permalink Normal View History

#import "ObjectTesting.h"
#import <Foundation/NSAutoreleasePool.h>
#import <Foundation/NSObject.h>
int main()
{
NSAutoreleasePool *arp = [NSAutoreleasePool new];
test_alloc(@"NSObject");
test_NSObject(@"NSObject", [NSArray arrayWithObject:[[NSObject new] autorelease]]);
PASS([[[NSObject new] autorelease] methodSignatureForSelector: 0] == nil,
"a null selector proiduces a nil method signature");
[arp release]; arp = nil;
return 0;
}