mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Fixup validation tests
This commit is contained in:
@@ -19,7 +19,7 @@ NSStringTests.test("NSString bridges to String with custom AnyHashable")
|
||||
input in
|
||||
let s = input._bridgeToObjectiveC()
|
||||
expectNotEmpty(s._toCustomAnyHashable())
|
||||
expectEqual("String", String(describing: AnyHashable(s).base.dynamicType))
|
||||
expectEqual("String", String(describing: type(of: AnyHashable(s).base)))
|
||||
}
|
||||
|
||||
NSStringTests.test("AnyHashable(NSString) uses Swift String comparison rules") {
|
||||
@@ -29,8 +29,8 @@ NSStringTests.test("AnyHashable(NSString) uses Swift String comparison rules") {
|
||||
let nss2: NSString = NSString(utf8String: "\u{e1}")!
|
||||
let ah1 = AnyHashable(nss1)
|
||||
let ah2 = AnyHashable(nss2)
|
||||
expectEqual("String", String(describing: ah1.base.dynamicType))
|
||||
expectEqual("String", String(describing: ah2.base.dynamicType))
|
||||
expectEqual("String", String(describing: type(of: ah1.base)))
|
||||
expectEqual("String", String(describing: type(of: ah2.base)))
|
||||
checkHashable([ah1, ah2], equalityOracle: { _ in true })
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user