Skip to content

Commit 306eaef

Browse files
oscbysproglessard
andauthored
Apply suggestions from code review
- Changed 128 integer literal to Int(Int8.max)+1 in unit tests (Int8.Stride is Int). Co-authored-by: Guillaume Lessard <[email protected]>
1 parent d7b3d3e commit 306eaef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/stdlib/Integers.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,7 @@ tests.test("Strideable") {
853853
expectEqual(dist(Int8.min, Int8.max), 255)
854854
expectEqual(dist(Int8.max, Int8.min), -255)
855855

856-
expectEqual(Int8.min.advanced(by: 128), 0)
856+
expectEqual(Int8.min.advanced(by: Int(Int8.max)+1), 0)
857857
expectEqual(UInt.max.advanced(by: Int.min), UInt.max / 2)
858858
}
859859

0 commit comments

Comments
 (0)