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.
1 parent 67af2fe commit 89c4e42Copy full SHA for 89c4e42
Tests/IntegerUtilitiesTests/GCDTests.swift
@@ -34,5 +34,9 @@ final class IntegerUtilitiesGCDTests: XCTestCase {
34
XCTAssertEqual(gcd(16*315, 11*315), 315)
35
XCTAssertEqual(gcd(97*67*53*27*8, 83*67*53*9*32), 67*53*9*8)
36
XCTAssertEqual(gcd(Int.min, 2), 2)
37
+
38
+ XCTExpectFailure{ gcd(0, Int.min) }
39
+ XCTExpectFailure{ gcd(Int.min, 0) }
40
+ XCTExpectFailure{ gcd(Int.min, Int.min) }
41
}
42
0 commit comments