Skip to content

Commit

Permalink
refactor: made the test name shorter and hopefully more concise.
Browse files Browse the repository at this point in the history
  • Loading branch information
hemalvarambhia committed Jan 15, 2024
1 parent f4d8a3c commit a04e512
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/Math-Tests-Complex/PMComplexNumberTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -253,14 +253,6 @@ PMComplexNumberTest >> testComplexNumberAndIntegerAreUnequalEvenIfRealPartIsEqua
self deny: 1 + 3 i equals: 1
]

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

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

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

Expand Down Expand Up @@ -967,3 +959,11 @@ PMComplexNumberTest >> testZeroComplexNumberIsEqualToIntegerZero [
PMComplexNumberTest >> testZeroComplexNumbersDoNotHaveAReciprocal [
self should: [ PMComplexNumber zero reciprocal ] raise: ZeroDivide
]

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

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

0 comments on commit a04e512

Please sign in to comment.