@@ -143,9 +143,9 @@ class TestDate : TestDateSuper {
143
143
dateWithString ( " 2010-05-17 14:49:47 -0700 " ) ,
144
144
]
145
145
let anyHashables = values. map ( AnyHashable . init)
146
- expectEqual ( " Date " , String ( describing: anyHashables [ 0 ] . base. dynamicType ) )
147
- expectEqual ( " Date " , String ( describing: anyHashables [ 1 ] . base. dynamicType ) )
148
- expectEqual ( " Date " , String ( describing: anyHashables [ 2 ] . base. dynamicType ) )
146
+ expectEqual ( " Date " , String ( describing: type ( of : anyHashables [ 0 ] . base) ) )
147
+ expectEqual ( " Date " , String ( describing: type ( of : anyHashables [ 1 ] . base) ) )
148
+ expectEqual ( " Date " , String ( describing: type ( of : anyHashables [ 2 ] . base) ) )
149
149
expectNotEqual ( anyHashables [ 0 ] , anyHashables [ 1 ] )
150
150
expectEqual ( anyHashables [ 1 ] , anyHashables [ 2 ] )
151
151
}
@@ -157,9 +157,9 @@ class TestDate : TestDateSuper {
157
157
NSDate ( timeIntervalSince1970: 1000000001 ) ,
158
158
]
159
159
let anyHashables = values. map ( AnyHashable . init)
160
- expectEqual ( " Date " , String ( describing: anyHashables [ 0 ] . base. dynamicType ) )
161
- expectEqual ( " Date " , String ( describing: anyHashables [ 1 ] . base. dynamicType ) )
162
- expectEqual ( " Date " , String ( describing: anyHashables [ 2 ] . base. dynamicType ) )
160
+ expectEqual ( " Date " , String ( describing: type ( of : anyHashables [ 0 ] . base) ) )
161
+ expectEqual ( " Date " , String ( describing: type ( of : anyHashables [ 1 ] . base) ) )
162
+ expectEqual ( " Date " , String ( describing: type ( of : anyHashables [ 2 ] . base) ) )
163
163
expectNotEqual ( anyHashables [ 0 ] , anyHashables [ 1 ] )
164
164
expectEqual ( anyHashables [ 1 ] , anyHashables [ 2 ] )
165
165
}
@@ -171,9 +171,9 @@ class TestDate : TestDateSuper {
171
171
DateComponents ( year: 1995 ) ,
172
172
]
173
173
let anyHashables = values. map ( AnyHashable . init)
174
- expectEqual ( " DateComponents " , String ( describing: anyHashables [ 0 ] . base. dynamicType ) )
175
- expectEqual ( " DateComponents " , String ( describing: anyHashables [ 1 ] . base. dynamicType ) )
176
- expectEqual ( " DateComponents " , String ( describing: anyHashables [ 2 ] . base. dynamicType ) )
174
+ expectEqual ( " DateComponents " , String ( describing: type ( of : anyHashables [ 0 ] . base) ) )
175
+ expectEqual ( " DateComponents " , String ( describing: type ( of : anyHashables [ 1 ] . base) ) )
176
+ expectEqual ( " DateComponents " , String ( describing: type ( of : anyHashables [ 2 ] . base) ) )
177
177
expectNotEqual ( anyHashables [ 0 ] , anyHashables [ 1 ] )
178
178
expectEqual ( anyHashables [ 1 ] , anyHashables [ 2 ] )
179
179
}
@@ -190,9 +190,9 @@ class TestDate : TestDateSuper {
190
190
makeNSDateComponents ( year: 1995 ) ,
191
191
]
192
192
let anyHashables = values. map ( AnyHashable . init)
193
- expectEqual ( " DateComponents " , String ( describing: anyHashables [ 0 ] . base. dynamicType ) )
194
- expectEqual ( " DateComponents " , String ( describing: anyHashables [ 1 ] . base. dynamicType ) )
195
- expectEqual ( " DateComponents " , String ( describing: anyHashables [ 2 ] . base. dynamicType ) )
193
+ expectEqual ( " DateComponents " , String ( describing: type ( of : anyHashables [ 0 ] . base) ) )
194
+ expectEqual ( " DateComponents " , String ( describing: type ( of : anyHashables [ 1 ] . base) ) )
195
+ expectEqual ( " DateComponents " , String ( describing: type ( of : anyHashables [ 2 ] . base) ) )
196
196
expectNotEqual ( anyHashables [ 0 ] , anyHashables [ 1 ] )
197
197
expectEqual ( anyHashables [ 1 ] , anyHashables [ 2 ] )
198
198
}
0 commit comments