@@ -9,19 +9,20 @@ * the packaging of this file. */ #include "config.h" +#import "OFString.h" #import "OFAutoreleasePool.h" #import "OFExceptions.h" -#import "main.h" +#import "TestsAppDelegate.h" static OFString *module = @"OFObject"; -void -object_tests() +@implementation TestsAppDelegate (OFObjectTests) +- (void)objectTests { OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init]; OFObject *obj = [[[OFObject alloc] init] autorelease]; void *p, *q, *r; @@ -63,5 +64,6 @@ OFMemoryNotPartOfObjectException, [obj resizeMemory: (void*)1 toSize: 1024]) [pool drain]; } +@end