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.
2 parents 79a71c1 + d463723 commit 18a5fc6Copy full SHA for 18a5fc6
test/stdlib/Integers.swift.gyb
@@ -852,9 +852,12 @@ tests.test("Strideable") {
852
expectEqual(dist(UInt8.max, UInt8.min), -255)
853
expectEqual(dist(Int8.min, Int8.max), 255)
854
expectEqual(dist(Int8.max, Int8.min), -255)
855
-
856
- expectEqual(Int8.min.advanced(by: Int(Int8.max)+1), 0)
857
- expectEqual(UInt.max.advanced(by: Int.min), UInt.max / 2)
+
+ if #available(SwiftStdlib 6.0, *) {
+ // Edge cases fixed in Swift 6.0
858
+ expectEqual(Int8.min.advanced(by: Int(Int8.max)+1), 0)
859
+ expectEqual(UInt.max.advanced(by: Int.min), UInt.max / 2)
860
+ }
861
}
862
863
tests.test("signum/generic") {
0 commit comments