From 0bf9dfc8ae6b70c84766ca25ee5ca630f0008ace Mon Sep 17 00:00:00 2001 From: hemalvarambhia Date: Sat, 6 Jan 2024 18:14:53 +0000 Subject: [PATCH] fix: let's use assert: closeTo: --- src/Math-Tests-Complex/PMComplexNumberTest.class.st | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Math-Tests-Complex/PMComplexNumberTest.class.st b/src/Math-Tests-Complex/PMComplexNumberTest.class.st index dfa9363a..95c377f4 100644 --- a/src/Math-Tests-Complex/PMComplexNumberTest.class.st +++ b/src/Math-Tests-Complex/PMComplexNumberTest.class.st @@ -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' }