Differences From Artifact [9d7de2772c]:
- File tests/OFPropertyListTests.m — part of check-in [b045cbb9c7] at 2019-03-25 00:21:30 on branch trunk — tests: Use dot syntax (user: js, size: 3604) [annotate] [blame] [check-ins using]
To Artifact [a6db7d83f8]:
- File
tests/OFPropertyListTests.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: 3602) [annotate] [blame] [check-ins using] [more...]
︙ | ︙ | |||
54 55 56 57 58 59 60 | @" <key>foo</key>" @" <string>bar</string>" @"</dict>"); @implementation TestsAppDelegate (OFPLISTParser) - (void)propertyListTests { | | | 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | @" <key>foo</key>" @" <string>bar</string>" @"</dict>"); @implementation TestsAppDelegate (OFPLISTParser) - (void)propertyListTests { void *pool = objc_autoreleasePoolPush(); OFArray *array = [OFArray arrayWithObjects: @"Hello", [OFData dataWithItems: "World!" count: 6], [OFDate dateWithTimeIntervalSince1970: 1521030896], [OFNumber numberWithBool: true], [OFNumber numberWithBool: false], |
︙ | ︙ | |||
110 111 112 113 114 115 116 | [PLIST(@"<dict><key/><string/><key/></dict>") propertyListValue]) EXPECT_EXCEPTION( @"-[propertyListValue] detecting invalid format #5", OFInvalidFormatException, [PLIST(@"<dict><key x='x'/><string/></dict>") propertyListValue]) | | | 110 111 112 113 114 115 116 117 118 119 | [PLIST(@"<dict><key/><string/><key/></dict>") propertyListValue]) EXPECT_EXCEPTION( @"-[propertyListValue] detecting invalid format #5", OFInvalidFormatException, [PLIST(@"<dict><key x='x'/><string/></dict>") propertyListValue]) objc_autoreleasePoolPop(pool); } @end |