Fixup validation tests

This commit is contained in:
Robert Widmann
2016-07-30 02:47:35 -07:00
parent 9c83e7223e
commit e1ae0391e8
21 changed files with 136 additions and 136 deletions

View File

@@ -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 })
}