Skip to content
This repository was archived by the owner on Jul 1, 2023. It is now read-only.

Commit 4bc7775

Browse files
committed
Fix typos in tests.
1 parent 59989bd commit 4bc7775

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Tests/ExperimentalTests/ComplexTests.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,9 @@ final class ComplexTests: XCTestCase {
156156
let pb = pullback(at: 4, -3) { r, i in
157157
return Complex<Float>(real: r, imaginary: i)
158158
}
159-
XCTAssertEqual((-1, 2), pb(Complex<Float>(real: -1, imaginary: 2)))
159+
let tanTuple = pb(Complex<Float>(real: -1, imaginary: 2))
160+
XCTAssertEqual(-1, tanTuple.0)
161+
XCTAssertEqual(2, tanTuple.1)
160162
}
161163

162164
func testVjpAdd() {
@@ -316,7 +318,7 @@ final class ComplexTests: XCTestCase {
316318
}
317319

318320
XCTAssertEqual(-2, result)
319-
XCTAssertEqual(Complex(real: 1, imaginary: 1), pbComplex(1))
321+
XCTAssertEqual(Complex(real: 1, imaginary: 0), pbComplex(1))
320322
}
321323

322324
static var allTests = [

0 commit comments

Comments
 (0)