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 187f6be commit 7dbb998Copy full SHA for 7dbb998
Tests/QuaternionTests/TransformationTests.swift
@@ -344,9 +344,9 @@ final class TransformationTests: XCTestCase {
344
// Perform a 180° rotation on all components
345
let pi = Quaternion(angle: .pi, axis: axis).act(on: closeToZero)
346
// Must be finite after the rotation
347
- XCTAssertTrue(pi.x.isFinite)
348
- XCTAssertTrue(pi.y.isFinite)
349
- XCTAssertTrue(pi.z.isFinite)
+ XCTAssertTrue(!pi.x.isZero)
+ XCTAssertTrue(!pi.y.isZero)
+ XCTAssertTrue(!pi.z.isZero)
350
XCTAssertTrue(closeEnough(pi.x, -scalar, ulps: 2))
351
XCTAssertTrue(closeEnough(pi.y, -scalar, ulps: 2))
352
XCTAssertTrue(closeEnough(pi.z, -scalar, ulps: 2))
0 commit comments