Skip to content

Commit 4a9ff8b

Browse files
committed
Fixed testKDTree1DimensionIntegers
1 parent 18bd1fb commit 4a9ff8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)