Differences From Artifact [ae1df634f6]:
- File tests/ForwardingTests.m — part of check-in [b045cbb9c7] at 2019-03-25 00:21:30 on branch trunk — tests: Use dot syntax (user: js, size: 6500) [annotate] [blame] [check-ins using]
To Artifact [bd69d2aa63]:
- File
tests/ForwardingTests.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: 6498) [annotate] [blame] [check-ins using] [more...]
︙ | ︙ | |||
176 177 178 179 180 181 182 | return ret; } @end @implementation TestsAppDelegate (ForwardingTests) - (void)forwardingTests { | | | 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 | return ret; } @end @implementation TestsAppDelegate (ForwardingTests) - (void)forwardingTests { void *pool = objc_autoreleasePoolPush(); TEST(@"Forwarding a message and adding a class method", R([ForwardingTest test]) && success && R([ForwardingTest test]) && forwardings == 1); ForwardingTest *t = [[[ForwardingTest alloc] init] autorelease]; |
︙ | ︙ | |||
227 228 229 230 231 232 233 | [t forwardingTargetNilStRetTest]) EXPECT_EXCEPTION(@"-[forwardingTargetForSelector:] self target + " @"stret", OFNotImplementedException, [t forwardingTargetSelfStRetTest]) # endif #endif | | | 227 228 229 230 231 232 233 234 235 236 | [t forwardingTargetNilStRetTest]) EXPECT_EXCEPTION(@"-[forwardingTargetForSelector:] self target + " @"stret", OFNotImplementedException, [t forwardingTargetSelfStRetTest]) # endif #endif objc_autoreleasePoolPop(pool); } @end |