Post

Replies

Boosts

Views

Activity

Reply to How to test equality with a tolerance in Swift Testing
According to Github, the best way is to use isApproximatelyEqual(_:absoluteTolerance:) from the package swift-numerics: #expect(someFloatingPointNumber.isApproximatelyEqual(0, absoluteTolerance: 0.001))
Replies
Boosts
Views
Activity
May ’25