Overview
Comment: | Get rid of a warning with clang trunk. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
6ec1bc64a4c00fe07bb20876a0a68a42 |
User & Date: | js on 2012-07-03 20:17:09 |
Other Links: | manifest | tags |
Context
2012-07-04
| ||
11:43 | exception.m: Clean up a little. check-in: 0c06c94bac user: js tags: trunk | |
2012-07-03
| ||
20:17 | Get rid of a warning with clang trunk. check-in: 6ec1bc64a4 user: js tags: trunk | |
20:16 | OFHash: Take void* and unify convenience methods. check-in: c1060114f6 user: js tags: trunk | |
Changes
Modified tests/PropertiesTests.m from [e6e690b436] to [fbe6e29fea].
︙ | ︙ | |||
48 49 50 51 52 53 54 55 56 | @implementation TestsAppDelegate (PropertiesTests) - (void)propertiesTests { OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init]; PropertiesTest *pt = [[[PropertiesTest alloc] init] autorelease]; OFString *t = [OFMutableString stringWithString: @"foo"]; [pt setFoo: t]; | > | | | 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | @implementation TestsAppDelegate (PropertiesTests) - (void)propertiesTests { OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init]; PropertiesTest *pt = [[[PropertiesTest alloc] init] autorelease]; OFString *t = [OFMutableString stringWithString: @"foo"]; OFString *foo = @"foo"; [pt setFoo: t]; TEST(@"copy, nonatomic", [[pt foo] isEqual: foo] && [pt foo] != foo && [[pt foo] retainCount] == 1) [pt setBar: t]; TEST(@"retain, atomic", [pt bar] == t && [t retainCount] == 3) [pool drain]; } @end |