Skip to content

Commit

Permalink
Removed the parentheses
Browse files Browse the repository at this point in the history
  • Loading branch information
olekscode committed Apr 23, 2022
1 parent 188e2b1 commit c4ea1f1
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/Math-Tests-Complex/PMComplexTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -196,16 +196,16 @@ PMComplexTest >> testCloseToReal [
{ #category : #'testing - close to' }
PMComplexTest >> testCloseToRealWithPrecision [

self assert: (2 + 0.001i closeTo: 2 precision: 0.01).
self assert: (2.001 + 0.001i closeTo: 2 precision: 0.01).
self assert: 2 + 0.001i closeTo: 2 precision: 0.01.
self assert: 2.001 + 0.001i closeTo: 2 precision: 0.01.
]

{ #category : #'testing - close to' }
PMComplexTest >> testCloseToWithPrecision [

self assert: (2 + 3.001i closeTo: 2 + 3i precision: 0.01).
self assert: (2.001 + 3i closeTo: 2 + 3i precision: 0.01).
self assert: (2.001 + 3.001i closeTo: 2 + 3i precision: 0.01).
self assert: 2 + 3.001i closeTo: 2 + 3i precision: 0.01.
self assert: 2.001 + 3i closeTo: 2 + 3i precision: 0.01.
self assert: 2.001 + 3.001i closeTo: 2 + 3i precision: 0.01.
]

{ #category : #tests }
Expand Down Expand Up @@ -544,16 +544,16 @@ PMComplexTest >> testNew [
{ #category : #'testing - close to' }
PMComplexTest >> testNotCloseToRealWithPrecision [

self deny: (2 + 0.001i closeTo: 2 precision: 0.000001).
self deny: (2.001 + 0.001i closeTo: 2 precision: 0.000001).
self deny: 2 + 0.001i closeTo: 2 precision: 0.000001.
self deny: 2.001 + 0.001i closeTo: 2 precision: 0.000001.
]

{ #category : #'testing - close to' }
PMComplexTest >> testNotCloseToWithPrecision [

self deny: (2 + 3.001i closeTo: 2 + 3i precision: 0.000001).
self deny: (2.001 + 3i closeTo: 2 + 3i precision: 0.000001).
self deny: (2.001 + 3.001i closeTo: 2 + 3i precision: 0.000001).
self deny: 2 + 3.001i closeTo: 2 + 3i precision: 0.000001.
self deny: 2.001 + 3i closeTo: 2 + 3i precision: 0.000001.
self deny: 2.001 + 3.001i closeTo: 2 + 3i precision: 0.000001.
]

{ #category : #tests }
Expand Down

0 comments on commit c4ea1f1

Please sign in to comment.