mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-29 13:47:42 +00:00
Improve code readability with dictionary literals.
This commit is contained in:
@@ -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"]];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user