Skip to content

Commit baaa8a3

Browse files
refactor: extracted computations to local variables.
1 parent ede673d commit baaa8a3

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,11 @@ PMComplexNumberTest >> testArgumentOfPureNegativeImaginaryNumber [
206206

207207
{ #category : #'testing - bugs' }
208208
PMComplexNumberTest >> testBug1 [
209-
self assert: (0.5 * (2 + 0 i) ln) exp equals: (0.5 * 2 ln) exp
209+
| logOfRootTwo logRootTwo |
210+
logOfRootTwo := (0.5 * (2 + 0 i) ln).
211+
self assert: logOfRootTwo exp closeTo: 2 sqrt + 0.0 i.
212+
logRootTwo := (0.5 * 2 ln).
213+
self assert: logOfRootTwo exp equals: logRootTwo exp
210214
]
211215

212216
{ #category : #'testing - close to' }

0 commit comments

Comments
 (0)