Improve code readability with dictionary literals.

This commit is contained in:
Alexander Ljungberg
2013-02-25 17:02:36 +00:00
parent 472848da91
commit 8bcbeb0aa9
43 changed files with 88 additions and 86 deletions
+2 -2
View File
@@ -454,14 +454,14 @@ var accessIVARS = YES;
- (void)testIfValueForKeyAccessesObjectForKey
{
var testDictionary = [CPDictionary dictionary];
var testDictionary = @{};
[testDictionary setObject:kvcTestObject forKey:@"testKey"];
[self assert: kvcTestObject same: [testDictionary valueForKey: @"testKey"]];
}
- (void)testIfSetValueForKeyModifiesObjectForKey
{
var testDictionary = [CPDictionary dictionary];
var testDictionary = @{};
[testDictionary setValue:kvcTestObject forKey:@"testKey"];
[self assert: kvcTestObject same: [testDictionary objectForKey: @"testKey"]];
}