Skip to content

Commit

Permalink
refactor: extracted computations to local variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
hemalvarambhia committed Jan 16, 2024
1 parent ede673d commit baaa8a3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Math-Tests-Complex/PMComplexNumberTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,11 @@ PMComplexNumberTest >> testArgumentOfPureNegativeImaginaryNumber [

{ #category : #'testing - bugs' }
PMComplexNumberTest >> testBug1 [
self assert: (0.5 * (2 + 0 i) ln) exp equals: (0.5 * 2 ln) exp
| logOfRootTwo logRootTwo |
logOfRootTwo := (0.5 * (2 + 0 i) ln).
self assert: logOfRootTwo exp closeTo: 2 sqrt + 0.0 i.
logRootTwo := (0.5 * 2 ln).
self assert: logOfRootTwo exp equals: logRootTwo exp
]

{ #category : #'testing - close to' }
Expand Down

0 comments on commit baaa8a3

Please sign in to comment.