Skip to content

Commit 1a0b3ca

Browse files
refactor: ComplexNumber is a Whole Value and we can assert equality.
1 parent 45b4d3c commit 1a0b3ca

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -880,8 +880,7 @@ PMComplexNumberTest >> testSquared [
880880
| c c2 |
881881
c := 6 - 6 i.
882882
c2 := c squared.
883-
self assert: c2 imaginary equals: -72.
884-
self assert: c2 real equals: 0
883+
self assert: c2 equals: (0 - 72 i)
885884
]
886885

887886
{ #category : #'testing - arithmetic' }

0 commit comments

Comments
 (0)