Skip to content

Commit 401b9e6

Browse files
authored
Merge pull request #244 from olekscode/243-Tests-failing-on-Pharo-10
Tests failing on pharo 10
2 parents 2e935d7 + fbc1efc commit 401b9e6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Math-FunctionFit/PMGeneralFunctionFit.class.st

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Class {
1919
'data',
2020
'dataTruncated'
2121
],
22-
#category : 'Math-FunctionFit'
22+
#category : #'Math-FunctionFit'
2323
}
2424

2525
{ #category : #creation }
@@ -98,7 +98,7 @@ PMGeneralFunctionFit >> evaluate [
9898
|ff|
9999
ff :=PMErrorMinimizer function: errorFunction.
100100
firstResult :=[ff evaluate .ff parameters]
101-
ifError: [:err :rcvr | verbose ifTrue: [self inform: 'ErrorMinimizer was not successful']. nil].
101+
onErrorDo: [ verbose ifTrue: [self inform: 'ErrorMinimizer was not successful']. nil].
102102
firstResult ifNotNil: [go addPointAt: firstResult] .
103103
firstResult := go evaluate .
104104
self errorType =#squared
@@ -107,7 +107,7 @@ ff parameters: firstResult.
107107
ff desiredPrecision: PMFloatingPointMachine new machinePrecision.
108108
ff maximumIterations: 1000 .
109109
result:=[ff evaluate .ff parameters]
110-
ifError: [:err :rcvr |
110+
onErrorDo: [
111111
verbose ifTrue: [self inform: 'last FunctionFit was not successful'].
112112
ff result parameters].
113113
((errorFunction value: result) > (errorFunction value: firstResult)) ifTrue:[

src/Math-Tests-KDTree/PMKDTreeTest.class.st

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ PMKDTreeTest >> testKDTree1Dimension [
104104
{ #category : #tests }
105105
PMKDTreeTest >> testKDTree1DimensionIntegers [
106106
| m aVector aResult bResult |
107-
m := (1 to: 20) collect: [:index | Array with: (rand nextInt: 10)]. "only integers, obviously with multiples. test distances because the nearest neighbours are not necessarily the same"
107+
m := (1 to: 20) collect: [:index | Array with: (rand nextInteger: 10)]. "only integers, obviously with multiples. test distances because the nearest neighbours are not necessarily the same"
108108
self initializeTreeWith: m as: true.
109109
0 to: 11 do:[:v | aVector := Array with: v.
110110
aResult :=(aVector first - (stupid nnSearch: aVector i: 3)) abs. "distances between 3 nearest numbers and aVector "

0 commit comments

Comments
 (0)