File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ struct DistanceToTest {
50
50
}
51
51
}
52
52
53
- struct AvanceByTest {
53
+ struct AdvanceByTest {
54
54
let startIndex: Int
55
55
let distance: Int
56
56
let limit: Int?
@@ -93,53 +93,53 @@ let distanceToTests = [
93
93
]
94
94
95
95
let advancedByTests = [
96
- AvanceByTest (
96
+ AdvanceByTest (
97
97
startIndex: 0,
98
98
distance: 0,
99
99
expectedIndex: 0
100
100
),
101
- AvanceByTest (
101
+ AdvanceByTest (
102
102
startIndex: 0,
103
103
distance: -1,
104
104
expectedIndex: -1
105
105
),
106
- AvanceByTest (
106
+ AdvanceByTest (
107
107
startIndex: 0,
108
108
distance: 0,
109
109
expectedIndex: 0,
110
110
limitedBy: 0
111
111
),
112
- AvanceByTest (
112
+ AdvanceByTest (
113
113
startIndex: 0,
114
114
distance: 0,
115
115
expectedIndex: 0,
116
116
limitedBy: 10
117
117
),
118
- AvanceByTest (
118
+ AdvanceByTest (
119
119
startIndex: 0,
120
120
distance: 10,
121
121
expectedIndex: 0,
122
122
limitedBy: 0
123
123
),
124
- AvanceByTest (
124
+ AdvanceByTest (
125
125
startIndex: 0,
126
126
distance: -10,
127
127
expectedIndex: 0,
128
128
limitedBy: 0
129
129
),
130
- AvanceByTest (
130
+ AdvanceByTest (
131
131
startIndex: 0,
132
132
distance: 10,
133
133
expectedIndex: 10,
134
134
limitedBy: 10
135
135
),
136
- AvanceByTest (
136
+ AdvanceByTest (
137
137
startIndex: 0,
138
138
distance: 20,
139
139
expectedIndex: 10,
140
140
limitedBy: 10
141
141
),
142
- AvanceByTest (
142
+ AdvanceByTest (
143
143
startIndex: 10,
144
144
distance: -20,
145
145
expectedIndex: 0,
You can’t perform that action at this time.
0 commit comments