Skip to content

Commit

Permalink
NSKVOSupport: remove objc2 features from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hmelder committed Dec 17, 2024
1 parent eb4c82e commit 24af535
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Tests/base/NSKVOSupport/proxy.m
Original file line number Diff line number Diff line change
Expand Up @@ -197,16 +197,16 @@ - (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(N
count += 1;
switch (count) {
case 1:
PASS_EQUAL(keyPath, keys[0], "change notification for dependent key 'derivedName' is emitted first");
PASS_EQUAL(keyPath, [keys objectAtIndex: 0], "change notification for dependent key 'derivedName' is emitted first");
break;
case 2:
PASS_EQUAL(keyPath, keys[1], "'name' change notification for proxy is second");
PASS_EQUAL(keyPath, [keys objectAtIndex: 1], "'name' change notification for proxy is second");
break;
case 3:
PASS_EQUAL(keyPath, keys[0], "'derivedName' change notification for object is third");
PASS_EQUAL(keyPath, [keys objectAtIndex: 0], "'derivedName' change notification for object is third");
break;
case 4:
PASS_EQUAL(keyPath, keys[1], "'name' change notification for object is fourth");
PASS_EQUAL(keyPath, [keys objectAtIndex: 1], "'name' change notification for object is fourth");
break;
default:
PASS(0, "unexpected -[Observer observeValueForKeyPath:ofObject:change:context:] callback");
Expand Down

0 comments on commit 24af535

Please sign in to comment.