@@ -71,7 +71,7 @@ final class ComplexTests: XCTestCase {
7171 XCTAssertEqual ( complexA, complexB)
7272
7373 complexA = Complex ( real: 5 , imaginary: 0 )
74- expectNotEqual ( complexA, complexB)
74+ XCTAssertNotEqual ( complexA, complexB)
7575 }
7676
7777 func testPlus( ) {
@@ -192,7 +192,7 @@ final class ComplexTests: XCTestCase {
192192 XCTAssertEqual ( pb ( Complex ( real: 1 , imaginary: 1 ) ) , Complex < Float > ( real: - 1 , imaginary: - 1 ) )
193193 }
194194
195- func testVjpAdding ( ) {
195+ func testVjpAddingReal ( ) {
196196 let pb : ( Complex < Float > ) -> Complex < Float > = pullback ( at: Complex < Float > ( real: 20 , imaginary: - 4 ) ) { x in
197197 return x. adding ( real: 5 )
198198 }
@@ -201,7 +201,7 @@ final class ComplexTests: XCTestCase {
201201 XCTAssertEqual ( pb ( Complex ( real: 1 , imaginary: 1 ) ) , Complex < Float > ( real: 1 , imaginary: 1 ) )
202202 }
203203
204- func testVjpAdding ( ) {
204+ func testVjpAddingImaginary ( ) {
205205 let pb : ( Complex < Float > ) -> Complex < Float > = pullback ( at: Complex < Float > ( real: 20 , imaginary: - 4 ) ) { x in
206206 return x. adding ( imaginary: 5 )
207207 }
@@ -210,7 +210,7 @@ final class ComplexTests: XCTestCase {
210210 XCTAssertEqual ( pb ( Complex ( real: 1 , imaginary: 1 ) ) , Complex < Float > ( real: 1 , imaginary: 1 ) )
211211 }
212212
213- func testVjpSubtracting ( ) {
213+ func testVjpSubtractingReal ( ) {
214214 let pb : ( Complex < Float > ) -> Complex < Float > = pullback ( at: Complex < Float > ( real: 20 , imaginary: - 4 ) ) { x in
215215 return x. subtracting ( real: 5 )
216216 }
@@ -219,7 +219,7 @@ final class ComplexTests: XCTestCase {
219219 XCTAssertEqual ( pb ( Complex ( real: 1 , imaginary: 1 ) ) , Complex < Float > ( real: 1 , imaginary: 1 ) )
220220 }
221221
222- func testVjpSubtracting ( ) {
222+ func testVjpSubtractingImaginary ( ) {
223223 let pb : ( Complex < Float > ) -> Complex < Float > = pullback ( at: Complex < Float > ( real: 20 , imaginary: - 4 ) ) { x in
224224 return x. subtracting ( imaginary: 5 )
225225 }
0 commit comments