diff --git a/src/Math-Tests-Complex/PMComplexNumberTest.class.st b/src/Math-Tests-Complex/PMComplexNumberTest.class.st index efddcf78..fc6c0071 100644 --- a/src/Math-Tests-Complex/PMComplexNumberTest.class.st +++ b/src/Math-Tests-Complex/PMComplexNumberTest.class.st @@ -646,6 +646,14 @@ PMComplexNumberTest >> testRaisedToInteger [ self assert: c3 reciprocal equals: (c raisedToInteger: -3) ] +{ #category : #'testing - mathematical functions' } +PMComplexNumberTest >> testRaisedToPositiveInteger [ + | z zCubed | + z := (3 sqrt / 2) + (1 / 2) i. + zCubed := (z raisedTo: 3) . + self assert: zCubed closeTo: (0 + 1 i). +] + { #category : #tests } PMComplexNumberTest >> testRandom [ | random c r |