@@ -12,11 +12,11 @@ #include "config.h" #import "OFString.h" #import "OFAutoreleasePool.h" -#import "main.h" +#import "TestsAppDelegate.h" static OFString *module = @"Properties"; @interface PropertiesTest: OFObject { @@ -39,12 +39,12 @@ [super dealloc]; } @end -void -properties_tests() +@implementation TestsAppDelegate (PropertiesTests) +- (void)propertiesTests { OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init]; PropertiesTest *pt = [[[PropertiesTest alloc] init] autorelease]; OFString *t = [OFMutableString stringWithString: @"foo"]; @@ -55,5 +55,6 @@ [pt setBar: t]; TEST(@"retain, atomic", [pt bar] == t && [t retainCount] == 3) [pool drain]; } +@end