From 1a9a891803ffbe4a3a164f82488271c53ef0a677 Mon Sep 17 00:00:00 2001 From: hemalvarambhia Date: Sun, 7 Jan 2024 17:21:41 +0000 Subject: [PATCH] test: added another missing test. --- src/Math-Tests-Complex/PMComplexNumberTest.class.st | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Math-Tests-Complex/PMComplexNumberTest.class.st b/src/Math-Tests-Complex/PMComplexNumberTest.class.st index 74149abb..3f161527 100644 --- a/src/Math-Tests-Complex/PMComplexNumberTest.class.st +++ b/src/Math-Tests-Complex/PMComplexNumberTest.class.st @@ -966,6 +966,15 @@ PMComplexNumberTest >> testZeroComplexNumbersDoNotHaveAReciprocal [ self should: [ PMComplexNumber zero reciprocal ] raise: ZeroDivide ] +{ #category : #'testing - mathematical functions' } +PMComplexNumberTest >> testZeroRaisedToNegativePowerRaisesAZeroDivisionError [ + + | z expected | + z := PMComplexNumber zero. + expected := 0 + 1 i. + self should: [ z raisedTo: -3 ] raise: ZeroDivide +] + { #category : #'testing - mathematical functions' } PMComplexNumberTest >> testZeroRaisedToPowerOfZero [