code review
This commit is contained in:
parent
3c91c66ee2
commit
b5dfa28f3b
1 changed files with 2 additions and 9 deletions
|
@ -46,11 +46,7 @@ limitations under the License.
|
||||||
|
|
||||||
|
|
||||||
NSDictionary *unpublished = bob.unpublishedFallbackKey;
|
NSDictionary *unpublished = bob.unpublishedFallbackKey;
|
||||||
__block NSString *bobKeyValue = nil;
|
__block NSString *bobKeyValue = ((NSDictionary *) unpublished[@"curve25519"]).allValues.lastObject;
|
||||||
[unpublished[@"curve25519"] enumerateKeysAndObjectsUsingBlock:^(id _Nonnull key, id _Nonnull obj, BOOL * _Nonnull stop) {
|
|
||||||
bobKeyValue = obj;
|
|
||||||
}];
|
|
||||||
|
|
||||||
|
|
||||||
XCTAssertNotNil(bobKeyValue);
|
XCTAssertNotNil(bobKeyValue);
|
||||||
|
|
||||||
|
@ -58,10 +54,7 @@ limitations under the License.
|
||||||
|
|
||||||
NSDictionary *unpublishedAfter = bob.unpublishedFallbackKey;
|
NSDictionary *unpublishedAfter = bob.unpublishedFallbackKey;
|
||||||
|
|
||||||
__block NSString *bobKeyValueAfter = nil;
|
__block NSString *bobKeyValueAfter = ((NSDictionary *) unpublishedAfter[@"curve25519"]).allValues.lastObject;
|
||||||
[unpublishedAfter[@"curve25519"] enumerateKeysAndObjectsUsingBlock:^(id _Nonnull key, id _Nonnull obj, BOOL * _Nonnull stop) {
|
|
||||||
bobKeyValueAfter = obj;
|
|
||||||
}];
|
|
||||||
|
|
||||||
XCTAssertNil(bobKeyValueAfter);
|
XCTAssertNil(bobKeyValueAfter);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue