Skip to content

Commit e3a32a7

Browse files
committed
stdlib tests: coding style fixes
1 parent 0cdcd18 commit e3a32a7

File tree

1 file changed

+21
-22
lines changed

1 file changed

+21
-22
lines changed

validation-test/stdlib/Slice.swift.gyb

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -16,29 +16,28 @@ import StdlibCollectionUnittest
1616

1717
/// Reference-type collection for testing the `base` property.
1818
class ReferenceCollection : RandomAccessCollection {
19-
typealias Index = Int
20-
21-
var startIndex: Int {
22-
return 0
23-
}
24-
25-
var endIndex: Int {
26-
return 1
27-
}
28-
29-
subscript(index: Int) -> String {
30-
return ""
31-
}
32-
33-
func index(after i: Int) -> Int {
34-
return 1
35-
}
36-
37-
func index(before i: Int) -> Int {
38-
return 0
39-
}
40-
}
19+
typealias Index = Int
20+
21+
var startIndex: Int {
22+
return 0
23+
}
4124

25+
var endIndex: Int {
26+
return 1
27+
}
28+
29+
subscript(index: Int) -> String {
30+
return ""
31+
}
32+
33+
func index(after i: Int) -> Int {
34+
return 1
35+
}
36+
37+
func index(before i: Int) -> Int {
38+
return 0
39+
}
40+
}
4241

4342
var SliceTests = TestSuite("Collection")
4443

0 commit comments

Comments
 (0)