File tree Expand file tree Collapse file tree
NumericInterpolator-Tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,9 +33,9 @@ NSOrdinalScaleTest >> testOrdinalScaleRangeBands [
3333 rangeBands: #(0 960) .
3434 self
3535 assert: ordinal rangeBand equals: 160 ;
36- assert: (ordinal scale: ' a' ) equals: 80. 0 ;
37- assert: (ordinal scale: ' d' ) equals: 560.0 ;
38- assert: (ordinal scale: ' f' ) equals: 880.0 ;
36+ assert: (ordinal scale: ' a' ) equals: 0 ;
37+ assert: (ordinal scale: ' d' ) equals: 480 ;
38+ assert: (ordinal scale: ' f' ) equals: 800 ;
3939
4040 assert: ordinal rangeExtent equals: #(0 960)
4141
Original file line number Diff line number Diff line change @@ -83,7 +83,8 @@ NSOrdinalScale >> rangeBands: x padding: padding outerPadding: outerPadding [
8383 and : step.
8484 reverse ifTrue: [ range := range reverse ].
8585 rangeBand := step * (1 - padding).
86- range doWithIndex: [ :val :in | range at: in put: val + (rangeBand / 2.0 ) ].
86+
87+ " range doWithIndex: [ :val :in | range at: in put: val + (rangeBand /2.0) ]."
8788 ranger := #rangeBands:padding:outerPadding: .
8889 argument := Array with: x with: padding with: outerPadding
8990]
You can’t perform that action at this time.
0 commit comments