Skip to content

Commit 261ca40

Browse files
authored
Merge pull request #249 from olekscode/246-Refactor-PMComplexTest--testComplexConjugate
Fixed #246. Refactored the PMComplexTest >> testComplexConjugate
2 parents c5c35fd + 81f6261 commit 261ca40

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/Math-Tests-Complex/PMComplexTest.class.st

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -201,13 +201,8 @@ PMComplexTest >> testComplexCollection [
201201

202202
{ #category : #tests }
203203
PMComplexTest >> testComplexConjugate [
204-
| z complexConjugateOfZ expected |
205-
z := 5 - 6 i.
206-
207-
complexConjugateOfZ := z complexConjugate .
208-
209-
expected := 5 + 6 i.
210-
self assert: complexConjugateOfZ equals: expected.
204+
205+
self assert: (5 - 6i) complexConjugate equals: (5 + 6i).
211206
]
212207

213208
{ #category : #'testing - equality' }

0 commit comments

Comments
 (0)