@@ -71,7 +71,7 @@ final class ComplexTests: XCTestCase {
71
71
XCTAssertEqual ( complexA, complexB)
72
72
73
73
complexA = Complex ( real: 5 , imaginary: 0 )
74
- expectNotEqual ( complexA, complexB)
74
+ XCTAssertNotEqual ( complexA, complexB)
75
75
}
76
76
77
77
func testPlus( ) {
@@ -192,7 +192,7 @@ final class ComplexTests: XCTestCase {
192
192
XCTAssertEqual ( pb ( Complex ( real: 1 , imaginary: 1 ) ) , Complex < Float > ( real: - 1 , imaginary: - 1 ) )
193
193
}
194
194
195
- func testVjpAdding ( ) {
195
+ func testVjpAddingReal ( ) {
196
196
let pb : ( Complex < Float > ) -> Complex < Float > = pullback ( at: Complex < Float > ( real: 20 , imaginary: - 4 ) ) { x in
197
197
return x. adding ( real: 5 )
198
198
}
@@ -201,7 +201,7 @@ final class ComplexTests: XCTestCase {
201
201
XCTAssertEqual ( pb ( Complex ( real: 1 , imaginary: 1 ) ) , Complex < Float > ( real: 1 , imaginary: 1 ) )
202
202
}
203
203
204
- func testVjpAdding ( ) {
204
+ func testVjpAddingImaginary ( ) {
205
205
let pb : ( Complex < Float > ) -> Complex < Float > = pullback ( at: Complex < Float > ( real: 20 , imaginary: - 4 ) ) { x in
206
206
return x. adding ( imaginary: 5 )
207
207
}
@@ -210,7 +210,7 @@ final class ComplexTests: XCTestCase {
210
210
XCTAssertEqual ( pb ( Complex ( real: 1 , imaginary: 1 ) ) , Complex < Float > ( real: 1 , imaginary: 1 ) )
211
211
}
212
212
213
- func testVjpSubtracting ( ) {
213
+ func testVjpSubtractingReal ( ) {
214
214
let pb : ( Complex < Float > ) -> Complex < Float > = pullback ( at: Complex < Float > ( real: 20 , imaginary: - 4 ) ) { x in
215
215
return x. subtracting ( real: 5 )
216
216
}
@@ -219,7 +219,7 @@ final class ComplexTests: XCTestCase {
219
219
XCTAssertEqual ( pb ( Complex ( real: 1 , imaginary: 1 ) ) , Complex < Float > ( real: 1 , imaginary: 1 ) )
220
220
}
221
221
222
- func testVjpSubtracting ( ) {
222
+ func testVjpSubtractingImaginary ( ) {
223
223
let pb : ( Complex < Float > ) -> Complex < Float > = pullback ( at: Complex < Float > ( real: 20 , imaginary: - 4 ) ) { x in
224
224
return x. subtracting ( imaginary: 5 )
225
225
}
0 commit comments