File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
NumericInterpolator-Tests Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -33,9 +33,9 @@ NSOrdinalScaleTest >> testOrdinalScaleRangeBands [
33
33
rangeBands: #(0 960) .
34
34
self
35
35
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 ;
39
39
40
40
assert: ordinal rangeExtent equals: #(0 960)
41
41
Original file line number Diff line number Diff line change @@ -83,7 +83,8 @@ NSOrdinalScale >> rangeBands: x padding: padding outerPadding: outerPadding [
83
83
and : step.
84
84
reverse ifTrue: [ range := range reverse ].
85
85
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) ]."
87
88
ranger := #rangeBands:padding:outerPadding: .
88
89
argument := Array with: x with: padding with: outerPadding
89
90
]
You can’t perform that action at this time.
0 commit comments