From fcc9df26b1e254fdad239811b026e3d4198c32b3 Mon Sep 17 00:00:00 2001 From: Jonathan Grynspan Date: Mon, 7 Oct 2024 17:04:17 -0400 Subject: [PATCH] Fix a test that fails to compile on 32-bit targets. An expression in `testCollectionDifferenceSkippedForRanges()` overflows on 32-bit targets like watchOS. This fixes that. --- Tests/TestingTests/IssueTests.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/TestingTests/IssueTests.swift b/Tests/TestingTests/IssueTests.swift index 9f28641e2..531b50d15 100644 --- a/Tests/TestingTests/IssueTests.swift +++ b/Tests/TestingTests/IssueTests.swift @@ -1120,7 +1120,7 @@ final class IssueTests: XCTestCase { await Test { let range_int8: ClosedRange = Int(Int8.min)...Int(Int8.max) let range_uint16: ClosedRange = Int(UInt16.min)...Int(UInt16.max) - let range_int64: ClosedRange = Int(Int64.min)...Int(Int64.max) + let range_int64: ClosedRange = Int64.min...Int64.max #expect(range_int8 == (-127)...127, "incorrect min") #expect(range_int8 == (-128)...128, "incorrect max")