@@ -259,17 +259,26 @@ public let joinWithSeparatorTests = [
259
259
260
260
var JoinTestSuite = TestSuite ( " Join " )
261
261
262
- % from itertools import product
263
- % traversals = [ 'Forward', 'Bidirectional', 'Rando mAccess' ]
264
- % base_kinds = [ 'Defaulted', 'Minimal' ]
265
- % collections = [
266
- % ( '{ } { } RangeReplaceableCollection'. format ( base_kind, traversal) , traversal)
267
- % for base_kind, traversal in product( base_kinds, traversals)
268
- % ]
269
- % other_array_types = [ 'Array', 'ArraySlice', 'ContiguousArray' ]
270
- % collections += [ ( array, 'Rando mAccess') for array in other_array_types]
271
-
272
- % for Base, traversal in collections:
262
+ % {
263
+
264
+ from gyb_stdlib_support import (
265
+ TRAVERSALS,
266
+ sliceTypeName
267
+ )
268
+
269
+ from itertools import product
270
+
271
+ base_kinds = [ 'Defaulted', 'Minimal' ]
272
+ collections = [
273
+ ( base_kind + sliceTypeName( traversal= traversal, mutable= False, rangeReplaceable= True) . replace ( 'Slice', 'Collection') , traversal)
274
+ for base_kind, traversal in product ( base_kinds, TRAVERSALS)
275
+ ]
276
+ other_array_types = [ 'Array', 'ArraySlice', 'ContiguousArray' ]
277
+ collections += [ ( array, 'Rando mAccess') for array in other_array_types]
278
+
279
+ } %
280
+
281
+ % for Base, TRAVERSALS in collections:
273
282
% if Base not in other_array_types:
274
283
% label = 'elements: '
275
284
% else :
0 commit comments