diff --git a/src/Math-Tests-Complex/PMComplexNumberTest.class.st b/src/Math-Tests-Complex/PMComplexNumberTest.class.st index 2d8daf5e..f9835ef7 100644 --- a/src/Math-Tests-Complex/PMComplexNumberTest.class.st +++ b/src/Math-Tests-Complex/PMComplexNumberTest.class.st @@ -308,23 +308,6 @@ PMComplexNumberTest >> testCosh2MinusSinh2 [ self assert: (c cosh squared - c sinh squared) imaginary closeTo: 0.0 ] ] ] -{ #category : #'testing - expressing complex numbers' } -PMComplexNumberTest >> testCreation [ - | c | - c := 5 i. - self assert: c real equals: 0. - self assert: c imaginary equals: 5. - c := 6 + 7 i. - self assert: c real equals: 6. - self assert: c imaginary equals: 7. - c := 5.6 - 8 i. - self assert: c real equals: 5.6. - self assert: c imaginary equals: -8. - c := PMComplexNumber real: 10 imaginary: 5. - self assert: c real equals: 10. - self assert: c imaginary equals: 5. -] - { #category : #'testing - arithmetic' } PMComplexNumberTest >> testDividingALargeComplexNumbersByItself [ | c1 c2 quotient | @@ -937,6 +920,23 @@ PMComplexNumberTest >> testTwoComplexNumbersWithDifferentRealPartsAreNotEqual [ self deny: z equals: w ] +{ #category : #'testing - expressing complex numbers' } +PMComplexNumberTest >> testWritingComplexNumbersInCartesianCoordinates [ + | c | + c := 5 i. + self assert: c real equals: 0. + self assert: c imaginary equals: 5. + c := 6 + 7 i. + self assert: c real equals: 6. + self assert: c imaginary equals: 7. + c := 5.6 - 8 i. + self assert: c real equals: 5.6. + self assert: c imaginary equals: -8. + c := PMComplexNumber real: 10 imaginary: 5. + self assert: c real equals: 10. + self assert: c imaginary equals: 5. +] + { #category : #'testing - expressing complex numbers' } PMComplexNumberTest >> testWritingComplexNumbersInPolarCoordinates [ | c |