-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[stdlib] Migrate stdlib tests of Swift 3 #17427
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -475,8 +475,7 @@ func getBridgedNSDictionaryOfRefTypesBridgedVerbatim() -> NSDictionary { | |
d[TestObjCKeyTy(20)] = TestObjCValueTy(1020) | ||
d[TestObjCKeyTy(30)] = TestObjCValueTy(1030) | ||
|
||
let bridged = | ||
unsafeBitCast(convertDictionaryToNSDictionary(d), to: NSDictionary.self) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @lorentey just to check, can you spot any higher purpose to this bit cast that I'm missing? The function already returns an There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is none as far as I can tell! |
||
let bridged = convertDictionaryToNSDictionary(d) | ||
|
||
assert(isNativeNSDictionary(bridged)) | ||
|
||
|
@@ -486,8 +485,7 @@ func getBridgedNSDictionaryOfRefTypesBridgedVerbatim() -> NSDictionary { | |
func getBridgedEmptyNSDictionary() -> NSDictionary { | ||
let d = Dictionary<TestObjCKeyTy, TestObjCValueTy>() | ||
|
||
let bridged = | ||
unsafeBitCast(convertDictionaryToNSDictionary(d), to: NSDictionary.self) | ||
let bridged = convertDictionaryToNSDictionary(d) | ||
assert(isNativeNSDictionary(bridged)) | ||
|
||
return bridged | ||
|
@@ -874,8 +872,7 @@ typealias AnyObjectTuple2 = (AnyObject, AnyObject) | |
for i in 0..<3 { | ||
var actualContents = [ExpectedDictionaryElement]() | ||
let sink: (AnyObjectTuple2) -> Void = { | ||
pair in | ||
let (key, value) = pair | ||
let (key, value) = $0 | ||
actualContents.append(ExpectedDictionaryElement( | ||
key: convertKey(key), | ||
value: convertValue(value), | ||
|
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you remove the RUN: line for -swift-version 3 too?