@@ -143,9 +143,9 @@ class TestDate : TestDateSuper {
143143 dateWithString ( " 2010-05-17 14:49:47 -0700 " ) ,
144144 ]
145145 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) ) )
149149 expectNotEqual ( anyHashables [ 0 ] , anyHashables [ 1 ] )
150150 expectEqual ( anyHashables [ 1 ] , anyHashables [ 2 ] )
151151 }
@@ -157,9 +157,9 @@ class TestDate : TestDateSuper {
157157 NSDate ( timeIntervalSince1970: 1000000001 ) ,
158158 ]
159159 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) ) )
163163 expectNotEqual ( anyHashables [ 0 ] , anyHashables [ 1 ] )
164164 expectEqual ( anyHashables [ 1 ] , anyHashables [ 2 ] )
165165 }
@@ -171,9 +171,9 @@ class TestDate : TestDateSuper {
171171 DateComponents ( year: 1995 ) ,
172172 ]
173173 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) ) )
177177 expectNotEqual ( anyHashables [ 0 ] , anyHashables [ 1 ] )
178178 expectEqual ( anyHashables [ 1 ] , anyHashables [ 2 ] )
179179 }
@@ -190,9 +190,9 @@ class TestDate : TestDateSuper {
190190 makeNSDateComponents ( year: 1995 ) ,
191191 ]
192192 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) ) )
196196 expectNotEqual ( anyHashables [ 0 ] , anyHashables [ 1 ] )
197197 expectEqual ( anyHashables [ 1 ] , anyHashables [ 2 ] )
198198 }
0 commit comments