We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75fb174 commit a6d1336Copy full SHA for a6d1336
validation-test/stdlib/Data.swift
@@ -29,4 +29,17 @@ DataTestSuite.test("Data.Iterator semantics") {
29
}
30
checkSequence((0..<65535).lazy.map({ UInt8($0 % 23) }), data)
31
32
+
33
+DataTestSuite.test("associated types") {
34
+ typealias Subject = Data
35
+ expectRandomAccessCollectionAssociatedTypes(
36
+ collectionType: Subject.self,
37
+ iteratorType: Data.Iterator.self,
38
+ subSequenceType: MutableRangeReplaceableRandomAccessSlice<Subject>.self,
39
+ indexType: Int.self,
40
+ indexDistanceType: Int.self,
41
+ indicesType: CountableRange<Int>.self)
42
+}
43
44
45
runAllTests()
0 commit comments