File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -819,11 +819,14 @@ struct ${Self}<T> : ${Collection} {
819
819
}
820
820
821
821
CollectionTypeTests. test ( " AssociatedTypes/${Collection} " ) {
822
- expectTrue ( ${ Self} < Void> . Index. self == FatalIndex . self)
823
- expectTrue ( ${ Self} < Void> . Indices . self == ${ Indices} < ${ Self} < Void>>. self )
824
- expectTrue ( ${ Self} < Void> . IndexDistance. self == Int . self)
825
- expectTrue ( ${ Self} < Void> . Iterator. self == IndexingIterator< ${ Self} < Void>>. self )
826
- expectTrue ( ${ Self} < Void> . SubSequence . self == ${ Slice} < ${ Self} < Void>>. self )
822
+ typealias C = ${ Self} < Void>
823
+ expectCollectionAssociatedTypes (
824
+ collectionType: C . self,
825
+ iteratorType: IndexingIterator< C> . self ,
826
+ subSequenceType: ${ Slice} < C> . self ,
827
+ indexType: FatalIndex . self,
828
+ indexDistanceType: Int . self,
829
+ indicesType: ${ Indices} < C> . self )
827
830
}
828
831
% end
829
832
You can’t perform that action at this time.
0 commit comments