Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Robert Long
Olm
Commits
b5dfa28f
Commit
b5dfa28f
authored
Dec 15, 2021
by
Valere
Committed by
Hubert Chathi
Apr 08, 2022
Browse files
code review
parent
3c91c66e
Changes
1
Hide whitespace changes
Inline
Side-by-side
xcode/OLMKitTests/OLMKitTests.m
View file @
b5dfa28f
...
...
@@ -46,11 +46,7 @@ limitations under the License.
NSDictionary
*
unpublished
=
bob
.
unpublishedFallbackKey
;
__block
NSString
*
bobKeyValue
=
nil
;
[
unpublished
[
@"curve25519"
]
enumerateKeysAndObjectsUsingBlock
:
^
(
id
_Nonnull
key
,
id
_Nonnull
obj
,
BOOL
*
_Nonnull
stop
)
{
bobKeyValue
=
obj
;
}];
__block
NSString
*
bobKeyValue
=
((
NSDictionary
*
)
unpublished
[
@"curve25519"
]).
allValues
.
lastObject
;
XCTAssertNotNil
(
bobKeyValue
);
...
...
@@ -58,10 +54,7 @@ limitations under the License.
NSDictionary
*
unpublishedAfter
=
bob
.
unpublishedFallbackKey
;
__block
NSString
*
bobKeyValueAfter
=
nil
;
[
unpublishedAfter
[
@"curve25519"
]
enumerateKeysAndObjectsUsingBlock
:
^
(
id
_Nonnull
key
,
id
_Nonnull
obj
,
BOOL
*
_Nonnull
stop
)
{
bobKeyValueAfter
=
obj
;
}];
__block
NSString
*
bobKeyValueAfter
=
((
NSDictionary
*
)
unpublishedAfter
[
@"curve25519"
]).
allValues
.
lastObject
;
XCTAssertNil
(
bobKeyValueAfter
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment