Skip to content

Commit

Permalink
test: added another missing test.
Browse files Browse the repository at this point in the history
  • Loading branch information
hemalvarambhia committed Jan 7, 2024
1 parent 9e0ac1d commit 1a9a891
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Math-Tests-Complex/PMComplexNumberTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -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 [

Expand Down

0 comments on commit 1a9a891

Please sign in to comment.