Differences From Artifact [e96462b442]:
- File tests/OFObjectTests.m — part of check-in [b045cbb9c7] at 2019-03-25 00:21:30 on branch trunk — tests: Use dot syntax (user: js, size: 9115) [annotate] [blame] [check-ins using]
To Artifact [24e2594f2c]:
- File
tests/OFObjectTests.m
— part of check-in
[09be825f88]
at
2019-09-29 15:58:33
on branch trunk
— Remove OFAutoreleasePool
OFAutoreleasePools have long been discouraged in favor of the runtime's
autorelease pools. (user: js, size: 9113) [annotate] [blame] [check-ins using] [more...]
| ︙ | ︙ | |||
82 83 84 85 86 87 88 |
[super dealloc];
}
@end
@implementation TestsAppDelegate (OFObjectTests)
- (void)objectTests
{
| | | 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
[super dealloc];
}
@end
@implementation TestsAppDelegate (OFObjectTests)
- (void)objectTests
{
void *pool = objc_autoreleasePoolPush();
OFObject *obj = [[[OFObject alloc] init] autorelease];
void *p, *q, *r;
OFObject *o;
MyObj *m;
char *tmp;
TEST(@"Allocating 4096 bytes",
|
| ︙ | ︙ | |||
253 254 255 256 257 258 259 | doubleValue] == 0.5) TEST(@"[-setValue:forKeyPath:]", R([m setValue: [OFNumber numberWithDouble: 0.75] forKeyPath: @"objectValue.objectValue.doubleValue"]) && [[m.objectValue objectValue] doubleValue] == 0.75) | | | 253 254 255 256 257 258 259 260 261 262 | doubleValue] == 0.5) TEST(@"[-setValue:forKeyPath:]", R([m setValue: [OFNumber numberWithDouble: 0.75] forKeyPath: @"objectValue.objectValue.doubleValue"]) && [[m.objectValue objectValue] doubleValue] == 0.75) objc_autoreleasePoolPop(pool); } @end |