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 e976c64 commit 9e0ac1d
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 @@ -965,3 +965,12 @@ PMComplexNumberTest >> testZeroComplexNumberIsEqualToIntegerZero [
PMComplexNumberTest >> testZeroComplexNumbersDoNotHaveAReciprocal [
self should: [ PMComplexNumber zero reciprocal ] raise: ZeroDivide
]

{ #category : #'testing - mathematical functions' }
PMComplexNumberTest >> testZeroRaisedToPowerOfZero [

| z expected |
z := PMComplexNumber zero.
expected := PMComplexNumber one.
self assert: (z raisedTo: 0) equals: expected
]

0 comments on commit 9e0ac1d

Please sign in to comment.