Skip to content

Commit bf39288

Browse files
[stdlib] Add stride through test hitting UInt8.max
1 parent 09a19bb commit bf39288

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/1_stdlib/Strideable.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,8 @@ func strideIteratorTest<
218218

219219
StrideTestSuite.test("StrideThroughIterator/past end") {
220220
strideIteratorTest(stride(from: 0, through: 3, by: 1), nonNilResults: 4)
221+
strideIteratorTest(
222+
stride(from: UInt8(0), through: 255, by: 5), nonNilResults: 52)
221223
}
222224

223225
StrideTestSuite.test("StrideThroughIterator/past end/backward") {

0 commit comments

Comments
 (0)