Differences From Artifact [919883130b]:
- File tests/OFMethodSignatureTests.m — part of check-in [b045cbb9c7] at 2019-03-25 00:21:30 on branch trunk — tests: Use dot syntax (user: js, size: 5109) [annotate] [blame] [check-ins using]
To Artifact [5611c9beab]:
- File
tests/OFMethodSignatureTests.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: 5107) [annotate] [blame] [check-ins using] [more...]
︙ | ︙ | |||
70 71 72 73 74 75 76 | double d; } u; }; @implementation TestsAppDelegate (OFMethodSignatureTests) - (void)methodSignatureTests { | | | 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | double d; } u; }; @implementation TestsAppDelegate (OFMethodSignatureTests) - (void)methodSignatureTests { void *pool = objc_autoreleasePoolPush(); OFMethodSignature *ms; TEST(@"-[:signatureWithObjCTypes:] #1", (ms = [OFMethodSignature signatureWithObjCTypes: "i28@0:8S16*20"]) && ms.numberOfArguments == 4 && strcmp(ms.methodReturnType, "i") == 0 && strcmp([ms argumentTypeAtIndex: 0], "@") == 0 && |
︙ | ︙ | |||
168 169 170 171 172 173 174 | of_alignof_type_encoding(@encode(union test4_union)) == OF_ALIGNOF(union test4_union)) TEST(@"of_alignof_type_encoding() #6", of_alignof_type_encoding(@encode(struct test1_struct [5])) == OF_ALIGNOF(struct test1_struct [5])) | | | 168 169 170 171 172 173 174 175 176 177 | of_alignof_type_encoding(@encode(union test4_union)) == OF_ALIGNOF(union test4_union)) TEST(@"of_alignof_type_encoding() #6", of_alignof_type_encoding(@encode(struct test1_struct [5])) == OF_ALIGNOF(struct test1_struct [5])) objc_autoreleasePoolPop(pool); } @end |