Skip to content

Commit 619b4a9

Browse files
authored
Fix a test that fails to compile on 32-bit targets. (#753)
An expression in `testCollectionDifferenceSkippedForRanges()` overflows on 32-bit targets like watchOS. This fixes that. ### Checklist: - [x] Code and documentation should follow the style of the [Style Guide](https://github.com/apple/swift-testing/blob/main/Documentation/StyleGuide.md). - [x] If public symbols are renamed or modified, DocC references should be updated.
1 parent 7dd3d27 commit 619b4a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/TestingTests/IssueTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1120,7 +1120,7 @@ final class IssueTests: XCTestCase {
11201120
await Test {
11211121
let range_int8: ClosedRange<Int> = Int(Int8.min)...Int(Int8.max)
11221122
let range_uint16: ClosedRange<Int> = Int(UInt16.min)...Int(UInt16.max)
1123-
let range_int64: ClosedRange<Int> = Int(Int64.min)...Int(Int64.max)
1123+
let range_int64: ClosedRange<Int64> = Int64.min...Int64.max
11241124

11251125
#expect(range_int8 == (-127)...127, "incorrect min")
11261126
#expect(range_int8 == (-128)...128, "incorrect max")

0 commit comments

Comments
 (0)