Skip to content

Commit

Permalink
Suppress silly swift-testing warnings (#110)(#124).
Browse files Browse the repository at this point in the history
  • Loading branch information
oscbyspro committed Nov 9, 2024
1 parent db50472 commit f986cd6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Tests/DoubleIntKitTests/TripleInt+Comparison.swift
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ import TestKit
Ɣexpect(lhs, equals: rhs, is: expectation)
Ɣexpect(rhs, equals: lhs, is: expectation.negated())

try #require(lhs.compared(to: rhs) == expectation)
try #require(rhs.compared(to: lhs) == expectation.negated())
#expect(lhs.compared(to: rhs) == expectation)
#expect(rhs.compared(to: lhs) == expectation.negated())
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions Tests/DoubleIntKitTests/TripleInt+Division.swift
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ import TestKit
try Ɣrequire(Y(low: ~0, mid: ~0, high: ~x), by: X(low: ~0, high: x), is: D(quotient: ~1 as B, remainder: X(low: ~2, high: 2))) // 1

func Ɣrequire(_ dividend: Y, by divisor: X, is expectation: D) throws {
try #require(Bool(divisor.msb))
#expect(Bool(divisor.msb))

let result: D = dividend.division3212(normalized: Nonzero(divisor))
try #require(result == expectation)
#expect(result == expectation)

recover: do {
let remainder = TripleInt(
Expand All @@ -59,7 +59,7 @@ import TestKit
)

let recovered = divisor.multiplication(result.quotient).plus(remainder)
try #require(Fallible(dividend) == recovered)
#expect(Fallible(dividend) == recovered)
}
}
}
Expand Down

0 comments on commit f986cd6

Please sign in to comment.