Skip to content

Commit

Permalink
fix: let's use assert: closeTo:
Browse files Browse the repository at this point in the history
  • Loading branch information
hemalvarambhia committed Jan 6, 2024
1 parent 42d0fa0 commit 0bf9dfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Math-Tests-Complex/PMComplexNumberTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ PMComplexNumberTest >> testRaisedToFractionalIndex [
z := 1 / 2 + (3 sqrt / 2) i.
"Here, we appeal to de Moivre's theorem to compute the expected answer"
expected := 3 sqrt / 2 + (1 / 2) i.
self assert: (z raisedTo: 1 / 2) equals: expected
self assert: (z raisedTo: 1 / 2) closeTo: expected
]

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

0 comments on commit 0bf9dfc

Please sign in to comment.