Skip to content

Commit

Permalink
test: cleaned up the test.
Browse files Browse the repository at this point in the history
  • Loading branch information
hemalvarambhia committed Jan 6, 2024
1 parent 6f5698a commit e976c64
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/Math-Tests-Complex/PMComplexNumberTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -630,12 +630,11 @@ PMComplexNumberTest >> testQuotientsOfComplexNumbersCannotBeWritten [
{ #category : #'testing - mathematical functions' }
PMComplexNumberTest >> testRaisedTo [

| c squareRootOfZSquared z |
c := 5 - 6 i.
| expected squareRootOfZSquared z |
z := 5 - 6 i.
squareRootOfZSquared := (c raisedTo: 1 / 2) raisedTo: 2.
self assert: squareRootOfZSquared real closeTo: c real.
self assert: squareRootOfZSquared imaginary closeTo: c imaginary
squareRootOfZSquared := (z raisedTo: 1 / 2) raisedTo: 2.
expected := 5 - 6 i.
self assert: squareRootOfZSquared closeTo: expected
]

{ #category : #'testing - mathematical functions' }
Expand Down

0 comments on commit e976c64

Please sign in to comment.